-
Notifications
You must be signed in to change notification settings - Fork 429
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: deleting change requests with change sets throws 500 error #4439
fix: deleting change requests with change sets throws 500 error #4439
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ |
Docker builds report
|
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.
LGTM
# live_from. | ||
if first_feature_state := self.feature_states.order_by("live_from").first(): | ||
return first_feature_state.live_from | ||
|
||
# Then we do the same for environment feature versions. Note that a change request | ||
# can not have feature states and environment feature versions. | ||
# Then we check the change sets. | ||
elif first_change_set := self.change_sets.order_by("live_from").first(): | ||
return first_change_set.live_from | ||
|
||
# Finally, we do the same for environment feature versions. | ||
elif first_environment_feature_version := self.environment_feature_versions.order_by( | ||
"live_from" | ||
).first(): |
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.
Just a design question — are we going to deprecate feature_states
and environment_feature_versions
in the future?
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.
I would like to, for sure, yep!
Uffizzi Preview |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4439 +/- ##
=======================================
Coverage 96.85% 96.85%
=======================================
Files 1170 1170
Lines 38786 38797 +11
=======================================
+ Hits 37566 37577 +11
Misses 1220 1220 ☔ View full report in Codecov by Sentry. |
Changes
Fixes this Sentry issue.
How did you test this code?
Added a unit test.