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: Check that feature owners are able to view the project of a feature #2931

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

zachaysan
Copy link
Contributor

@zachaysan zachaysan commented Nov 6, 2023

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Before users from anywhere could be added to a feature as an owner, even if they were outside the organisation. Now, they must be able to view the project of the feature in order to be added as feature owners. This mirrors much of the existing logic around this part of the codebase, but I could be convinced to make it differently. For example, users as members of the organisation could make sense as well.

How did you test this code?

Updated the existing code, watched the formerly passing test fail, then updated the test and added a new one to make sure users can't be added as owners if they're not affiliated with the feature.

Copy link

vercel bot commented Nov 6, 2023

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

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 2:04pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 2:04pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 2:04pm

Copy link
Contributor

github-actions bot commented Nov 6, 2023

Uffizzi Preview deployment-40163 was deleted.

@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eee1c0a) 95.63% compared to head (e126bc1) 95.64%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2931   +/-   ##
=======================================
  Coverage   95.63%   95.64%           
=======================================
  Files        1012     1012           
  Lines       29139    29154   +15     
=======================================
+ Hits        27868    27883   +15     
  Misses       1271     1271           
Files Coverage Δ
api/features/views.py 86.49% <100.00%> (+0.11%) ⬆️
...pi/tests/unit/features/test_unit_features_views.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants