Repository navigation
Handle transition errors which occur after valid transition - #13303
Merged
Merged
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (78.57%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #13303 +/- ##
=======================================
Coverage 90.33% 90.34%
=======================================
Files 901 901
Lines 83354 83380 +26
Branches 4284 4284
=======================================
+ Hits 75300 75327 +27
+ Misses 7038 7037 -1
Partials 1016 1016
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
matmair
approved these changes
Nov 17, 2026
Contributor
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
SchrodingersGat
added a commit
that referenced
this pull request
Nov 17, 2026
…13310) (cherry picked from commit a47db7e) Co-authored-by: Oliver <[email protected]> Co-authored-by: Matthias Mair <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

When running through a
django-fsmtransition, if an error occurs after a valid transition (i.e. in theobject.save()method) - that error message is hidden from the user entirely, providing no information about what is truly blocking the transition.In this case, the actual transition has passed successfully, but calling
save()afterwards fails for some other reason. For example, a custom validator on the model'ssave()method, or a failed uniqueness check.This PR enables those messages to be captured, if the transition actually succeeds but is followed by another error.