Skip to content

Bug fix for APISearchView - #12707

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:search-fix
Aug 25, 2026
Merged

SchrodingersGat merged 1 commit into
inventree:masterfrom
SchrodingersGat:search-fix

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

The global search endpoint dispatches to viewset-based result types using a bare HttpRequest() with an empty META, so pagination's build_absolute_uri() crashes on the missing SERVER_NAME attribute.

Fixes bug introduced in #12317

The global search endpoint dispatches to viewset-based result types using a bare HttpRequest() with an empty META, so pagination's build_absolute_uri() crashes on the missing SERVER_NAME.
@SchrodingersGat SchrodingersGat added this to the 1.6.0 milestone Aug 25, 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 25, 2026
@netlify

netlify Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 10c384b
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a8ce45ae901790008e3ce95
😎 Deploy Preview https://deploy-preview-12707--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97
Accessibility: 81
Best Practices: 100
SEO: 78
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.75%. Comparing base (0ff2f7f) to head (10c384b).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12707      +/-   ##
==========================================
- Coverage   86.75%   86.75%   -0.01%     
==========================================
  Files        1456     1456              
  Lines       97735    97744       +9     
  Branches    11426    11426              
==========================================
+ Hits        84793    84800       +7     
- Misses      12876    12878       +2     
  Partials       66       66              
Flag Coverage Δ
backend 90.88% <100.00%> (-0.01%) ⬇️

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

Components Coverage Δ
Backend Apps 92.26% <ø> (ø)
Backend General 93.78% <ø> (ø)
Frontend 79.52% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SchrodingersGat
SchrodingersGat merged commit a6687a6 into inventree:master Aug 25, 2026
46 checks passed
@SchrodingersGat
SchrodingersGat deleted the search-fix branch August 25, 2026 01:57
@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 12707

Questions ?

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

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.

1 participant