-
Notifications
You must be signed in to change notification settings - Fork 411
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: facilitate FE display of environment version from audit log #4077
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4077 +/- ##
=======================================
Coverage 96.43% 96.44%
=======================================
Files 1149 1149
Lines 37535 37565 +30
=======================================
+ Hits 36198 36228 +30
Misses 1337 1337 ☔ View full report in Codecov by Sentry. |
…eve an environment feature version without the path args
8e876a6
to
eb8ccb5
Compare
0ecbcc4
to
444a68d
Compare
@@ -46,7 +47,6 @@ | |||
) | |||
class EnvironmentFeatureVersionViewSet( | |||
GenericViewSet, | |||
RetrieveModelMixin, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the description, this is technically a breaking API change but, since the versioning feature has not been released to anyone yet, I don't see this as an issue.
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
This PR addresses 2 issues found by the FE in the integration as per this issue:
related_object_uuid
to the response when retrieving audit log records from the APIEnvironmentFeatureVersion
without the need for the environment and feature args in the URL path. This is due to the need from the FE to retrieve the version directly from the audit log which does not have the id of the feature directly available.Note that, based on this, I have removed the
RetrieveModelMixin
from theEnvironmentFeatureVersionViewSet
since it is not needed. Technically this is a breaking API change but, since the versioning feature has not been released anywhere yet, I don't see that this is an issue.How did you test this code?
Added a bunch of new tests.