Commit Graph
100 Commits
Author SHA1 Message Date
Matthias Mair bf82c4c269 simplify 2025-01-10 02:52:28 +01:00
Matthias Mair 5661b93910 align names with allauth 2025-01-10 02:52:05 +01:00
Matthias Mair ec6ee2cbed fix asserts 2025-01-09 20:06:56 +01:00
Matthias Mair 6f6829d650 adjust tests 2025-01-09 01:49:19 +01:00
Matthias Mair d619cc1135 re-implement password change 2025-01-09 01:43:08 +01:00
Matthias Mair 1a876a7f6b enable registration for now 2025-01-09 00:52:33 +01:00
Matthias Mair 8ad07c49d5 re-implement registrations 2025-01-09 00:52:14 +01:00
Matthias Mair 31e25eb50b re-enable registration tests 2025-01-09 00:10:17 +01:00
Matthias Mair af4f0a48ed move buildin token test 2025-01-08 23:09:38 +01:00
Matthias Mair 6fad126e21 rewrite url structure 2025-01-08 22:58:28 +01:00
Matthias Mair b5223dedf1 more exclusions 2025-01-08 22:46:04 +01:00
Matthias Mair f0dc4a030e fix tests 2025-01-08 22:44:56 +01:00
Matthias Mair 6624dbf6c0 reduce templates to the raw basics 2025-01-08 22:25:52 +01:00
Matthias Mair da918b7f18 fix remove sso provider account action; provider (user) admin stuff is done 2025-01-08 21:58:25 +01:00
Matthias Mair 4b6ab95b4c add mfa table 2025-01-08 21:03:31 +01:00
Matthias Mair 29694d27c8 change name to ensure 1p can detect field 2025-01-08 20:50:37 +01:00
Matthias Mair cb8779a082 fix login redirect logic 2025-01-08 20:41:53 +01:00
Matthias Mair f84ce83e8f remove ui preference - there is no decision anymore 2025-01-08 20:07:28 +01:00
Matthias Mair 1191d1cd82 remove old urls 2025-01-08 20:04:55 +01:00
Matthias Mair a00f090a87 remove x-session, not needed anymore 2025-01-08 20:03:42 +01:00
Matthias Mair 7ef84c87a2 update api version 2025-01-08 19:56:33 +01:00
Matthias Mair 2eea51a9f1 add todo's 2025-01-08 19:55:19 +01:00
Matthias Mair d482b3677f switch to browser based sessions 2025-01-08 13:55:20 +01:00
Matthias Mair ea940e8c58 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2025-01-08 08:03:18 +01:00
Matthias Mair 18fdfc9b22 make calls more robust 2025-01-08 00:10:28 +01:00
Matthias Mair e19c2e1c62 simplify calls 2025-01-07 23:34:45 +01:00
Matthias Mair 2e6ba4de91 implement more provider stuff 2025-01-07 16:56:43 +01:00
Matthias Mair 6b5e0dbb29 remove structlog from internal paths (#8836) 2025-01-06 07:28:28 +11:00
Matthias Mair 7125261bbc Remove admin shell (#8816) 2025-01-05 12:57:20 +11:00
Matthias Mair ea9e3fb992 Refactor to use structlog (#8747)
* use structlog instead of normal logging

* more fixes

* more fixes

* fix test asserts

* use static name

* fix logger

* fix assert

* fix asserts
2025-01-05 12:48:57 +11:00
Matthias Mair 3479b0008c Docs remove old customize options (#8817)
* remove "hide_pui_banner"

* clean up more
2025-01-02 20:41:17 +11:00
Matthias Mair 27e31e5a75 Merge branch 'master' into matmair/issue6281 2025-01-02 09:25:47 +01:00
Matthias Mair d7939efaa9 Fix package install in envs using python lower than 3.12 on debian like OSs (#8793)
* do not install with uv for now - fixes #8789
#8742 #8495 #8494

* Ensure errors are raised if install / update fails
2024-12-31 23:13:35 +11:00
Matthias Mair e5f6f3b741 add mfa reg endpoint (not fully implemented) 2024-12-29 01:02:30 +01:00
Matthias Mair f49a687c54 remove unneeded change of confirm url 2024-12-29 01:02:06 +01:00
Matthias Mair 3f4239fc6c add dummy entry for missing frontend urls; see TODO@matmair 2024-12-29 01:01:29 +01:00
Matthias Mair 5b49667797 add mfa listing use build-in forms 2024-12-29 01:00:47 +01:00
Matthias Mair ef14310fc4 fix auth for email actions in MFA scenarios 2024-12-28 17:57:13 +01:00
Matthias Mair c582ca0afd Add scan to action menu (#8781)
* small style fixes

* refactor: split scanning and dialog logic

* feat: Add modal and quick action to scan a barcode from anywhere
2024-12-29 01:12:42 +11:00
Matthias Mair a584334a24 ignore the now often-used 410 error 2024-12-28 13:19:05 +01:00
Matthias Mair 4c99f3dcbf remove unused endpoints 2024-12-28 12:56:39 +01:00
Matthias Mair 8025260961 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-28 12:54:55 +01:00
Matthias Mair c003084690 fix: email endpoints (to be cleaned TODO@matmair) 2024-12-28 12:05:24 +01:00
Matthias Mair 61e0fae7a3 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-28 02:52:34 +01:00
Matthias Mair 04d7a96dde split up python updates and assign to @matmair for manual fixes where necessary (#8772) 2024-12-27 08:14:32 +11:00
Matthias Mair 01d416dad8 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-26 18:13:05 +01:00
Matthias Mair 2a77e0b0f9 remove jwt mention 2024-12-26 18:13:01 +01:00
Matthias Mair 7bfdc86799 stop failure message from appearing when in MFA flow 2024-12-26 18:10:52 +01:00
Matthias Mair d701182d52 re-implement logoff 2024-12-26 18:10:01 +01:00
Matthias Mair e3c8b89b67 Re-implement auth flow using new APIs; adds MFA to PUI 2024-12-26 17:42:36 +01:00
Matthias Mair 7334dc446a disable tests temporarly 2024-12-26 14:58:19 +01:00
Matthias Mair da21e39e84 Turn off debug by default (#8743)
* turn off debug by default

* fix log level / debug settings for workflows

* fix typo
2024-12-26 20:16:53 +11:00
Matthias Mair e9cd910c51 fix migration check 2024-12-25 13:38:15 +01:00
Matthias Mair 97522d971f Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-25 01:25:23 +01:00
Matthias Mair fe68dc7318 Refactor fix formatting exclusion (#8746)
* fix ruff exclusions

* aut-format

* Fix docstrings

* more fixes

* ignore error(s)

* fix imports

* adjust descriptions for build
2024-12-25 07:16:24 +11:00
Matthias Mair 1fec41cb71 Update qc_checks.yaml (#8759) 2024-12-24 21:42:39 +11:00
Matthias Mair 7f1cc4658b Fix REST registration endpoint (#8738)
* Re-add html account base
Fixes #8690

* fix base template

* override dj-rest-auth pattern to fix fixed token model reference

* pin req

* fix urls.py

* move definition out to separate file

* fix possible issues where email is not enabled but UI shows that registration is enabled

* fix import order

* fix token recovery

* make sure registration redirects

* fix name change

* fix import name

* adjust description

* cleanup

* bum api version

* add test for registration

* add test for registration requirements
2024-12-24 11:53:25 +11:00
Matthias Mair ec6280dacd MFA add better logging (#8745)
* add better logging

* use structlog
2024-12-24 07:22:28 +11:00
Matthias Mair 728e0894aa Factor out helper (#8744)
* facour out helper

* fix import path
2024-12-24 07:20:27 +11:00
Matthias Mair 15c19a69ac disable test temporarly 2024-12-23 20:35:25 +01:00
Matthias Mair b1a549acb8 clean allauth_2fa reference 2024-12-23 01:33:36 +01:00
Matthias Mair d23cc870b6 lower cryptography version 2024-12-23 00:42:21 +01:00
Matthias Mair 0072dedd39 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-23 00:39:27 +01:00
Matthias Mair 8e95ad8434 upgrade reqs 2024-12-23 00:39:16 +01:00
Matthias Mair e9c20a454b fix merge 2024-12-23 00:31:06 +01:00
Matthias Mair 043bc88086 Merge branch 'master' of https://github.com/inventree/InvenTree into matmair/issue6281 2024-12-22 23:42:44 +01:00
Matthias Mair aa905166c5 Switch to zoneinfo from pytz (#7645)
* switch to zoneinfo from pytz

* fix lookup

* fix assert

* fix another round of assertions
2024-12-23 08:46:31 +11:00
Matthias Mair aad5575cd2 Fix MFA auth flow (#8720)
* Re-add html account base
Fixes #8690

* fix base template
2024-12-20 07:21:22 +11:00
Matthias Mair 17fd7f32a4 consider INVENTREE_RESTRICT_ABOUT setting (#8717) 2024-12-19 08:37:39 +11:00
Matthias Mair 1c9f56011c Various SAST fixes (#8718)
* fix type

* fix typing

* fix python:S5713

* fix python:S1066

* fix python:S3516

* fix python:S5727

* fix python:S5886
2024-12-19 07:31:33 +11:00
Matthias Mair 8fcb3c2506 Refactor auth adaptations into dedicated file (#8687)
* Update docker.yaml (#278)

* reset

* rename functions to better reflect function

* move authentication behaviour overrides to explicit file

* fix import order

* fix import path
2024-12-17 22:20:21 +11:00
Matthias Mair 24f433c948 Remove CUI (#8384)
* remove CUI

* fix loading

* fix login middleware

* remove css template functions

* tmp fix for recurtion

* remove old test

* fix assertations

* fix middleware tests

* re-add plugin tags

* remove thirdpartjs

* re-add mfa urls

* remove old js

* remove cui tags

* simplify error testing

* use license endpoint for testing instead

* disable successful test

* revert de-activation

* remove references to old UI customisation

* update docs to remove reference to removed page

* disable availabilty check

* possible fix to importing problem

* Revert "possible fix to importing problem"

This reverts commit ee9fccdc8c.

* remove old get_context_data

* fix migration

* remove unused function

* remove unused stuff

* remove unused template

* fix formatting of readme
2024-12-17 12:30:41 +11:00
Matthias Mair d4be203b03 small style changes (#8681) 2024-12-17 10:31:21 +11:00
Matthias Mair 6fc7c4d2fe Docker improve build times (#8680)
* Update docker.yaml (#278)

* update README.md
2024-12-17 10:13:58 +11:00
Matthias Mair 9dc4fc1f8f [CI] Add zimor to check github action security (#8639)
* Add zimor to checks

* fix format

* use same version of checkout everywhere

* do only persist credentials if needed

* remove duplicate clones

* fix pin syntax

* fix pins

* fix template injection

* another injection fix

* Revert "remove duplicate clones"

This reverts commit 9a00ae2bbb.

* Add GH token for further rules
2024-12-17 10:12:51 +11:00
Matthias Mair 2b607a4a28 clean up refes (#8663) 2024-12-15 06:54:56 +11:00
Matthias Mair 57e7b8eed2 fix namespace of frontend install command (#8662)
Fixes #8656
2024-12-14 08:39:23 +11:00
Matthias Mair 7bfd36f7cb Refactor: Move settings definitions (and most validators) out of models.py (#8646)
* move out settings definitions

* fix import paths

* move validators into appropiate settings

* fix refactor error

* fix import paths

* move types out

* add validator tests

* add option to reload internal issues

* fix tests
2024-12-13 11:57:11 +11:00
Matthias Mair dd83735710 Fix vulnerable dependencies (#8655)
* bump container reqs

* bump vul frontend dep

* fix tests
2024-12-12 08:38:11 +11:00
Matthias Mair a20fd9d231 [PUI] fix Table Context Menu Links (#8623)
* Add switch to disable context menu
Fixes #8553

* make attachment links right-clickable
2024-12-03 09:07:18 +11:00
Matthias Mair 4f3e8cb0a0 [PUI] infinite loop if classic frontend is disabled (#8614)
Fixes #8575
2024-12-02 21:42:31 +11:00
Matthias Mair f7697bd481 make logic simpler (#8613) 2024-12-02 10:49:28 +11:00
Matthias Mair f9487597fb [PUI] Make dashboard header look less like a widget (#8611)
* blend in header

* move indicator
2024-12-02 10:48:44 +11:00
Matthias Mair 7478a2853a [PUI] Fix stock item state rendering (#8572)
* fix rendering of stock status

* update api to support custom status

* Revert "update api to support custom status"

This reverts commit e7ff5aa398.
2024-11-29 07:48:19 +11:00
Matthias MairandOliver Walters af39189e7e Add SelectionList concept (#8054)
* Add SelectionList model, APIs and simple tests

* Add managment entries

* Add field to serializer

* add more tests for parameters

* Add support for SelectionList to CUI

* Add selection option to PUI

* fix display

* add PUI admin entries

* remove get_api_url

* fix modeldict

* Add models for meta

* Add test for inactive lists

* Add locking and testing for locking

* ignore unneeded section

* Add PUI testing for adding parameter

* Add selectionList admin

* also allow creating entries

* extend tests

* force click

* and more testing

* adapt test?

* more assurance?

* make test more robust

* more retries but shorter runs

* Update playwright.config.ts

* Add docs

* Add note regarding administration

* Adapt to https://github.com/inventree/InvenTree/pull/8093

* make help text more descriptive

* fix migration

* remove unneeded UI entries

* add lables and describtions to TableFields

* factor out selectionList forms

* add key to button

* cleanup imports

* add editable fields

* Add function to add row

* fix render warning

* remove dead parameter

* fix migrations

* fix migrations

* fix format

* autofix

* fix migrations

* fix create / update loop

* fix addition of empty lists

* extend tests

* adjust changelog entry

* fix updating loop

* update test name

* merge migrations

* simplify request

* - Add entry count to list
- Move parameter table to default accordion

* fix test

* fix test clearing section

---------

Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2024-11-27 13:30:39 +11:00
Matthias Mair 594dc49b84 Bump backend deps (#8559)
* bump backend deps

* bump api
2024-11-26 09:25:06 +11:00
Matthias Mair 5cda270e4b Small SAST fixes (#8534)
* fix various middle-high SAST errors

* fix another small issue

* add default
2024-11-26 09:15:44 +11:00
Matthias Mair 0f194af585 Fix spelling of InvenTree in code base (#8561)
* fix spelling of InvenTree in code

* fix spelling in frontend
2024-11-26 08:29:47 +11:00
Matthias Mair 66a769edca [PUI] SSO improvments (#8527)
* disable PUI SSO login button if not fully set up
see https://github.com/inventree/InvenTree/issues/7972

* refactor provider urls to also support oidc providers

* cleanup
2024-11-25 07:25:39 +11:00
Matthias MairandOliver ad6f8596eb fix refreshInstance type and remove return (#8478)
* fix refreshInstance type and remove return

* Add seperate refresh function with promise as return

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-11-20 09:38:59 +11:00
Matthias Mair 4aa7c59f5b Bump backend linting deps (#8526)
* upgrade deps

* bump eslint
2024-11-20 08:54:37 +11:00
Matthias Mair e4a39692ff Add structlog (#7937)
* Add structlog
Closes #3960

* fix formatting

* make log writing optional

* ignore logfiles

* fix variable naming
2024-11-19 19:48:20 +11:00
Matthias Mair 65e4b69c16 Add row context (right click) additionally to actions in tables (#8013)
* Add row context

* fix lockfile

* fix type

* fix styling

* formatting fixes
2024-11-15 10:50:08 +11:00
Matthias MairandOliver ee01ac592f fix various sonarlint warnings (#8479)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2024-11-14 16:58:39 +11:00
Matthias Mair 0872beaba9 [PUI] Switch linting to biome (#8317)
* bump pre-commit

* add biome

* autofixes

* use number functions

* fix string usage

* use specific variable definition

* fix missing translations

* reduce alerts

* add missing keys

* fix index creation

* fix more strings

* fix types

* fix function

* add missing keys

* fiy array access

* fix string functions

* do not redefine var

* extend exlcusions

* reduce unnecessary operators

* simplify request

* use number functions

* fix missing translation

* add missing type

* fix filter

* use newer func

* remove unused fragment

* fix confusing assigment

* pass children as elements

* add missing translation

* fix imports

* fix import

* auto-fix problems

* add autfix for unused imports

* fix SAST error

* fix useSelfClosingElements

* fix useTemplate

* add codespell exception

* Update pui_printing.spec.ts

* Update pui_printing.spec.ts

* add vscode defaults
2024-11-12 11:03:08 +11:00
Matthias Mair 9cd0394dc4 Remove unneeded AjaxView usage (#8461)
* remove unneeded AjaxView usage

* add schema

* bump schema version

* make schema more acurate

* exclude not found view

* make script also axept base api
2024-11-11 09:11:20 +11:00
Matthias Mair cd9f491dc6 Remove coupling of tests to cui (#8389)
* remove coupling of tests to cui

* all testing for PUI absolute urls

* remove overlapping test

* refactor middleware check

* move static things into global

* factor out test target

* re-add api exception

* keep using settings.js for now
2024-11-08 19:36:33 +11:00
Matthias Mair fade7e3d04 narrw scope of cleanup (#8441) 2024-11-07 11:20:51 +11:00
Matthias Mair 56bd66ddd4 fix link to MIT license (#8386)
* fix link to MIT license

* ignore opensource.org in linting
2024-11-05 10:11:45 +11:00
Matthias Mair 9f9afa1593 bump dev deps (#8336) 2024-10-24 14:39:29 +11:00