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: bulk tags will work now with project permissions #4177

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Jul 7, 2023

Previously creation of tags required UPDATE_FEATURE permission, but creating tags is not related to feature or project, so it was not able to work.
Also bulk update tags was missing projectId from url, so it also did not work properly.

@vercel
Copy link

vercel bot commented Jul 7, 2023

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview Jul 7, 2023 8:32am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Jul 7, 2023 8:32am

@@ -85,6 +91,7 @@ export interface IFeatureProjectUserParams extends ProjectParam {

const PATH = '/:projectId/features';
const PATH_STALE = '/:projectId/stale';
const PATH_TAGS = `/:projectId/tags`;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now updating tags takes in projectId, so it can evaluate permissions.

@@ -74,7 +73,7 @@ class TagController extends Controller {
method: 'post',
path: '',
handler: this.createTag,
permission: UPDATE_FEATURE,
permission: NONE,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed project level permission to create tag, because it is not related to project/feature

@sjaanus sjaanus merged commit 3c52550 into main Jul 7, 2023
19 checks passed
@sjaanus sjaanus deleted the fix-bulk-tags-lloyds branch July 7, 2023 08:55
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