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: Missing permissions for integration API endpoints #4530

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

khvn26
Copy link
Member

@khvn26 khvn26 commented Aug 22, 2024

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

  • I have added information to docs/ if required so people know about the feature!
  • 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

This fixes an issue when a previously non-existent environment or project integration can be created for a project a user does not belong to.

The base integration view are refactored to use proper permissions rather than current hacky queryset filtration that did not get applied for the create action.

How did you test this code?

Added unit tests reproducing the problem for an environment and a project-level integration.

Copy link

vercel bot commented Aug 22, 2024

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

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Aug 22, 2024 1:36am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Aug 22, 2024 1:36am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Aug 22, 2024 1:36am

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.91%. Comparing base (18ed5d2) to head (3cd060f).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4530      +/-   ##
==========================================
- Coverage   96.92%   96.91%   -0.02%     
==========================================
  Files        1178     2360    +1182     
  Lines       39623    79340   +39717     
==========================================
+ Hits        38405    76891   +38486     
- Misses       1218     2449    +1231     

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

@github-actions github-actions bot added api Issue related to the REST API fix labels Aug 22, 2024
Copy link
Contributor

github-actions bot commented Aug 22, 2024

Uffizzi Preview deployment-55453 was deleted.

@khvn26 khvn26 marked this pull request as ready for review August 22, 2024 08:08
@khvn26 khvn26 requested a review from a team as a code owner August 22, 2024 08:08
@khvn26 khvn26 requested review from matthewelwell and removed request for a team August 22, 2024 08:08
@github-actions github-actions bot removed the fix label Aug 22, 2024
Copy link
Contributor

github-actions bot commented Aug 22, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-4530 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-4530 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-4530 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4530 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4530 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4530 Finished ✅ Results

@github-actions github-actions bot added the fix label Aug 22, 2024
@khvn26 khvn26 added this pull request to the merge queue Aug 22, 2024
Merged via the queue into main with commit cd99a07 Aug 22, 2024
55 of 57 checks passed
@khvn26 khvn26 deleted the fix/integrations-missing-permissions branch August 22, 2024 08:58
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 fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants