You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
matthewelwell
changed the title
feat: Non-admin project Role request to /projects/ID/features/ID Caus…
fix: Non-admin project Role request to /projects/ID/features/ID Causes Crash
Jul 8, 2024
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?
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?
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:
- If `tag_ids` is None, tags filter will not be applied
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thanks for submitting a PR! Please check the boxes below:
pre-committo 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?