Repository navigation
Squash migrations - #12830
Squash migrations#12830
Conversation
Note: we will come back again later to squash some more
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (73.91%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #12830 +/- ##
==========================================
- Coverage 87.15% 87.14% -0.02%
==========================================
Files 1487 1500 +13
Lines 101500 101777 +277
Branches 11640 11547 -93
==========================================
+ Hits 88463 88689 +226
- Misses 12974 13025 +51
Partials 63 63
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@matmair lmk what you think of this approach. Everything after 1.0.0 is left in place |
|
@matmair a specific error message has now been implemented, and is explicitly checked for in CI |
|
Looks great! It is a large change but I think we have the major things that could go wrong covered. |
|
It's good to finally get this working. We can let it run on master for a while as we prepare for |
A rehearsal on a copy of the Azure database showed the guard refusing startup migration over seven applied records it had never seen: build 0021-0026 (20201020-20201023) and part 0061_auto_20210104_2331. Upstream squash c26db6a (2026-09-11, inventree#12830) dropped them from every on-disk replaces list. The guard now exempts exactly those seven names, with their provenance; any other unknown name is still refused. Tests: assets.tests.test_deploy_lineage 10/10 (offline runner).


Tasks