Repository navigation
Migrate plugin tables - #11648
Migrate plugin tables#11648
Conversation
- Split into multiple separate steps
- Required, otherwise we cannot dump the data
- Use temporary file - Cleanup docstring
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
matmair
left a comment
There was a problem hiding this comment.
looks good; should we create a more formal and versioned schema for the export / import data to make future changes easier?
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #11648 +/- ##
==========================================
- Coverage 91.44% 91.37% -0.08%
==========================================
Files 963 963
Lines 49841 49893 +52
==========================================
+ Hits 45578 45588 +10
- Misses 4263 4305 +42
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@matmair any suggestions for what such a schema might contain? |
|
@SchrodingersGat great effort! This probably needs a changelog entry and I have marked it breaking because it removes some (seldom used) arguments on tasks |
- Follow-up to inventree#11648
* Prevent creation of PluginConfig during migrations * Refactor data import process - Split into multiple separate steps * Load plugins during data load / dump - Required, otherwise we cannot dump the data * Refactor export_records - Use temporary file - Cleanup docstring * Force apps check on second validation step * Improve import sequencing * Update CI script * Update migration docs * CI pipeline for running import/export test * Fix workflow naming * Fix env vars * Add placeholder script * Fix matrix env vars * Fix missing env var * Install required packages * Fix typo * Tweak tasks.py * Install dummy plugin as part of the * Updated CI workflow * Validate exported data * Additional CI process * Log mandatory plugins to INFO * Force global setting * Refactor CI pipeline * Tweak file test * Workflow updates * Enable auto-update * Test if import/export test should run * Trigger if tasks.py changes
- Follow-up to inventree#11648

Updates the
import_recordstask to allow clean importing of data defined in a plugin.References
Tasks