-
Notifications
You must be signed in to change notification settings - Fork 415
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 logs generation for feature state value #4525
Conversation
- Catch ObjectDoesNotExists if the feature state is deleted - Don't pass null to diff_history if the prev history record does not exists
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
Docker builds report
|
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4525 +/- ##
=======================================
Coverage 96.92% 96.93%
=======================================
Files 1178 1178
Lines 39600 39616 +16
=======================================
+ Hits 38384 38400 +16
Misses 1216 1216 ☔ View full report in Codecov by Sentry. |
|
||
assert response.status_code == status.HTTP_200_OK |
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.
assert response.status_code == status.HTTP_200_OK | |
# Then | |
assert response.status_code == status.HTTP_200_OK |
@@ -692,6 +697,24 @@ def test_feature_state_value_get_skip_create_audit_log_if_environment_feature_ve | |||
assert feature_state.feature_state_value.get_skip_create_audit_log() is True | |||
|
|||
|
|||
def test_feature_state_value_get_skip_create_audit_log_for_deleted_feature_state( |
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.
Based on the codecov report, it looks like this isn't actually testing the codepath that you expect.
939b594
to
8d4a1b8
Compare
Thanks for submitting a PR! Please check the boxes below:
docs/
if required so people know about the feature!Changes
How did you test this code?
Updates test cases