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

feat: add audit log when environment feature version is published #4064

Merged
merged 5 commits into from
May 31, 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

The main purpose of this PR is to add an AuditLog record when a new EnvironmentFeatureVersion is published.

As part of this, I have added a new endpoint to retrieve an environment feature version, which will also include the uuid of the previous version. This will allow the FE to generate a page dedicated to a version and show the diff against the previous version. This can then be linked to from the audit log to achieve the same behaviour that we had previously.

How did you test this code?

Added new unit tests.

@matthewelwell matthewelwell requested review from a team and gagantrivedi and removed request for a team May 31, 2024 15:17
Copy link

vercel bot commented May 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 May 31, 2024 3:21pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 3:21pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2024 3:21pm

Copy link
Contributor

github-actions bot commented May 31, 2024

Uffizzi Preview deployment-52493 was deleted.

Copy link

codecov bot commented May 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.43%. Comparing base (9f9b57c) to head (902f13c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4064      +/-   ##
==========================================
+ Coverage   96.42%   96.43%   +0.01%     
==========================================
  Files        1148     1149       +1     
  Lines       37430    37526      +96     
==========================================
+ Hits        36092    36189      +97     
+ Misses       1338     1337       -1     

☔ 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 May 31, 2024
Merged via the queue into main with commit 88cfc76 May 31, 2024
24 checks passed
@matthewelwell matthewelwell deleted the fix/versioning-audit-log branch May 31, 2024 15:55
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.

2 participants