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: get projects by ids #8269

Merged
merged 1 commit into from
Sep 26, 2024
Merged

feat: get projects by ids #8269

merged 1 commit into from
Sep 26, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 26, 2024

About the changes

Adding ability to read projects by multiple ids.

Background:
In the personal dashboard we need to return a list of user projects with health/flags counts/members count (that a user is a member of or favorited). My plan is to have a separate query to read user project ids and then pass those ids to the existing query. This way we can orchestrate the desired behavior in a service without writing new complex queries.

Screenshot 2024-09-26 at 10 38 54

Important files

Discussion points

I considered changing query param id to query param ids (plural) in place, but since we use the single id in a few places I find it safer to add a new property and not touch the existing code.

Copy link

vercel bot commented Sep 26, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 9:12am
unleash-monorepo-frontend 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 26, 2024 9:12am

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

userId?: number,
): Promise<ProjectForUi[]> {
const getProjects = () =>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

gitar leftover

@kwasniew kwasniew merged commit ceb21fb into main Sep 26, 2024
7 of 9 checks passed
@kwasniew kwasniew deleted the get-projects-by-ids branch September 26, 2024 09:28
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