Skip to content

[bug] fix short-circuit for isGeneratingSchema - #11378

Merged
SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:schema-fix
Feb 19, 2026
Merged

SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:schema-fix

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Feb 19, 2026 •

Copy link
Copy Markdown
Member

Add some short-circuit checks to prevent expensive calls within isGeneratingSchema

Identified using new warning message

@SchrodingersGat SchrodingersGat added this to the 1.3.0 milestone Feb 19, 2026
@netlify

netlify Bot commented Feb 19, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 2725c97
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6996ca9829c1730008d6a504

@codspeed

codspeed Bot commented Feb 19, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 7.33%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

❌ 1 regressed benchmark
✅ 43 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ WallTime test_search_performance[partcategory] 13.6 ms 14.7 ms -7.33%

Comparing SchrodingersGat:schema-fix (2725c97) with master (a4a3990)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (3dbe168) during the generation of this report, so a4a3990 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Feb 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 14.28571% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.03%. Comparing base (3dbe168) to head (2725c97).
⚠️ Report is 328 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11378      +/-   ##
==========================================
- Coverage   88.04%   88.03%   -0.02%     
==========================================
  Files        1292     1292              
  Lines       58533    58540       +7     
  Branches     1943     1943              
==========================================
  Hits        51537    51537              
- Misses       6512     6519       +7     
  Partials      484      484              
Flag Coverage Δ
backend 89.24% <14.28%> (-0.02%) ⬇️

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

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

@SchrodingersGat
SchrodingersGat merged commit 46e0205 into inventree:master Feb 19, 2026
36 checks passed
@SchrodingersGat
SchrodingersGat deleted the schema-fix branch February 19, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant