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(audit): add details for override creation #3359

Merged
merged 8 commits into from
Feb 2, 2024

Conversation

matthewelwell
Copy link
Contributor

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

  • I have run pre-commit to check linting
  • 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

Adds logic to ensure that change details are included when an override (segment or identity) is created. Previously, the logic is such that only updates are tracked.

Since the only real use case where this is important is for creating overrides, I have restricted this functionality (using a parameter on the history model base class) to only the FeatureState model.

How did you test this code?

Added some integration tests.

@matthewelwell matthewelwell requested review from a team and gagantrivedi and removed request for a team January 31, 2024 18:32
Copy link

vercel bot commented Jan 31, 2024

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 Feb 2, 2024 11:57am
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 11:57am
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2024 11:57am

Copy link
Contributor

github-actions bot commented Jan 31, 2024

Uffizzi Preview deployment-45517 was deleted.

@gagantrivedi
Copy link
Member

gagantrivedi commented Feb 1, 2024

Tests that are failing for this looks unrelated 😕
Edit: Ah, it's related to #3361

@codecov-commenter
Copy link

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (789898c) 95.93% compared to head (9d5ddc7) 95.93%.

Files Patch % Lines
api/features/managers.py 86.66% 2 Missing ⚠️
api/audit/serializers.py 80.00% 1 Missing ⚠️
api/features/models.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3359   +/-   ##
=======================================
  Coverage   95.93%   95.93%           
=======================================
  Files        1071     1071           
  Lines       32767    32841   +74     
=======================================
+ Hits        31434    31505   +71     
- Misses       1333     1336    +3     

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

@matthewelwell matthewelwell added this pull request to the merge queue Feb 2, 2024
Merged via the queue into main with commit a888f29 Feb 2, 2024
21 checks passed
@matthewelwell matthewelwell deleted the fix(audit)/add-details-for-override-creation branch February 2, 2024 15:37
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