InvenTree/InvenTree/users
Lukas 073a275d89
Skip ready functions if not in main thread or plugins are not loaded yet (#5005)
* Skip ready functions if not in main thread or plugins are not loaded yet

* Debug integration tests

* Update ready.py

* Update ready.py

* Fix isInMainThread and isPluginRegistryLoaded ready functions

* Preload gunicorn app to only invoke the appconfig ready functions once

* debug: test prints for statistics

* Remove debug print

* Test without

* Revert "Test without"

This reverts commit 1bc1872893.

* Second test

* Add checks back to part, label, user model

* Add checks back to inventree, plugin apps

* log server output for debugging

* hopefully I can get the log this time+

* Next test

* Test with --noreload

* Next test

* trigger: ci, because session expired

* block the second ready execution instead of the first

* fix: load order

* Fix test and revert gh actions workflow change

* Added all_apps method to reload machanism

* Changed detect reload mechanism

* Also trigger ready on reload

* Add skipping second reload back for testing mode

* Added doc string back

* Update InvenTree/plugin/base/integration/AppMixin.py
2023-07-26 08:33:13 +10:00
..
fixtures Adding bulk deletion endpoint for notifications (#3154) 2022-06-08 07:45:30 +10:00
migrations decouble ruleset migration (#5067) 2023-06-19 16:56:26 +10:00
__init__.py Added User API and serializer 2017-04-20 22:40:59 +10:00
admin.py Fix common spelling mistakes (#4956) 2023-06-04 00:04:52 +10:00
api.py Enable regex search (#4566) 2023-04-04 07:05:55 +10:00
apps.py Skip ready functions if not in main thread or plugins are not loaded yet (#5005) 2023-07-26 08:33:13 +10:00
models.py Add database model for defining custom units (#5268) 2023-07-19 06:24:16 +10:00
serializers.py Move Meta class to top of class definition (#4363) 2023-02-18 18:51:00 +11:00
test_api.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00
test_migrations.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00
tests.py Cleanup / consolidate unit testing code (#4831) 2023-05-17 07:35:26 +10:00