Commit Graph
100 Commits
Author SHA1 Message Date
Matthias 40dafb7fda PEP fix 2021-11-22 01:36:37 +01:00
Matthias 1efdf16f92 only reload one 2021-11-22 01:30:04 +01:00
Matthias 3920108d83 do not reload whe currently loading 2021-11-22 01:28:36 +01:00
Matthias d54bbf562b remove redundant loggin 2021-11-22 01:06:12 +01:00
Matthias 4b98ea27ce better format 2021-11-22 00:52:51 +01:00
Matthias c496076505 check if file plugin was disabled 2021-11-22 00:52:42 +01:00
Matthias 38eaca1104 fix path prefixes 2021-11-22 00:48:46 +01:00
Matthias e5d474fa0b always set flag 2021-11-22 00:17:35 +01:00
Matthias adc058c8b4 only reload once - even if forced 2021-11-22 00:17:04 +01:00
Matthias a1b821bf78 just use the default failing mechanism 2021-11-22 00:16:43 +01:00
Matthias c3e4a56021 always reset plugin modules on collection 2021-11-22 00:16:09 +01:00
Matthias 8e7c96626f that statement is quite important 2021-11-21 23:57:45 +01:00
Matthias f71b40e031 also handle errors on internal plugins 2021-11-21 23:51:36 +01:00
Matthias 2e28bb225f fix broken integration plugin def 2021-11-21 23:50:54 +01:00
Matthias 87947c582d always log error 2021-11-21 23:48:33 +01:00
Matthias 7782a22f38 make plugin init safe 2021-11-21 23:46:54 +01:00
Matthias bd67285314 PEP fixes 2021-11-21 22:11:18 +01:00
Matthias c828da284c fix tests to really hit admin actions 2021-11-21 22:04:22 +01:00
Matthias 03e5279ec0 PEP fixes 2021-11-21 20:23:43 +01:00
Matthias bafbebb634 test plugin save action 2021-11-21 20:22:44 +01:00
Matthias 75a8b88a92 now it should test 2021-11-21 20:14:17 +01:00
Matthias 211a8e27e6 use pluginreg to reload everywhere 2021-11-21 20:13:58 +01:00
Matthias 4e6e87d950 fix test limitition 2021-11-21 19:19:44 +01:00
Matthias 6b7ea10ba2 PEP fix 2021-11-21 19:18:37 +01:00
Matthias 6533457400 always drop out of maintenance on startup 2021-11-21 19:08:01 +01:00
Matthias 59a1047d41 add admin action test 2021-11-21 18:59:43 +01:00
Matthias ba6a7c0541 check confirm is True 2021-11-21 02:28:01 +01:00
Matthias 6b1c436135 names of plugins must be unique 2021-11-21 02:24:08 +01:00
Matthias 290e91ff79 there are many ways to be broken ... 2021-11-21 02:19:14 +01:00
Matthias fa8f1bbd6f ignore plugins in coverage 2021-11-21 02:13:32 +01:00
Matthias 78cd10f3b9 PEP fix 2021-11-21 02:01:31 +01:00
Matthias 046ee7df06 add api test 2021-11-21 01:57:46 +01:00
Matthias cecee032d7 streamline html templates 2021-11-21 01:21:25 +01:00
Matthias c0e45d7b4f remove url check wrapper
will be a seperate PR later
2021-11-21 01:16:12 +01:00
Matthias e1dd7a17f2 use testing by default 2021-11-21 00:56:00 +01:00
Matthias be5289ba0f break on database error 2021-11-21 00:53:04 +01:00
Matthias 170e0e45e3 disable plugin testing by default 2021-11-21 00:04:41 +01:00
Matthias ad76812622 PEP fix 2021-11-20 23:24:03 +01:00
Matthias 39648e545c Add testing to detecte loops
Fixes #2308
2021-11-20 23:18:45 +01:00
Matthias 2f739bfbfa fix test assertation 2021-11-20 21:10:20 +01:00
Matthias d17af9eae7 PEP fixes 2021-11-20 21:03:51 +01:00
Matthias 65226bad1d add template tag tests 2021-11-20 20:00:35 +01:00
Matthias 33bc77e138 small docstring changes 2021-11-20 19:46:38 +01:00
Matthias e7babfbb7c remove invalid tests 2021-11-20 19:27:53 +01:00
Matthias 7a65520252 move import of integration plugins into registry 2021-11-20 19:25:40 +01:00
Matthias 06e5430948 refactor 2021-11-20 18:40:46 +01:00
Matthias 71f74f9cc4 move globalsettings mixin reg to registry 2021-11-20 18:39:24 +01:00
Matthias b1fbac925d move stacks to registry 2021-11-20 18:26:41 +01:00
Matthias 8fbbcb3a8d better readability 2021-11-20 18:13:33 +01:00
Matthias 5f180b61e9 and another flag moved 2021-11-20 18:11:20 +01:00
Matthias 308348f051 move flags 2021-11-20 18:07:05 +01:00
Matthias 3aa40ce3e9 move settings to registry 2021-11-20 18:01:19 +01:00
Matthias 8ac41970ad simpler imports 2021-11-20 17:46:50 +01:00
Matthias e762ec676d simplify imports 2021-11-20 17:29:06 +01:00
Matthias 8d2ad4da2e set up cleaner import paths 2021-11-20 17:17:36 +01:00
Matthias e90b69262a fix import 2021-11-20 17:12:12 +01:00
Matthias 098116675a move git stuff to the helpers 2021-11-20 17:03:10 +01:00
Matthias 5f83fd007f more structure 2021-11-20 17:02:27 +01:00
Matthias 076cca5e62 add TODO for dependency 2021-11-20 16:43:39 +01:00
Matthias b596e4f164 remove unneeded stuff from broken sample
and optimize for coverage
2021-11-20 16:37:54 +01:00
Matthias ebe5993a45 refactor registry into own class and file 2021-11-20 16:31:02 +01:00
Matthias 8a2a06955f small fixes 2021-11-20 15:49:02 +01:00
Matthias d8963fd5b1 Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-20 13:50:13 +01:00
Matthias 67fa4cc119 PEP fix 2021-11-20 13:44:31 +01:00
Matthias 57aefc8100 wrapper to log failing urls 2021-11-20 13:37:16 +01:00
Matthias e925095503 pack logging into custom error processing 2021-11-20 13:26:37 +01:00
Matthias 008917fdef refactor custom error raising 2021-11-20 13:20:08 +01:00
Matthias 71e05d569b refactor plugin error processing definition 2021-11-20 13:14:18 +01:00
Matthias b05381fcc8 rename / cleanup 2021-11-20 13:00:12 +01:00
Matthias 2f306d951f refactor url definition into plugin 2021-11-20 12:54:51 +01:00
Matthias 4171fe42d9 docstring 2021-11-20 12:47:34 +01:00
Matthias e82c93ffae refactor into own helper function for plugins 2021-11-20 12:39:27 +01:00
Matthias 98b0a2995f ignore error in borken sampel -> it should not work 2021-11-20 12:29:29 +01:00
Matthias f667367a6b add broken plugin for testing error stack 2021-11-20 04:08:21 +01:00
Matthias 6301f06416 PEP fix 2021-11-20 04:06:15 +01:00
Matthias 12fbd92bad conditional error stack showing 2021-11-20 04:04:52 +01:00
Matthias 0d44a4cfa5 error retrieving tag 2021-11-20 04:00:34 +01:00
Matthias 9f0882d637 move imports 2021-11-20 03:52:27 +01:00
Matthias 4b3d5b27a6 add more stack logging points 2021-11-20 03:39:47 +01:00
Matthias 9087cabe5f refactor integration error logging into helper 2021-11-20 03:35:43 +01:00
Matthias ebe712312c refactor 2021-11-20 03:31:58 +01:00
Matthias 8bcdad6a8f make startup more failsafe 2021-11-20 03:29:32 +01:00
Matthias d36ab0d9cd some more docs 2021-11-20 03:22:25 +01:00
Matthias 4c7d295c0e hard reset all plugin registration mechanisms on error 2021-11-20 03:20:55 +01:00
Matthias 3dfb8167a7 refactor 2021-11-20 03:20:14 +01:00
Matthias e70b9bd28f more docs 2021-11-20 03:19:41 +01:00
Matthias be24d141de reload without integration apps if loading fails 2021-11-20 03:16:03 +01:00
Matthias e301971159 keep reloading save
- wrap reloading
- throw custom error
- log custom error in loading function
2021-11-20 03:10:47 +01:00
Matthias 0b6e9ef4c9 custom error 2021-11-20 03:05:36 +01:00
Matthias c57393f457 refactor clean installed apps 2021-11-20 03:05:01 +01:00
Matthias ad98c1df48 refactor registry cleaning 2021-11-20 03:03:57 +01:00
Matthias 1a6a26204e make sure protected values are never exposed 2021-11-20 00:24:17 +01:00
Matthias 1798214cd2 add protected settings in model 2021-11-19 23:59:57 +01:00
Matthias ce71508d8d remove helper for webhooks 2021-11-19 23:54:42 +01:00
Matthias 87e85c8081 Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-19 23:51:02 +01:00
Matthias 74b3cad566 fix language name
missing closing bracket
2021-11-19 23:41:15 +01:00
Matthias 91bc865887 remove webhook ruleset 2021-11-19 23:19:02 +01:00
Matthias a3d9365a78 Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-19 23:09:47 +01:00
Matthias 3fbc6890c9 Merge branch 'master' of https://github.com/inventree/InvenTree into plugin-2037 2021-11-19 22:58:31 +01:00
Matthias 4baf2971da remove webhook apis 2021-11-19 22:53:22 +01:00