Tim Gröger
ba93345a09
feat(users) fix cli if user get role, that provider is updatet too
2023-02-18 15:48:53 +01:00
Tim Gröger
d475f3f8e2
feat(ldap) fix login on ldap
2023-02-18 15:11:42 +01:00
Tim Gröger
a50ba403fc
feat(ldap) fix sync from ldap
2023-02-17 20:40:27 +01:00
Tim Gröger
e0acb80f5d
feat(plugin) fix get right instance auf auth_provider
2023-02-17 17:52:20 +01:00
Tim Gröger
c5436f22fa
feat(ldap) fix get right config
2023-02-17 16:40:54 +01:00
Tim Gröger
7796f45097
feat(db) fix get plugins if no database exists
2023-02-17 15:30:05 +01:00
Tim Gröger
8a656c3c89
Merge branch 'develop' into feature/migrations
2023-02-17 13:15:32 +01:00
Ferdinand Thiessen
9f729bda6c
[plugins] Fix `auth_ldap`, `balance`, and `pricelist` compatibility
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-26 17:05:03 +02:00
Ferdinand Thiessen
9e8117e554
[plugins] Fix scheduler accessing database while unbound from session
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 18:45:01 +02:00
Ferdinand Thiessen
88a4dc24f2
[db] Fix automatic migration upgrade for plugins and core
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 18:44:21 +02:00
Ferdinand Thiessen
0698327ef5
[core][deps] Use sqlalchemy_utils instead of copy-paste code for merging references
...
This fixes issues when using SQLite
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 17:07:12 +02:00
Ferdinand Thiessen
aa8f8f6e64
[core][plugin] Allow blueprints to be set on instance level
...
This ensures blueprints are read from the plugin instance
instead of the class, allowing custom routes to be added within the
`load()` function.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 17:05:04 +02:00
Ferdinand Thiessen
6ad8cd1728
[cli] Users and roles can be now managed using the cli
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 17:04:22 +02:00
Ferdinand Thiessen
e2254b71b0
[core][plugin] Unify plugin model and real plugins
...
Plugins are now extensions of the database model,
allowing plugins to access all their properties.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 15:39:05 +02:00
Ferdinand Thiessen
973b4527df
[core] UA parsing: Add backwards compatibility for platform names
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 14:55:49 +02:00
Ferdinand Thiessen
4248825af0
Revert future imports for annotations, PEP563 is still defered
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-25 12:06:59 +02:00
Ferdinand Thiessen
e22e38b304
Implement custom UA parsing, allowing to update Flask and Werkzeug
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-22 17:18:03 +02:00
Ferdinand Thiessen
ee38e46c12
[core] Cleanup + Fix loading migrations of (dis)abled plugins
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-18 22:59:19 +02:00
Ferdinand Thiessen
d3530cc15f
The enabled state of plugins is now loaded from database rather than config file
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-18 21:22:47 +02:00
Ferdinand Thiessen
e41be21c47
Restructure models and database import paths
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-18 19:53:58 +02:00
Ferdinand Thiessen
7f8aa80b0e
Update dependencies and increase python version to 3.10
...
Drop future imports, not needed with python 3.10
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-08-18 19:45:54 +02:00
Ferdinand Thiessen
dc2b949225
[cli] Fix exporting of plugin interfaces
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-31 19:28:11 +02:00
Ferdinand Thiessen
fa503fe142
[cli] Added install command to install the database and all plugins
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-31 19:07:40 +02:00
Ferdinand Thiessen
f1d6b6a2f2
[plugins][cli] Fix initial migration file + Make sure plugin permissions are installed
...
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-07-31 19:07:32 +02:00
Ferdinand Thiessen
573bea2da0
feat(cli): Added CLI command for handling plugins
...
ci/woodpecker/push/lint Pipeline was successful
Details
ci/woodpecker/push/test Pipeline was successful
Details
ci/woodpecker/pr/lint Pipeline was successful
Details
ci/woodpecker/pr/test Pipeline was successful
Details
* Install / Uninstall plugins
* List plugins
2022-03-08 17:22:55 +01:00
Ferdinand Thiessen
4fbd20f78e
feat(docs): Add documentation on how to install tables
...
Also various documentation fixed and improvments
2022-03-08 17:22:55 +01:00
Ferdinand Thiessen
6a35137a27
feat(db): Add database migration support, implements #19
...
Migrations allow us to keep track of database changes and upgrading databases if needed.
* Add initial migrations for core Flaschengeist
* Add migrations to balance
* Add migrations to pricelist
* Skip plugins with not satisfied dependencies.
2022-03-08 17:22:55 +01:00
Ferdinand Thiessen
bf02c0e21f
fix(db): Add __repr__ to custom column types, same as done by SQLAlchemy
2022-03-08 17:22:55 +01:00