Commit Graph

405 Commits

Author SHA1 Message Date
Oliver Walters
326b897d14 Revert "Move mixins.py into main plugin directory"
This reverts commit 8103b84268.
2022-01-07 14:54:12 +11:00
Oliver Walters
0773545615 Add "ScheduleMixin" for scheduling tasks 2022-01-07 14:54:04 +11:00
Oliver Walters
8103b84268 Move mixins.py into main plugin directory 2022-01-07 14:23:32 +11:00
Matthias
0974ebb5cd
shield plugin package load 2022-01-07 01:10:44 +01:00
Matthias
edc648d619
write installd plugins to plugins.txt 2022-01-07 01:09:44 +01:00
Matthias
ceed90217b
restructuring 2022-01-07 01:03:05 +01:00
Oliver
ac849c1566 Fixes for unit tests 2022-01-04 21:36:27 +11:00
Oliver
928b90a833 Edit plugin settings via the "settings" display 2022-01-04 21:03:01 +11:00
Oliver
dc9e25ebad Adds API endpoints for viewing and updating plugin settings
A lot of code updates / refactoring here to get this to work as expected
2022-01-04 20:27:35 +11:00
Oliver
f3bfe6e7ca More refactoring:
- Rename "mixins_globalsettings" to "mixing_settings"
- Fix translation on settings page template
2022-01-02 11:22:05 +11:00
Oliver
737467a1fd Rename "has_globalsettings" -> "has_settings" 2022-01-01 23:14:34 +11:00
Oliver
7cb029e7c3 Refactor: Rename "GLOBAL_SETTINGS" to "SETTINGS" 2022-01-01 22:43:35 +11:00
Oliver
7f08c75a08 Add missing migration file 2022-01-01 22:00:58 +11:00
Oliver
547db3322f Adds new "PluginSetting" class
- Adds settings which are unique to a particular plugin
2022-01-01 22:00:43 +11:00
Oliver
9b468ba92e Second fix for the first fix 2021-12-31 15:20:32 +11:00
Oliver
78120bb020 Fixes for unit tests 2021-12-31 14:54:19 +11:00
Oliver
4b4d4be13e Registry name fixes 2021-12-31 14:28:16 +11:00
Oliver
02e0ea6e3a Rename "GlobalSettingsPlugin" -> "SettingsPlugin" 2021-12-31 14:25:22 +11:00
Oliver
e02a2cef1b Fixes unit test 2021-12-31 14:18:27 +11:00
Oliver
be3bb05edd Improve docstrings 2021-12-30 23:06:28 +11:00
Oliver
04820c894b getattr should look for "SETTINGS" and not "GLOBALSETTINGS" 2021-12-30 23:04:08 +11:00
Oliver
67d9d9413f Plugin code bug fix
- handle case where self.plugin is None
2021-12-30 22:58:11 +11:00
Matthias
251fdeb69e
PEP fixes 2021-12-13 18:01:20 +01:00
Matthias
8e962c0c59
add mixin to consum a single API 2021-12-13 08:03:19 +01:00
Matthias
e6ad22ec15
fix plugin urlpattern patching 2021-12-10 01:34:47 +01:00
Matthias
529987bb17
remove unneeded Todo 2021-12-04 19:52:56 +01:00
Matthias
8fddf66618
remove unneeded TODO 2021-11-23 23:40:52 +01:00
Matthias
8236c51827
PEP fix 2021-11-23 18:42:41 +01:00
Matthias
aae0018a72
stop CI failing 2021-11-22 03:02:03 +01:00
Matthias
3050bb0703
higher retry threshold + better logging 2021-11-22 02:46:03 +01:00
Matthias
395573ca5b
do not trigger reload 2021-11-22 01:55:21 +01:00
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
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
c0e45d7b4f
remove url check wrapper
will be a seperate PR later
2021-11-21 01:16:12 +01:00
Matthias
be5289ba0f
break on database error 2021-11-21 00:53:04 +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
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
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
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
8cab974893
send command as string 2021-11-18 16:38:31 +01:00
Matthias
e5d0380356
PEP fixes
finishes work for #2318
2021-11-18 16:35:16 +01:00
Matthias
a617b8b158
fix spelling 2021-11-18 16:26:07 +01:00
Matthias
0ece82c812
add labels / helptexts to serializer 2021-11-18 16:25:49 +01:00
Matthias
efa2ad542d
add refactor 2021-11-18 16:19:46 +01:00
Matthias
6ab0e68000
remove unneeded imports 2021-11-18 16:18:08 +01:00
Matthias
3af426bdd7
allow empty values -> submition from form 2021-11-18 16:17:47 +01:00
Matthias
37f14f537a
make sure bool for maintenance sate 2021-11-18 16:17:26 +01:00
Matthias
000adb357d
refactor plugin urls into plugin dir 2021-11-18 12:50:22 +01:00
Matthias
bff4623a15
refactor 2021-11-18 01:48:03 +01:00
Matthias
95fbc27f10
PEP fixes 2021-11-18 01:46:27 +01:00
Matthias
cbcab9498a
override return behaviour 2021-11-18 01:36:37 +01:00
Matthias
392b7a4683
fix vcs check 2021-11-18 01:30:31 +01:00
Matthias
4effd76ca0
spellfix 2021-11-18 01:24:30 +01:00
Matthias
a9fbfaf6af
add installer endpoint 2021-11-18 01:24:14 +01:00
Matthias
e728dc8fdf
add detail endpoint 2021-11-17 23:51:29 +01:00
Matthias
530227e15f
add mixins to API 2021-11-17 23:35:56 +01:00
Matthias
a996be3f5c
always slugify key 2021-11-17 23:21:05 +01:00
Matthias
b0142de421
adding API endpoints for plugins 2021-11-17 23:16:05 +01:00
Matthias
fe96d07c1e
log lookup error 2021-11-17 02:07:29 +01:00
Matthias
4ab464dc9e
refactor for debug if lookups fail 2021-11-17 02:07:13 +01:00
Matthias
0f321b8e83
turns out we needed that 2021-11-17 02:03:03 +01:00
Matthias
e121ad374b
more safer = more better ::inno: 2021-11-17 02:02:47 +01:00
Matthias
4513ad5ab6
and this also 2021-11-17 02:02:23 +01:00
Matthias
6c5dd2a5a4
and safety here too 2021-11-17 01:59:30 +01:00
Matthias
7c9ba1007d
refactor 2021-11-17 01:51:47 +01:00
Matthias
c3ea0f0704
indentations fix 2021-11-17 01:51:13 +01:00
Matthias
3d2648ffb2
make deactivaton safe
even if apps were not loaded rigth
2021-11-17 01:51:05 +01:00
Matthias
8708279629
some more docs 2021-11-17 01:46:22 +01:00
Matthias
a7279ce43e
streamlining 2021-11-17 01:46:12 +01:00
Matthias
b563bbee00
fixes for reloading contrib apps 2021-11-17 01:45:48 +01:00
Matthias
5c74141588
fully unregister app 2021-11-17 01:44:19 +01:00
Matthias
b0f315dcba
add missing migration 2021-11-16 00:41:08 +01:00
Matthias
40cf7869d3
refactor mixin locations 2021-11-16 00:40:49 +01:00
Matthias
2188025a93
refactor meta names 2021-11-16 00:23:23 +01:00
Matthias
53422517ed
PEP fixes 2021-11-16 00:21:14 +01:00
Matthias
65764effbb
add verbose names to model 2021-11-16 00:21:03 +01:00
Matthias
aec6a58cad
add filter to admin 2021-11-16 00:18:06 +01:00
Matthias
f460780e39
reorder list display 2021-11-16 00:17:44 +01:00
Matthias
bc79778639
refactor 2021-11-16 00:14:44 +01:00
Matthias
1794fb8865
check if you the plugins really need to be reloaded 2021-11-16 00:12:58 +01:00
Matthias
3b0a004d6e
update docsstrings 2021-11-16 00:09:38 +01:00
Matthias
35d2259edf
added settings actions 2021-11-16 00:05:53 +01:00
Matthias
b783ec566c
add maintenance mode 2021-11-15 22:07:30 +01:00
Matthias
45167fe2f0
PEP fixes 2021-11-15 07:47:52 +01:00
Matthias
7129a35900
add todo regarding reload safety 2021-11-15 02:20:37 +01:00
Matthias
35e211e330
this was for finding a testing error 2021-11-15 02:11:28 +01:00
Matthias
84ea56a8f2
docstrings should be manadtory 2021-11-15 02:11:12 +01:00
Matthias
dbfe0d39ea
this is simpler to read 2021-11-15 02:10:57 +01:00
Matthias
1aafec7107
PEP fixes 2021-11-15 02:10:43 +01:00
Matthias
c41f16837d
remove blocking condition 2021-11-15 02:06:38 +01:00
Matthias
81335ee1d5
clear url caches 2021-11-15 02:05:57 +01:00
Matthias
87edbf7c33
unresgister models when deactivating 2021-11-15 01:01:55 +01:00
Matthias
65ff226b90
remove debug messages 2021-11-15 01:01:01 +01:00
Matthias
d2a34b83c6
clear settings reliably 2021-11-15 00:21:47 +01:00
Matthias
84a675ae39
update urls too 2021-11-15 00:10:05 +01:00
Matthias
47bb9466b7
fix initial startup phase 2021-11-14 23:49:00 +01:00
Matthias
eb02a85154
fix indentation 2021-11-14 23:09:42 +01:00
Matthias
9ecf9603d6
load django internal reloading mechanisms 2021-11-14 23:08:28 +01:00
Matthias
f13507e23c
refactor 2021-11-14 22:16:45 +01:00
Matthias
fd5939d233
simplify function 2021-11-14 22:14:50 +01:00
Matthias
6922e24237
refactor and doc 2021-11-14 22:08:57 +01:00
Matthias
d586d6225c
more struc 2021-11-14 22:02:14 +01:00
Matthias
c059583b08
add live reloading 2021-11-14 22:01:00 +01:00
Matthias
e3d334f467
remove debug message 2021-11-14 02:45:59 +01:00
Matthias
8faed72278
make db setting fetching safe 2021-11-14 02:03:56 +01:00
Matthias
4abb23963a
log if db not loaded 2021-11-14 01:59:47 +01:00
Matthias
01cf848fbb
fix wrong set settings 2021-11-14 01:53:35 +01:00
Matthias
4ac5895822
compare ordered 2021-11-14 01:33:07 +01:00
Matthias
990ad95c13
fix global settings test 2021-11-14 01:32:44 +01:00
Matthias
013e8ab3bd
disable IntegrationPlugin loading from setup hook in testing 2021-11-14 01:12:23 +01:00
Matthias
1391df7236
fix test for global settings 2021-11-14 00:49:00 +01:00
Matthias
b10492f088
rename global settings objects 2021-11-14 00:24:32 +01:00
Matthias
11c3ac8bf8
make id fields in plugins read_only
Fixes #2305
2021-11-13 23:40:14 +01:00
Matthias
b79f0052a4
assert that plugin testing is enabled 2021-11-13 02:02:01 +01:00
Matthias
ff3d9e373c
change order back 2021-11-13 02:00:59 +01:00
Matthias
357f63180f
add settings url 2021-11-13 01:40:05 +01:00
Matthias
c850269bd7
log testing state 2021-11-13 01:39:41 +01:00
Matthias
2638ef046d
own flag to enable plugin testing 2021-11-13 01:39:22 +01:00
Matthias
9d3aab58d7
fix loading dir 2021-11-13 01:29:17 +01:00
Matthias
28af5dc128
add regions for easier code nav 2021-11-13 01:26:26 +01:00
Matthias
367c37bbaf
remove setup helper as it is not needed anymore 2021-11-13 01:25:41 +01:00
Matthias
5272b56d04
activate plugins if testing 2021-11-13 01:15:20 +01:00
Matthias
6015de1cd9
fix assertion inp 2021-11-13 01:10:00 +01:00
Matthias
6d47364e06
fix list equal 2021-11-13 00:52:10 +01:00