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
Ferdinand Thiessen
2d4c8ebfd9
fix(plugins): Fix functions using id instead of name property
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
2022-03-07 14:36:31 +01:00
Ferdinand Thiessen
6f35e17fba
feat(plugins): Load metadata from entry points / distribution
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
2022-02-23 15:20:31 +01:00
Ferdinand Thiessen
2f4472e708
feat(docs): Added more documentation on plugins
ci/woodpecker/push/lint Pipeline was successful
Details
ci/woodpecker/push/test Pipeline was successful
Details
2022-02-23 15:19:45 +01:00
Ferdinand Thiessen
e510c54bd8
chore(clean): Fix codestyle of config.py
ci/woodpecker/push/lint Pipeline was successful
Details
ci/woodpecker/push/test Pipeline was successful
Details
2022-02-22 11:11:23 +01:00
Ferdinand Thiessen
c5db932065
chore(clean): Drop `_module_path` from flaschengeist
2022-02-21 22:24:33 +01:00
Ferdinand Thiessen
1484d678ce
feat(security): Enforce secret key for flask application.
2022-02-21 21:03:15 +01:00
Ferdinand Thiessen
e82d830410
fix(app): Fix import_name for flask application
2022-02-21 21:02:45 +01:00
Ferdinand Thiessen
760ee9fe36
fix(cli): Fix logging when setting verbosity on the cli
2022-02-21 21:02:15 +01:00
Ferdinand Thiessen
90999bbefb
chore(core): Seperated logic from the plugin code, reduces imports
2022-02-13 14:31:55 +01:00
Ferdinand Thiessen
a6cbc002f6
fix(cli): InterfaceGenerator now works even without a namespace defined
continuous-integration/woodpecker the build failed
Details
2021-12-23 02:48:28 +01:00
Ferdinand Thiessen
34ee95c66a
feat(cli): Split CLI commands into seperate files
2021-12-23 02:48:02 +01:00
Ferdinand Thiessen
9bcba9c7f9
fix(users): Fix import error inside `set_roles`
continuous-integration/woodpecker the build failed
Details
2021-12-22 00:37:52 +01:00
Ferdinand Thiessen
016ed7739a
fix(db): Fix Serial column type for SQLite
continuous-integration/woodpecker the build failed
Details
2021-12-22 00:36:41 +01:00
Ferdinand Thiessen
702b894f75
feat(tests): Added first unit test for the user controller
continuous-integration/woodpecker the build failed
Details
2021-12-22 00:34:32 +01:00
Ferdinand Thiessen
22fbb526bb
fix(balance): Replace deprecated sqlalchemy functions
continuous-integration/woodpecker the build failed
Details
2021-12-19 19:01:48 +01:00
Ferdinand Thiessen
d9be9430db
docs(misc): Some more documentation fixes
2021-12-19 19:01:27 +01:00
Ferdinand Thiessen
4df7f1cc01
docs(plugins): Some more documentation on the plugin class
2021-12-19 18:58:57 +01:00
Ferdinand Thiessen
b8ac6eb462
fix(users): Readd `create` flag on set_roles
continuous-integration/woodpecker the build failed
Details
2021-12-19 13:06:36 +01:00
Ferdinand Thiessen
25ba4d21aa
feat(balance): Add option to allow active services to debit other users
continuous-integration/woodpecker the build was successful
Details
2021-12-18 04:23:53 +01:00
Ferdinand Thiessen
e1f919bd20
feat(scheduler): Add function to add scheduled tasks programmatically
2021-12-18 04:19:57 +01:00
Ferdinand Thiessen
691345cf40
fix(roles): Minor fix in set_permissions
2021-12-18 04:19:07 +01:00
Ferdinand Thiessen
1db3391826
fix(roles): Minor documentation + typings
2021-12-18 03:04:37 +01:00
Ferdinand Thiessen
2df5a61ff3
fix(cli): Fix logging level not set on run
2021-12-18 03:03:41 +01:00
Ferdinand Thiessen
b8f086b4dd
fix(app): Add AuthPlugin to FG_PLUGINS
2021-12-18 02:15:53 +01:00
Ferdinand Thiessen
ab093c04bd
fix(cli): Defaul logging level should be WARNING
continuous-integration/woodpecker the build was successful
Details
2021-12-18 02:12:19 +01:00
Ferdinand Thiessen
ee839ce6a3
fix(auth_plain): Fix post_install hook
2021-12-18 02:12:00 +01:00
Ferdinand Thiessen
bd371dfcf2
fix(users): Register: validate `mail`, handle duplicated `userid`, only send password mail if `mail` was set
continuous-integration/woodpecker the build was successful
Details
2021-12-18 01:56:52 +01:00
Ferdinand Thiessen
9f6aa38925
fix(users): Reduce amount of SELECT queries in set_roles
2021-12-18 01:55:24 +01:00
Ferdinand Thiessen
ec7bf39666
fix(roles): Map IntegrityError to BadRequest as this is an client error, no server error.
2021-12-18 01:51:38 +01:00
Ferdinand Thiessen
0a3da51b92
fix(logging): console logger should default to stderr
2021-12-18 01:50:03 +01:00
Ferdinand Thiessen
ceba819ca7
fix(db): User.userid should be unique
2021-12-18 01:49:17 +01:00
Ferdinand Thiessen
a3ccd6cea1
feat(db): Use named database constraints
2021-12-18 01:48:12 +01:00
Ferdinand Thiessen
53ed2d9d1a
chore(package): Only use setup.cfg, drop setup.py
2021-12-18 01:46:35 +01:00
Ferdinand Thiessen
ece6893675
feat(cli): Ported CLI to use native click / flask cli
2021-12-18 01:44:06 +01:00
Ferdinand Thiessen
38ebaf0e79
feat(hooks): Some more work on the hooks functions
2021-12-17 14:27:27 +01:00
Ferdinand Thiessen
cfac55efe0
fix(app): Add some more debugging
2021-12-17 12:21:53 +01:00
Ferdinand Thiessen
348adefb7c
feat(scheduler): Scheduler is now a plugin
...
Scheduler allows to schedule tasks, like cron does, but requires special configuration.
2021-12-06 23:48:05 +01:00
Ferdinand Thiessen
dca52b764c
fix(plugins): Setting a plugin setting to None removes that setting
2021-12-06 23:44:41 +01:00
Ferdinand Thiessen
f6c229d2ef
feat(core): Selected authentification plugin is always enabled
2021-12-06 23:44:07 +01:00
Ferdinand Thiessen
d8192679e5
chore(cleanup): Drop stuff for unsupported python versions
2021-12-06 15:30:39 +01:00
Ferdinand Thiessen
239faac7dd
fix(plugin): Only active users can and should be notified
2021-12-05 22:56:34 +01:00
Ferdinand Thiessen
5819a0637f
fix(models): Notification.plugin should be bigger to support FQN as value
2021-12-05 22:56:05 +01:00
Ferdinand Thiessen
5b3f63cd0a
fix(roles): Return conflict if role should be deleted but is still in use
2021-12-05 20:50:57 +01:00
Ferdinand Thiessen
bac75ca582
fix(users): Fix query for active users
2021-12-03 13:13:48 +01:00