Skip to content

Fix 500 errors for transitions - #12678

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:order-transition-fix
Aug 21, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:order-transition-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Order transitions attempted with an invalid PK currently throw a 500 instead of 404.

@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Aug 21, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed api Relates to the API backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x labels Aug 21, 2026
@netlify

netlify Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 234aea3
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a8858ba73c0a40008e3751a

@codecov

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.80%. Comparing base (dc05939) to head (234aea3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12678   +/-   ##
=======================================
  Coverage   86.79%   86.80%           
=======================================
  Files        1455     1455           
  Lines       97456    97524   +68     
  Branches    11321    11321           
=======================================
+ Hits        84585    84651   +66     
- Misses      12805    12807    +2     
  Partials       66       66           
Flag Coverage Δ
backend 90.86% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Backend Apps 92.24% <100.00%> (+0.01%) ⬆️
Backend General 93.74% <ø> (ø)
Frontend 79.65% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit a435738 into inventree:master Aug 21, 2026
46 checks passed
@SchrodingersGat
SchrodingersGat deleted the order-transition-fix branch August 21, 2026 14:51
@github-actions

Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
❌ 1.5.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

backport --pr 12678

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

)
def receive(self, request, pk=None):
"""API endpoint to receive stock items against a PurchaseOrder."""
self.get_order()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo this check should run in @action and not be implemented individually on each action as that adds an inapparent failure point; should I PR something for this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matmair yes that seems like a pretty reasonable follow-up to this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

included in #12693

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Relates to the API backport Apply this label to a PR to enable auto-backport action backport-to-1.5.x bug Identifies a bug which needs to be addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants