2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-14 16:29:57 +00:00
Commit Graph

17455 Commits

Author SHA1 Message Date
Oliver Walters
477c692076 Rename underlying database tables 2025-12-03 14:30:13 +00:00
Oliver Walters
b71d56654d Add playwright test for company parameters 2025-12-03 13:59:49 +00:00
Oliver Walters
fb8a2014ac Add migration unit test to ensure that primary keys are maintained 2025-12-03 13:37:47 +00:00
Oliver Walters
7ff51263e5 Bug fix for data migration 2025-12-03 13:17:23 +00:00
Oliver Walters
f5839fd302 Improve checks for data migrations 2025-12-03 13:13:15 +00:00
Oliver Walters
447e18c1cb Overhaul of migration strategy
- New models simply point to the old database tables
- Perform schema and data migrations on the old models first (in the part app)
- Swap model references in correct order
2025-12-03 12:59:45 +00:00
Oliver Walters
d331015329 More migration updates:
- Create new "models" (without moving the existing tables)
- Data migration for PartCataegoryParameterTemplate model
- Remove PartParameterTemplate and PartParameter models
2025-12-03 12:04:38 +00:00
Oliver Walters
9118290782 New migration strategy:
part.0144:
- Add new "enabled" field to PartParameterTemplate model
- Add new ContentType fields to the "PartParameterTemplate" and "PartParameter" models
- Data migration for existing "PartParameter" records

part.0145:
- Set NOT NULL constraints on new fields
- Remove the obsolete "part" field from the "PartParameter" model
2025-12-03 11:46:09 +00:00
Oliver Walters
4f9474290f Add null choice to custom serializer class 2025-12-03 05:51:00 +00:00
Oliver
49131dd969 Merge branch 'master' into generic-parameters 2025-12-02 18:17:08 +11:00
Oliver Walters
a4dbf2dd50 Remove duplicate enum in spectactular.py 2025-12-02 07:13:48 +00:00
Matthias Mair
c8b1bfb716 refactor (frontend): address code scanning issues (#10935)
* remove unused defs

* optimize

* revert rename
2025-12-02 18:11:02 +11:00
Oliver Walters
89b4e83c49 Fix reference target 2025-12-02 06:56:34 +00:00
Oliver Walters
ad289ee176 Fix migration test 2025-12-02 06:49:33 +00:00
Oliver Walters
f2e7ae9030 Fix for migration test 2025-12-02 06:48:37 +00:00
Oliver Walters
c34e8c3643 Don't use custom branch for python checks 2025-12-02 06:47:29 +00:00
Oliver
38b27271ac [bug] Handle TransactionManagementError (#10942)
In the case where we try to call refresh_from_db within an atomic transaction block, it will throw a TransactionManagementError
2025-12-02 17:21:24 +11:00
Oliver Walters
9da6e15df4 Ensure empty string values are converted to None 2025-12-02 05:39:04 +00:00
dependabot[bot]
4c45716843 chore(deps): bump actions/setup-python in the dependencies group (#10940)
Bumps the dependencies group with 1 update: [actions/setup-python](https://github.com/actions/setup-python).


Updates `actions/setup-python` from 6.0.0 to 6.1.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](e797f83bcb...83679a892e)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-02 16:31:59 +11:00
Oliver Walters
06bc811c16 Add explicit choice options 2025-12-02 04:21:47 +00:00
Oliver Walters
1e2fdd71c7 Add options for spectacular 2025-12-02 03:19:55 +00:00
Oliver Walters
aaf6a97d71 Tweak migration unit tests 2025-12-02 03:06:20 +00:00
Oliver Walters
539add7105 Remove debug statement 2025-12-01 22:12:14 +00:00
Oliver
61edb2ba8e Merge branch 'master' into generic-parameters 2025-12-01 23:13:59 +11:00
Oliver Walters
f2735dc860 Specify target migration 2025-12-01 12:13:34 +00:00
Oliver
c224606d8d [UI] refactor "inactive alerts" panel (#10913)
* Remove "inactive alerts" panel

* Improve messaging / colors

* Refactor to "system status" display

* remove duplicate messages

* Revert alert messages

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
2025-12-01 23:07:26 +11:00
Oliver Walters
242cf608c6 Pull specific branch for python binding tests 2025-12-01 11:09:03 +00:00
Oliver Walters
f7197c2c37 Add data migration tests for ManufacturerPartParameter 2025-12-01 10:51:42 +00:00
Oliver Walters
9232f23ab2 ui tests for sales index 2025-12-01 10:33:21 +00:00
Oliver Walters
931c009c0f Add tests for manufacturing index page 2025-12-01 10:28:29 +00:00
Oliver Walters
612be74596 Add playwright tests for purchasing index 2025-12-01 10:25:49 +00:00
Oliver Walters
832ebc032c Add unit tests for template API filtering 2025-12-01 10:07:30 +00:00
Oliver
686d5d7a44 Merge branch 'master' into generic-parameters 2025-12-01 17:16:06 +11:00
Oliver Walters
af39287814 Fix supplier part import wizard 2025-12-01 06:15:34 +00:00
Oliver Walters
9dd20702e2 Allow disable edit for ParameterTable 2025-12-01 06:08:07 +00:00
Oliver Walters
89908560c9 Fix for unit test 2025-12-01 05:48:35 +00:00
Oliver
ee4e200cf3 [devcontainer] revert postgres version (#10937)
- Our debian image (bookworm) supports only postgres:15
- Revert from postgres:17 to postgres:15 in the devcontainer
2025-12-01 16:46:59 +11:00
Oliver Walters
6d5458ec77 Fix unit test for data migration 2025-12-01 04:40:07 +00:00
Oliver Walters
0c17f44711 Reimplement checks for locked parts 2025-12-01 04:37:17 +00:00
Oliver Walters
b901224e21 Adjust unit test 2025-12-01 03:35:07 +00:00
Matthias Mair
b32ba71318 Merge branch 'master' into generic-parameters 2025-11-30 21:36:01 +00:00
github-actions[bot]
bc5c306b6d New Crowdin translations by GitHub Action (#10871)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-11-30 21:03:53 +11:00
Oliver
a9e7e921d4 Merge branch 'master' into generic-parameters 2025-11-30 20:01:47 +11:00
Oliver
3958e10875 Fix for python bindings CI check (#10934) 2025-11-30 20:01:35 +11:00
Oliver Walters
2a6493c10c Improve serializer field 2025-11-30 02:40:03 +00:00
Oliver Walters
db468afaa5 Refactor part parameter exporter plugin
- Any model which supports parameters can use this now
- Update documentation
2025-11-30 02:37:38 +00:00
Oliver Walters
27fe60722d Enhance type hinting 2025-11-30 02:16:07 +00:00
Oliver Walters
1efd2f7776 Ensure that parameters are removed when deleting the linked object 2025-11-30 02:14:40 +00:00
Oliver Walters
1695e4f8e9 Add breaking change info to CHANGELOG.md 2025-11-30 02:09:10 +00:00
Oliver Walters
a1238b3cbe Validate queryset annotation
- Add unit test with large dataset
- Ensure number of queries is fixed
- Fix for prefetching check
2025-11-30 02:06:55 +00:00