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

API: Get all workspaces of user returns every workspace as default #587

Open
muntaxir4 opened this issue Dec 9, 2024 · 2 comments
Open
Assignees
Labels
difficulty: 2 good first issue Good for newcomers priority: high scope: api Everything related to the API type: bug Something isn't working

Comments

@muntaxir4
Copy link
Contributor

Describe the bug
All returned workspaces from /workspace contains isDefault: true, whereas only one workspace should be a default one. This happens when a user becomes a member of host's default workpsace.

Endpoints Affected

  • /workspace
  • /workspace/:workspaceSlug

To Reproduce
Steps to reproduce the behavior:

  1. User1 invites User2 to their default workspace.
  2. User2 requests to view all of their accessible workspaces from /workpsace. Each of the workspace has isDefault set to true.

Expected behavior
A single Default workspace of User2 should have isDefault:true.

@muntaxir4 muntaxir4 added type: bug Something isn't working scope: api Everything related to the API labels Dec 9, 2024
@muntaxir4 muntaxir4 changed the title API: Get all workpspaces of user returns every workspace as default API: Get all workspaces of user returns every workspace as default Dec 10, 2024
@rajdip-b rajdip-b moved this to Todo in keyshade-api Dec 10, 2024
@zaheer-Khan3260
Copy link
Contributor

Hey @rajdip-b, Please assign it to me.

@muntaxir4
Copy link
Contributor Author

Hey @rajdip-b, Please assign it to me.

You can take up this issue using /attempt

@rajdip-b rajdip-b moved this from Todo to In progress in keyshade-api Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: 2 good first issue Good for newcomers priority: high scope: api Everything related to the API type: bug Something isn't working
Projects
Status: In progress
Development

No branches or pull requests

3 participants