diff --git a/.github/workflows/import_export.yaml b/.github/workflows/import_export.yaml index a2be238817..a2670b77a3 100644 --- a/.github/workflows/import_export.yaml +++ b/.github/workflows/import_export.yaml @@ -56,12 +56,14 @@ jobs: with: filters: | server: + - .github/workflows/import_export.yaml + - .github/scripts/check_exported_data.py - 'src/backend/**' - 'tasks.py' test: runs-on: ubuntu-latest needs: paths-filter - if: needs.paths-filter.outputs.server == 'true' + if: needs.paths-filter.outputs.server == 'true' || contains(github.event.pull_request.labels.*.name, 'full-run') services: postgres: @@ -110,7 +112,7 @@ jobs: test -f /home/runner/work/InvenTree/test_inventree_db.sqlite3 || (echo "Sqlite database not created" && exit 1) - name: Import Sqlite Dataset run: | - invoke import-records -c -f ${{ env.DATA_FILE }} + invoke import-records -c -f ${{ env.DATA_FILE }} --strict cd src/backend/InvenTree && python manage.py check_dummy_data - name: Export Sqlite Dataset run: | diff --git a/CHANGELOG.md b/CHANGELOG.md index 1767e3ab14..1b1d2d483f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- [#11648](https://github.com/inventree/InvenTree/pull/11648) improves the import/export process, allowing data records defined by plugins to be loaded when importing a database from a file. - [#11630](https://github.com/inventree/InvenTree/pull/11630) enhances the `import_records` and `export_records` system commands, by adding a metadata entry to the exported data file to allow for compatibility checks during data import. ### Removed