Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Invitations could not be filter by domain_id by invitee #2719

Open
arvindh123 opened this issue Feb 19, 2025 · 0 comments
Open

Bug: Invitations could not be filter by domain_id by invitee #2719

arvindh123 opened this issue Feb 19, 2025 · 0 comments
Assignees
Labels

Comments

@arvindh123
Copy link
Contributor

What were you trying to achieve?

As an invitee user, tried retrieve the received invitation by domain_id

What are the expected results?

Response with applied filter domain_id

What are the received results?

Authorization error

Steps To Reproduce

1.) Create new domain
2.) Send invitation to another user
3.) Login as another user to which you have sent invitation
4.) List the invitations with domain_id filter

curl --location 'http://localhost/invitations?domain_id=<domain_id>' \
--header 'Authorization: Bearer <TOKEN>'

In what environment did you encounter the issue?

Docker

Additional information you deem important

At present we have single domain service function ListInvitation , So we could not allow invitee to filter by domain_id,
We need to have different domain service function and repo function ListInviteeInvitations , which should list only the invitee user received invitations. Then we can able to apply filter in repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants