Commit Graph

47 Commits

Author SHA1 Message Date
Oliver 2b1d8f5b79
Set part category (#3134)
* Refactor function to enable / disable submit button on modal forms

* Category selection now just uses the AP

* Remove unused forms / views

* JS linting fixes

* remove outdated unit test
2022-06-06 13:00:30 +10:00
Matthias Mair 0c97a50e47
Docstring checks in QC checks (#3089)
* Add pre-commit to the stack

* exclude static

* Add locales to excludes

* fix style errors

* rename pipeline steps

* also wait on precommit

* make template matching simpler

* Use the same code for python setup everywhere

* use step and cache for python setup

* move regular settings up into general envs

* just use full update

* Use invoke instead of static references

* make setup actions more similar

* use python3

* refactor names to be similar

* fix runner version

* fix references

* remove incidential change

* use matrix for os

* Github can't do this right now

* ignore docstyle errors

* Add seperate docstring test

* update flake call

* do not fail on docstring

* refactor setup into workflow

* update reference

* switch to action

* resturcture

* add bash statements

* remove os from cache

* update input checks

* make code cleaner

* fix boolean

* no relative paths

* install wheel by python

* switch to install

* revert back to simple wheel

* refactor import export tests

* move setup keys back to not disturbe tests

* remove docstyle till that is fixed

* update references

* continue on error

* add docstring test

* use relativ action references

* Change step / job docstrings

* update to merge

* reformat comments 1

* fix docstrings 2

* fix docstrings 3

* fix docstrings 4

* fix docstrings 5

* fix docstrings 6

* fix docstrings 7

* fix docstrings 8

* fix docstirns 9

* fix docstrings 10

* docstring adjustments

* update the remaining docstrings

* small docstring changes

* fix function name

* update support files for docstrings

* Add missing args to docstrings

* Remove outdated function

* Add docstrings for the 'build' app

* Make API code cleaner

* add more docstrings for plugin app

* Remove dead code for plugin settings
No idea what that was even intended for

* ignore __init__ files for docstrings

* More docstrings

* Update docstrings for the 'part' directory

* Fixes for related_part functionality

* Fix removed stuff from merge 99676ee

* make more consistent

* Show statistics for docstrings

* add more docstrings

* move specific register statements to make them clearer to understant

* More docstrings for common

* and more docstrings

* and more

* simpler call

* docstrings for notifications

* docstrings for common/tests

* Add docs for common/models

* Revert "move specific register statements to make them clearer to understant"

This reverts commit ca96654622.

* use typing here

* Revert "Make API code cleaner"

This reverts commit 24fb68bd3e.

* docstring updates for the 'users' app

* Add generic Meta info to simple Meta classes

* remove unneeded unique_together statements

* More simple metas

* Remove unnecessary format specifier

* Remove extra json format specifiers

* Add docstrings for the 'plugin' app

* Docstrings for the 'label' app

* Add missing docstrings for the 'report' app

* Fix build test regression

* Fix top-level files

* docstrings for InvenTree/InvenTree

* reduce unneeded code

* add docstrings

* and more docstrings

* more docstrings

* more docstrings for stock

* more docstrings

* docstrings for order/views

* Docstrings for various files in the 'order' app

* Docstrings for order/test_api.py

* Docstrings for order/serializers.py

* Docstrings for order/admin.py

* More docstrings for the order app

* Add docstrings for the 'company' app

* Add unit tests for rebuilding the reference fields

* Prune out some more dead code

* remove more dead code

Co-authored-by: Oliver Walters <oliver.henry.walters@gmail.com>
2022-06-02 01:37:39 +10:00
Matthias Mair 6ef8c3dc83 run as admin 2022-05-20 19:11:21 +02:00
Matthias Mair 45a9a4d0c5 add in missing class references 2022-05-20 17:55:11 +02:00
Matthias Mair a148dbf303 refactor 'all' role 2022-05-20 17:43:51 +02:00
Matthias Mair 3a1996dd48 PEP fix 2022-05-20 12:32:25 +02:00
Matthias Mair 0d5dea3e6d refactor test setup 2022-05-20 12:12:32 +02:00
Oliver 4f74a27e1a Exporting data from a Part table now uses the API too
- Makes use of the existing table filters
- Exported data matches exactly what you see in the table!
2022-03-03 17:42:31 +11:00
Oliver 4a90786296 PEP code style fixes 2021-11-25 14:55:24 +11:00
Oliver 68f7887379 Related parts are now created via the API 2021-11-25 14:23:27 +11:00
Oliver 6816071388 Simplify BOM editing view
- A user with permission to edit BOM data can immediately access the BOM editing tools
2021-10-13 14:44:59 +11:00
Oliver Walters aa4ed9feb0 Refactor MakeVariant form
- Now is essentially identical to the DuplicatePart form
- Uses the API form structure
2021-08-05 00:24:38 +10:00
Oliver Walters b04f22fc53 CreatePart form now uses the API
- Simplify the way category parameter templates are copied
2021-08-04 23:27:16 +10:00
Oliver Walters 2e8a490ca9 Fixes for unit tests 2021-08-04 17:41:47 +10:00
Oliver 83d8226ad6 Refactor "CreatePartCategory" form to API
(cherry picked from commit 06ff961564)
2021-08-04 11:34:42 +10:00
Oliver 984e16d5af Return all part parameters to the main part edit form
- refactor purchaseorder view
- refactor salesorder view
2021-07-15 16:07:46 +10:00
Oliver 238dccc071 Replace PartAttachmentCreate form 2021-06-30 09:45:36 +10:00
Oliver 621f47e46c Replace "edit part category" form 2021-06-30 01:04:39 +10:00
Matthias f2b0717d10 removes all lines consisting only of spaces
this really bothers me for some reason - nothing technical
2021-05-06 12:11:38 +02:00
Oliver Walters 199ba27031 PEP!!! 2021-02-22 18:44:59 +11:00
Oliver Walters 28e9aa4afa More unit fixes 2021-02-22 18:11:40 +11:00
Oliver Walters ae7fbd6112 Add PEP8-naming extension for flake
- Enforcing python naming checks
2020-11-12 21:53:04 +11:00
eeintech 142cea0cbb Removed custom form save method, remove unused model methods, restored InvenTree CreateAjaxView, improved part related testing 2020-11-04 07:44:06 -05:00
eeintech 0882528b82 Missing class trailing space 2020-11-03 11:15:16 -05:00
eeintech 32b46cdc2a Added better PartRelated creation test 2020-11-03 11:14:31 -05:00
eeintech 0b26d68d0f Added admin view, improved validation of part related relationship 2020-10-16 15:29:58 -05:00
Oliver Walters b3e4efd96e Unit testing fixes 2020-10-06 16:03:19 +11:00
Oliver Walters 3f59ce3f93 Update unit tests
- requires the user to actually have the necessary permissions!
2020-10-06 01:30:36 +11:00
eeintech 27241e217f Style correction 2020-09-07 08:46:39 -05:00
eeintech c5efce36b6 Added PartDetailFromIPN view tests 2020-09-07 08:40:37 -05:00
Oliver Walters 882bda46b4 Fix tests 2020-02-11 22:38:50 +11:00
Oliver Walters bd653f2c49 Some more unit tests 2020-01-07 21:16:01 +11:00
Oliver Walters dac1264878 Fixed unit tests 2019-09-06 12:48:31 +10:00
Oliver Walters 20b37a2d11 Test fixes 2019-09-03 22:45:11 +10:00
Oliver Walters 45d5667ccc PEP fixes 2019-08-08 23:36:32 +10:00
Oliver Walters b872a12131 Test for making part variant 2019-08-08 23:34:32 +10:00
Oliver Walters 3a87cd866c Tests for part creation
- Need more tests for POST action
2019-08-08 23:32:34 +10:00
Oliver Walters 51e4a4c006 Tests for BomItem forms 2019-08-08 23:22:26 +10:00
Oliver Walters d6f1fe74d1 Tests for PartCategory forms 2019-08-08 23:16:03 +10:00
Oliver Walters ab3e66d578 Test for BOM download 2019-08-08 23:10:07 +10:00
Oliver Walters f299248063 Improve testing for part export 2019-08-08 23:06:22 +10:00
Oliver Walters 21d2c434ff Test for part export view
- Needs some more work (parts need supplier parts!)
2019-08-08 23:04:58 +10:00
Oliver Walters afcd411358 (partial) tests for attachment forms 2019-08-08 23:00:01 +10:00
Oliver Walters 3a9494ee69 Test for Part Editing form 2019-08-08 22:50:17 +10:00
Oliver Walters 7db97f2226 Test Part QR Code view 2019-08-08 22:45:10 +10:00
Oliver Walters a70484caff Test PartDetail view 2019-08-08 22:45:02 +10:00
Oliver Walters f26243af97 Tests for Part index / 2019-08-08 22:19:17 +10:00