Commit Graph
100 Commits
Author SHA1 Message Date
Matthias Mair ff307e70ee make safer to use with various sanity checks 2025-10-14 12:57:50 +02:00
Matthias Mair 70df5cc89a make application of PathScopedMixin more intentional -> more efficient 2025-10-14 06:41:34 +02:00
Matthias Mair 33ce7e39b7 disable additional tests 2025-10-14 00:43:07 +02:00
Matthias Mair 611867509b var tests 2025-10-14 00:21:38 +02:00
Matthias Mair d33cd8e4b0 fix another test 2025-10-14 00:19:34 +02:00
Matthias Mair bbd1393acb fix typo 2025-10-13 23:57:33 +02:00
Matthias Mair acfe575822 simplify tests 2025-10-13 23:55:57 +02:00
Matthias Mair 3718b5e12c cleanup 2025-10-13 23:48:32 +02:00
Matthias Mair c2f33335ea Merge branch 'make-fields-filterable' of https://github.com/matmair/InvenTree into make-fields-filterable 2025-10-13 23:48:16 +02:00
Matthias MairandGitHub b84f27eb86 Merge branch 'master' into make-fields-filterable 2025-10-13 23:33:40 +02:00
Matthias MairandGitHub ac1eb85334 refactor(backend): reduce duplication in tests (#10579)
* refactor(backend): reduce duplication for tests

* fix tests

* fix text

* adjust last test
2025-10-14 08:23:25 +11:00
Matthias Mair 5594e442ea Merge branch 'master' of https://github.com/inventree/InvenTree into make-fields-filterable 2025-10-13 22:40:22 +02:00
Matthias Mair 7ea1b16ddf move test around 2025-10-13 22:40:18 +02:00
Matthias Mair 994259a71d ensure popped values are persisted 2025-10-13 22:21:09 +02:00
Matthias Mair 81f26c7073 fix serializer for schema 2025-10-13 22:19:46 +02:00
Matthias Mair 25dd16cf6b Merge branch 'master' of https://github.com/inventree/InvenTree into make-fields-filterable 2025-10-13 20:52:49 +02:00
Matthias Mair e3b9c7ee49 also process strings 2025-10-13 15:22:38 +02:00
Matthias Mair bc298926c1 extend tests 2025-10-13 15:22:25 +02:00
Matthias Mair bf12f76466 Merge branch 'master' of https://github.com/inventree/InvenTree into make-fields-filterable 2025-10-13 13:06:22 +02:00
Matthias Mair d009feda39 further fixes 2025-10-13 13:06:07 +02:00
Matthias Mair 3eb71063f4 fix another serializer issue 2025-10-13 10:34:07 +02:00
Matthias Mair 01bfa8aa01 fix schema fields 2025-10-13 09:59:55 +02:00
Matthias Mair bddc90b8b1 Merge branch 'master' of https://github.com/inventree/InvenTree into make-fields-filterable 2025-10-13 08:40:04 +02:00
Matthias Mair 0fde658a61 add test 2025-10-13 08:17:55 +02:00
Matthias Mair f32bbc2c49 add missing def 2025-10-13 07:58:13 +02:00
Matthias Mair 0ed27f81ca fix schema? 2025-10-13 07:57:43 +02:00
Matthias Mair f20e46f83c fix removal 2025-10-13 01:36:28 +02:00
Matthias Mair c5b8344e1b make can_filter suppport more complex scenarios:
- different filtername from fieldname
- multiple fields with one filtername
2025-10-13 01:28:23 +02:00
Matthias MairandGitHub 6327707c0e fix(installer): make VERSION information accessible in invoke calls (#10558)
* implement version loading in more contexts
closes #10554

* factor version file out

* ensure results do not contain new strings
2025-10-13 09:01:53 +11:00
Matthias Mair 00abac5b78 add missed field 2025-10-12 22:34:47 +02:00
Matthias MairandGitHub 49f8f72a46 chore(backend)!: fix spelling (#10557)
* fix spelling

* add changelog entry
2025-10-13 07:06:14 +11:00
Matthias Mair 2ada231bd8 fix import 2025-10-12 21:49:24 +02:00
Matthias Mair 7f471a3155 Merge branch 'master' of https://github.com/inventree/InvenTree into make-fields-filterable 2025-10-12 21:45:30 +02:00
Matthias Mair b0be84f3a6 adjust default filtering 2025-10-12 21:23:37 +02:00
Matthias Mair 96406d45aa set many serializer 2025-10-11 01:08:52 +02:00
Matthias Mair 9c2329c6b4 optimize mro 2025-10-11 01:08:04 +02:00
Matthias MairandGitHub 13845c69da feat(backend): Improve error message on INVE-7 (#10518)
* feat(backend): Improve error message on INVE-7

* change wording

* fix test

* another fix
2025-10-07 11:25:13 +11:00
Matthias MairandGitHub e8686a922e Merge branch 'master' into make-fields-filterable 2025-10-07 02:14:04 +02:00
Matthias MairandGitHub ac6028b871 fix: correct admin credential msg (#10521)
* fix installers final message

* adjust text
2025-10-07 11:09:22 +11:00
Matthias MairandGitHub c83a9b01ce fix: package distribution (#10515)
* show warning text

* fix formatting

* try to gather site-url correctly

* protect envs that are set in the config

* raise issue if they appear

* prefer app setting over file config

* preserve setting if injected via envs
2025-10-07 08:56:08 +11:00
Matthias MairandGitHub a2ee45ea2d chore(backend): fix missing ignore (#10512)
* fix ignore

* ignore sentry that is not used in prod
2025-10-07 08:28:40 +11:00
Matthias MairandGitHub 96a5291766 fix(backend): ensure internal notifications are created in a valid format (#10502)
Closes #10435
2025-10-06 21:58:19 +11:00
Matthias MairandGitHub 624dbd1e8a Merge branch 'master' into make-fields-filterable 2025-10-06 08:55:02 +02:00
Matthias MairandGitHub 946418e175 refactor(backend): fix remaining undocumented path based serializer mutations (#10495)
* fix remaining undocumented path based serializer mutations
closes #9481

* bump api_version

* fix indention

* add description for filter

* fix missing OutputOptions

* fix default description lookup
2025-10-06 11:21:36 +11:00
Matthias Mair 24f8c41bd7 Merge branch 'master' of https://github.com/inventree/InvenTree into make-fields-filterable 2025-10-06 00:20:32 +02:00
d7b4997da2 refactor(backend): move serializer context enrichment to mixin (#10456)
* add output options for PurchaseOrder, SalesOrder, and ReturnOrder endpoints

* add output options for PurchaseOrder, SalesOrder, and ReturnOrder endpoints

* add serializer context handling and update sales order fixture with additional line item

* bump API version to 398 and update output options tests for PurchaseOrder endpoint

* refactor(backend): move serializer context enrichtment to mixin

* cleanup other get_serializer instances

* add output options tests for SalesOrder and ReturnOrder detail endpoints

* fix typo

* fix api

---------

Co-authored-by: Silver <reza.sh.7798@gmail.com>
2025-10-06 09:04:06 +11:00
Matthias Mair 5676f7d5fc fix many serializer behaviour 2025-10-05 23:46:40 +02:00
Matthias Mair 638684c724 more adoption 2025-10-05 22:33:23 +02:00
Matthias Mair 31d3cd5e57 rollback rollback 2025-10-05 22:15:22 +02:00
Matthias Mair 30dc02605e temp fix 2025-10-05 21:43:19 +02:00
Matthias Mair 47892e409e fix def 2025-10-05 21:34:30 +02:00
Matthias Mair 3ee3cea8d8 move filtering of serializer fields out of functions into mixin 2025-10-05 18:47:25 +02:00
16e8f27872 bump contianer / dev dependencies too (#10472)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-04 22:00:14 +10:00
Matthias MairandGitHub c070f25d7c chore(backend): improve error message in api tests (#10464)
* fix mysql apply order

* improve error message capabilites for InvenTreeAPITestCase

* Revert "fix mysql apply order"

This reverts commit ef6d9bd99d.

* fix message
2025-10-04 21:59:38 +10:00
Matthias MairandGitHub ed74c61e5c fix: log ENV key as it needs to be set (#10462) 2025-10-04 08:34:44 +10:00
Matthias MairandGitHub a24b56b066 rollback mysql (#10478) 2025-10-04 07:36:58 +10:00
Matthias MairandGitHub acb84100ab chore: pin images in workflows (#10459) 2025-10-02 21:38:01 +10:00
Matthias MairandGitHub 230639bdad chore: cleanup changelog for 1.0 (#10457) 2025-10-02 21:37:46 +10:00
7638092ab8 feat(backend): releax protocol check (#10454)
* feat(backend): releax protocol check

* add changelog entry

* fix variable name

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-10-02 21:36:37 +10:00
Matthias MairandGitHub f01455411a move tests to api mocking to remove jitter in ci (#10447)
closes #10446
2025-10-02 09:54:31 +10:00
Matthias MairandGitHub eb18c0b172 feat(forntend): Re-Add About link to main nav dropdown (#10395)
* Re-Add About link to main nav dropdown
Closes #10392

* disable text selection on most of version dialog - maybe that helps ppl. copying the right section

* highlight the correct copy button
2025-09-26 10:51:24 +10:00
Matthias MairandGitHub 4794d69687 fix: correct user deletion (#10385)
* Ensure all user sessions are cleared

* remove double warning text on user delete
2025-09-24 10:22:36 +10:00
Matthias MairandGitHub c9e74c5910 Adress minor dep issues (#10359)
* fix django version

* bump @vanilla-extract/vite-plugin to adress https://github.com/inventree/InvenTree/security/dependabot/226
2025-09-20 09:13:02 +10:00
Matthias MairandGitHub 7eea2775b9 feat: speed up docker publishing (#9912)
* feat: speed up docker publishing
by spliting tests tasks for docker publishing into paralell
also makes releasing safer as no tests are run in the then published image and the permissions are slimer

* add update

* add names

* prepare image

* add dev setup

* remove migration stage

* merge unit test
2025-09-20 08:04:42 +10:00
Matthias MairandGitHub 4b0acad518 fix(backend): better siteurl testing in middleware (#10335)
* fix(backend): simplify siteurl testing

* add multi-site test

* pass off site_url check if more than one trusted origin is set

* split up testing

* add temporary debug info

* fix test enviorment
2025-09-19 18:18:03 +10:00
Matthias MairandGitHub 21cb488eef feat(backend): add typechecking with ty (#9664)
* Add ty for type checking

* fix various typing issues

* fix req

* more fixes

* and more types

* and more typing

* fix imports

* more fixes

* fix types and optional statements

* ensure patch only runs if it is installed

* add type check to qc

* more fixes

* install all reqs

* fix more types

* more fixes

* disable container stuff for now

* move typecheck to seperate job

* try to use putput for path

* use env instead

* fix typo

* add missing install

* remove unclear imports - not sure why this was done

* add kwarg names

* fix introduced issue in url call

* ignore import

* fix broken typing changes

* fix filter import

* reduce change set

* remove api-change

* fix dict

* ignore typing errors

* fix more type issues

* ignore errors

* style fix

* fix type

* bump ty

* fix more

* type fixes

* update ignores

* fix import

* fix defaults

* fix ignore

* fix some issues

* fix type
2025-09-17 21:30:02 +10:00
Matthias MairandGitHub 9679e58212 feat(frontend): Add samples for dashboard (#10306)
* feat(forntend): Add sampels to dashboard
Closes #9990

* add sessions storage to disable sample dash once cleared/removed
2025-09-14 20:47:15 +10:00
Matthias MairandGitHub 2c22686520 fix(backend): re-add active plugins to anon status (#10282)
* this was disabled due to wrong feedback by me, common debug tools do not work because of this

* patch tests

* make mfa test more robust
2025-09-09 07:39:25 +10:00
Matthias MairandGitHub ed04a37838 chore(backend): improve coverage (#10226)
* remove unneeded helper

* remove unnecessary coverage

* ignore catch-all pervisions in app setup

* remove unused function

* this was replaced by get_model_permission_string
2025-09-05 10:00:50 +10:00
Matthias MairandGitHub f0beb4a426 fix a few docker security holes (#10260)
* fix no-cache statements

* fix possible security escape

* fix possible globbing

* merge statements that belong together

* pin image
2025-09-04 09:02:17 +10:00
Matthias MairandGitHub 6c05742a3b chore(backend):mfa e2e testing (#10206)
* chore(backend):mfa e2e testing

* there are no tokens when only depoying browser-based clients for allauth

* cleanup

* style fixes
2025-08-25 16:01:43 +10:00
Matthias MairGitHubmatmaircopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
dee26bfa46 chore(frontend): upgrade react to 19 (#10202)
* Initial plan

* Upgrade React from 18.3.1 to 19.1.1 with TypeScript fixes

Co-authored-by: matmair <66015116+matmair@users.noreply.github.com>

* Update Vite React plugin to 5.0.1 for better React 19 support

Co-authored-by: matmair <66015116+matmair@users.noreply.github.com>

* Fix biome style issue in PluginUIFeature.tsx

Co-authored-by: matmair <66015116+matmair@users.noreply.github.com>

* remove biome

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2025-08-25 15:18:25 +10:00
Matthias MairandGitHub a9f10f191c fix style (#10216) 2025-08-25 10:05:31 +10:00
Matthias MairandGitHub e3a1c5fa20 improve error messages (#10207)
* fix remove mfa task

* add test for command

* clean up after schema test

* add assert to esure authenticators are really present/removed

* simplify handler

* improve error message

* make more readable
2025-08-21 09:08:26 +10:00
Matthias MairandGitHub 76dfd62f84 fix: remove mfa task (#10200)
* fix remove mfa task

* add test for command

* clean up after schema test

* add assert to esure authenticators are really present/removed

* simplify handler
2025-08-20 21:21:03 +10:00
Matthias MairandGitHub 6cb9327a1c chore(backend): bump deps (#10154)
* bump backend devs

* bump helper-deps
2025-08-17 07:04:44 +10:00
Matthias MairandGitHub b19ca03240 refactor(backend): raise allauth (#10156)
* bump allauth

* bump api version
2025-08-11 22:15:40 +10:00
Matthias MairandGitHub ed45a4e5bf Email history enhancement (#10114)
* add warning that the log is useless by default

* Add setting to enhance email log again

* add missing test for #10109

* add test for delete protections

* add error code

* Update email.md

* Update email.md
2025-08-08 08:04:17 +10:00
Matthias MairandGitHub febe5809e7 chore(backend): increase coverage (#10121)
* chore(backend): increase coverage

* add a full api based install / uninstall test

* fix asserted code

* delete unreachable code

* clean up unused code

* add more notification tests

* fix test

* order currencies
2025-08-06 08:47:23 +10:00
Matthias MairandGitHub b8f6b04fb9 feat(backend): more error messages (#10119)
* Adds error code for transition handler issues #10088

* Adds error codes for mandatory plugins #10094

* add more links

* Add error code  for global overrides

* disable coverage for a case that can not happen
2025-08-04 10:06:13 +10:00
Matthias MairandGitHub b89a7c45d6 feat(docs): Add (high level) Changelog (#9841)
* Embed release notes into documentation
Fixes #4959

* added first few lines for 1.0

* cleanup old changelog
2025-07-31 00:18:10 +10:00
Matthias MairandGitHub 87cac2ea14 bump @tabler/icons-react to fix occaisonal reload issues (#10050)
Ref https://github.com/tabler/tabler-icons/issues/1233
2025-07-22 07:36:18 +10:00
Matthias MairandGitHub 48ea6a1d26 fix(backend): remove coreapi (#10051)
* remove coreapi
Fixes coreapi warning #10021

* re-add jinja
2025-07-22 07:35:36 +10:00
Matthias MairandGitHub b351fb7483 feat(backend): improve comms around registration (#9932)
* use better email check

* add error code for missing email settings

* Add note when not registration is enabled

* fix wrong call

* fix tests - might be worth checking if the blank check for testing is a good idea

* capture issues and print to find out what the duck is going on

* exend log

* fix context check
2025-07-13 09:20:45 +10:00
Matthias MairandGitHub 4d446198b6 fix(backend): missing scope (#10001)
* move permission and fix scope

* add a way to only use scopes for doc purposes

* add a check to stop this from happening again

* bump api version
2025-07-11 08:45:55 +10:00
Matthias MairandGitHub df6965088f bump backend deps (#10003) 2025-07-11 08:44:33 +10:00
Matthias MairandGitHub f655250947 fix(frontend): Move mail settings to operations (#9978) 2025-07-08 17:24:15 +10:00
Matthias MairandGitHub e788989b19 fix(frontend): add URL overview to more models (#9977) 2025-07-08 17:23:59 +10:00
Matthias MairandGitHub dea8b4f0ad fix(backend) : use correct settings patching (#9910)
* fix(backend): use correct settings patching

* and more fixes

* fix context in test

* add better test for cors
2025-07-02 10:35:27 +10:00
Matthias MairandGitHub 252c74ab9f fix(frontend): logic error in display of registration option (#9930)
* fix(frontend): logic error in display of registration option
Fixes #9921

* simplify logic
2025-07-02 09:27:49 +10:00
Matthias MairandGitHub 92c92d60e7 [FR] Add proactive system check for site_url (#9895)
* [FR] Add proactive system check for site_url
Fixes #7847

* fix enviroment for tests

* fix admin tests and make them more robust

* improve tests for admin actions

* add test for all scenarios

* use right http error code

* fix error code

* remove dependency on bundle

* fix test
2025-07-01 09:12:48 +10:00
Matthias MairandGitHub 4c11f8c911 feat(frontend): reduce flickering on reload (#9897)
* rename states to better fit naming conv

* fix name

* ensure splashscreen only loads after login check
this reduces a short splash of the splashscreen even if logged in

* move loader to the middle of the screen and remove fallback on a view screens
2025-06-29 10:45:51 +10:00
Matthias MairandGitHub ce8ece4f10 [UI] Incorrect redirect to MFA setup (#9896)
Fixes #9880
2025-06-29 08:15:00 +10:00
Matthias MairandGitHub 370baeff8b fix instrumentation code (#9872) 2025-06-26 16:51:50 +10:00
Matthias MairandGitHub 2738d286de fix(backend): change notification for INVE-W10 (#9864)
implements changes requested in
https://github.com/inventree/InvenTree/pull/9769#issuecomment-3004193476
2025-06-26 09:23:52 +10:00
Matthias MairandGitHub 94ad4ac8b5 fix syntax again (#9863) 2025-06-26 08:10:41 +10:00
83b6653d78 feat(PUI): Make header tabs links to simpilfy new tab behaviour (#8779)
* add anchor element to tabs to enable opening in new tab

* simplify

* use unstyled button instead

* also enable linking on nav panels

* make sure metakey also works (reduces duplication)

* remove headers changes

* move check for modified key to lib

* render nav items as link

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2025-06-26 01:07:32 +10:00
Matthias MairandGitHub bbe94ee9c2 refactor (backend): move config files out of the source directories (#9769)
* moving config files out of the source directories
Fixes #9756

* add folder for config

* fix lookup paths

* reorder ignores

* reduce diff

* better error message

* fix paths

* Update tests.py

* save global warning to db

* fix import

* more import fixes / docs

* fix default

* fix default

* ensure secret_key/get_config_file is tested fully

* try fixing path on docker

* try to make it work on GitHub CI

* refactor testfolder path into config var

* fix test path

* fix test

* do not test on docker

* more tests

* add testing for global warning dict

* fix error handling
2025-06-25 08:12:24 +10:00
Matthias MairandGitHub 03bb1eb709 temp: lower targets (#9849)
* temp: lower targets

* add patch targets to incentivise mid-term reaching of goals

* display components in messages
2025-06-25 06:54:54 +10:00
Matthias MairandGitHub 3c2997ece5 refactor(backend) rename barcode plugins (#9829)
* refactor(docs): restructure barcode plugin section

* rename doc files

* add barcode index

* add missing link

* refactor(backend): rename barcode plugins

* fix ref

* revert name change

* fix name ref
2025-06-24 19:15:12 +10:00