Skip to content

[bug] Attachment str fix - #12461

Merged
SchrodingersGat merged 2 commits into
inventree:masterfrom
SchrodingersGat:attachment-str-fix
Jul 24, 2026
Merged

[bug] Attachment str fix#12461
SchrodingersGat merged 2 commits into
inventree:masterfrom
SchrodingersGat:attachment-str-fix

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Fix bug related to str representation for Attachment without file

@SchrodingersGat SchrodingersGat added this to the 1.5.0 milestone Jul 24, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed backport Apply this label to a PR to enable auto-backport action backport-to-1.4.x labels Jul 24, 2026
@netlify

netlify Bot commented Jul 24, 2026

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 558fdec
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a62ba998ec0ba000893afec

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.92%. Comparing base (bda2534) to head (558fdec).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12461   +/-   ##
=======================================
  Coverage   86.91%   86.92%           
=======================================
  Files        1442     1442           
  Lines       95214    95231   +17     
  Branches    11101    11101           
=======================================
+ Hits        82757    82775   +18     
+ Misses      12392    12391    -1     
  Partials       65       65           
Flag Coverage Δ
backend 91.11% <100.00%> (+<0.01%) ⬆️

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

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

@SchrodingersGat
SchrodingersGat merged commit 6bd4842 into inventree:master Jul 24, 2026
45 checks passed
@SchrodingersGat
SchrodingersGat deleted the attachment-str-fix branch July 24, 2026 02:30
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
1.4.x

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 Jul 24, 2026
* Fix stringify for Attachment model

* Add regression tests

(cherry picked from commit 6bd4842)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Apply this label to a PR to enable auto-backport action backport-to-1.4.x bug Identifies a bug which needs to be addressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant