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

feat(api,api-sdk): add getGroupsByAdminId() and getGroupsByMemberId() #519

Closed
wants to merge 9 commits into from

Conversation

waddaboo
Copy link
Contributor

@waddaboo waddaboo commented Jun 4, 2024

Description

Added new api-sdk features that allows users to get groups based on adminId and memberId.

Related Issue

close #493

Does this introduce a breaking change?

  • Yes
  • No

Other information

https://github.com/waddaboo/bandada/blob/bea35ed9f1c290c1cb2b1267950c68f2002ae37a/apps/api/src/app/groups/groups.service.ts#L818-L825

Changed where from array to object so that it will return results for AND instead of OR when both adminId and memberId is present in the query.

Copy link

vercel bot commented Jun 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bandada-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 4:30pm
bandada-website 🛑 Canceled (Inspect) Jun 7, 2024 4:30pm

@vplasencia vplasencia requested review from 0xjei and vplasencia June 4, 2024 10:37
@vplasencia vplasencia changed the base branch from dev to main June 7, 2024 09:49
@vplasencia vplasencia changed the base branch from main to dev June 7, 2024 09:50
Copy link
Member

@vplasencia vplasencia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @waddaboo I just added one comment.

Great job. Very clean work 🙏

The dev branch has an issue now. Can you add these changes to a new branch to merge it into main so that these new features can be released right after the PR is merged?

Comment on lines +821 to +824
where = {
adminId: filters.adminId,
...where
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
where = {
adminId: filters.adminId,
...where
}
where = {
adminId: filters.adminId
}

The where is not necessary here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I'll take it away.

@waddaboo
Copy link
Contributor Author

waddaboo commented Jun 7, 2024

The dev branch has an issue now. Can you add these changes to a new branch to merge it into main so that these new features can be released right after the PR is merged?

Sure!

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

Successfully merging this pull request may close these issues.

2 participants