Skip to content

Prevent migration check if performing DB update operations - #11356

Merged
SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:migration-test-fix
Feb 17, 2026
Merged

SchrodingersGat merged 5 commits into
inventree:masterfrom
SchrodingersGat:migration-test-fix

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Feb 17, 2026 •

Copy link
Copy Markdown
Member
  • Prevent system exiting (due to pending migrations) when trying to restore from a backup
  • Prevent forced running of migrations (in docker) when trying to restore or dump data
  • Prevent writing global settings during data management comments
  • Prevent exchange rate updates during data management commands

References

@SchrodingersGat SchrodingersGat added this to the 1.3.0 milestone Feb 17, 2026
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed setup Relates to the InvenTree setup / installation process backport Apply this label to a PR to enable auto-backport action backport-to-1.2.x labels Feb 17, 2026
@netlify

netlify Bot commented Feb 17, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit ae29424
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6994542aa082900008592cba

@codspeed

codspeed Bot commented Feb 17, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 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.

✅ 44 untouched benchmarks


Comparing SchrodingersGat:migration-test-fix (ae29424) with master (14a2e4c)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (1cc1f05) during the generation of this report, so 14a2e4c 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 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.05%. Comparing base (b8cf2db) to head (ae29424).
⚠️ Report is 331 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11356      +/-   ##
==========================================
- Coverage   88.05%   88.05%   -0.01%     
==========================================
  Files        1292     1292              
  Lines       58516    58525       +9     
  Branches     1943     1943              
==========================================
+ Hits        51529    51532       +3     
- Misses       6503     6509       +6     
  Partials      484      484              
Flag Coverage Δ
backend 89.26% <66.66%> (-0.02%) ⬇️
migrations 42.26% <22.22%> (-0.01%) ⬇️

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

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

@SchrodingersGat SchrodingersGat added docker Docker / docker-compose full-run Always do a full QC CI run labels Feb 17, 2026
@SchrodingersGat
SchrodingersGat merged commit 951586a into inventree:master Feb 17, 2026
36 of 37 checks passed
@SchrodingersGat
SchrodingersGat deleted the migration-test-fix branch February 17, 2026 13:20
github-actions Bot pushed a commit that referenced this pull request Feb 17, 2026
* Prevent migration check if performing DB update operations

* Prevent settings write during data imports

* Prevent exchange rate update during migration processes

* Allow exchange rate updates during tests or shell session

(cherry picked from commit 951586a)
github-actions Bot pushed a commit that referenced this pull request Feb 17, 2026
* Prevent migration check if performing DB update operations

* Prevent settings write during data imports

* Prevent exchange rate update during migration processes

* Allow exchange rate updates during tests or shell session

(cherry picked from commit 951586a)
@github-actions

Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
✅ 1.2.x
✅ 1.1.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 Feb 17, 2026
…11358)

* Prevent migration check if performing DB update operations

* Prevent settings write during data imports

* Prevent exchange rate update during migration processes

* Allow exchange rate updates during tests or shell session

(cherry picked from commit 951586a)

Co-authored-by: Oliver <[email protected]>
SchrodingersGat added a commit that referenced this pull request Feb 17, 2026
…11359)

* Prevent migration check if performing DB update operations

* Prevent settings write during data imports

* Prevent exchange rate update during migration processes

* Allow exchange rate updates during tests or shell session

(cherry picked from commit 951586a)

Co-authored-by: Oliver <[email protected]>
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 bug Identifies a bug which needs to be addressed docker Docker / docker-compose full-run Always do a full QC CI run setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants