-
Notifications
You must be signed in to change notification settings - Fork 411
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: Non-admin project Role request to /projects/ID/features/ID Causes Crash #4289
fix: Non-admin project Role request to /projects/ID/features/ID Causes Crash #4289
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
|
|
|
|
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4289 +/- ##
==========================================
+ Coverage 96.60% 96.77% +0.16%
==========================================
Files 1195 1159 -36
Lines 39099 38079 -1020
==========================================
- Hits 37773 36852 -921
+ Misses 1326 1227 -99 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand how this is any different? From what I can tell, the tag_ids
variable is set to an empty list above, which will evaluate as falsy, the same as the default on the has_project_permission
method.
Could you add more description and ideally add a test that would replicate the issue?
Docker builds report
|
Change the code so that instead of the value of tag_ids being [], it will be None. This change is based on this line of code:
This adjustment is needed because when making the GET request to api/v1/projects/id/features/id/ , tag-based permissions should not be applied (we should only send an array, in the case of using the DELETE_FEATURE permission)
|
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
Tag IDs are only sent when there is permission that have tags. For example DELETE_FEATURE.
Fixes #4286
How did you test this code?