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

fix: use projectId from param #3372

Merged
merged 2 commits into from
Mar 23, 2023
Merged

fix: use projectId from param #3372

merged 2 commits into from
Mar 23, 2023

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Mar 23, 2023

Previously every time there was permission DELETE_FEATURE or UPDATE_FEATURE needed, it expected to have featureName in path parameters.

Now that we introduced batch operations, for example batch deletion of features, the featureName will not be in parameters, but instead the projectId is provided as path parameter.

This PR makes following change: now projectId from path parameters will be used instead of making a database call to find the projectId from feature.

@vercel
Copy link

vercel bot commented Mar 23, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated
unleash-docs ⬜️ Ignored (Inspect) Mar 23, 2023 at 8:05AM (UTC)
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Mar 23, 2023 at 8:05AM (UTC)

Copy link
Contributor

@andreas-unleash andreas-unleash left a comment

Choose a reason for hiding this comment

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

Much better! LGTM

@sjaanus sjaanus merged commit 407b252 into main Mar 23, 2023
@sjaanus sjaanus deleted the rbac-project branch March 23, 2023 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants