Commit Graph

32 Commits

Author SHA1 Message Date
491415c7fa Re-black codebase with new standard 2023-02-15 18:01:21 -05:00
6b82170d6f Appease the linter 2022-08-20 20:47:15 -04:00
cafa720bba Fix server quotas. Removed un-used perms columns 2022-08-20 13:00:20 -04:00
e73dd682c8 Fix no-else-* QA warnings 2022-06-14 15:40:57 +03:00
d7606f4cc6 Fix user permissions issue 2022-06-06 17:04:45 -04:00
57ef5e27dd Add route for viewing user Crafty permissions
The route includes the permission mask, counters and limits
2022-05-25 00:55:49 +03:00
ed9d994083 Fix linting in models/crafty_permissions.py 2022-05-20 23:23:18 +03:00
02f5318f76 Merge branch 'dev' into merge/pretzel-lukas-cleanup-nosquash 2022-05-20 22:04:41 +03:00
b7780682d5 Merge branch 'dev' into 'merge/api-v2'
# Conflicts:
#   app/classes/controllers/crafty_perms_controller.py
2022-05-18 21:56:39 +00:00
6407900609 Merge branch 'dev' into experimental/lukas-cleanup 2022-05-19 00:52:59 +03:00
12390306fd Add permissions checks for quantity for users/role
Remove the ability to add quantities for general users.
2022-05-18 14:33:22 -04:00
7c85496eb8 Clean up enum-related functions 2022-05-18 01:55:05 +03:00
cd87a63f1e Improve permission related functions 2022-05-16 17:52:09 +03:00
d415c27a89 Make add_or_update_user more efficient with upsert 2022-05-16 17:15:46 +03:00
8d2f4ba32e Make get_all_permission_quantity_list dynamic 2022-05-16 17:10:57 +03:00
bf59e2de6c Add and fix API v2 and db
* Add basic role routes
* Add API v2 404 handler
* Add API v2 home handler pointing to the wiki
* Add tons more todos
* Add get_*_columns and get_*_column functions for many db models
* Modify and add tons of model and controller functions
2022-05-08 00:07:55 +03:00
53459d83dc Merge branch 'feature/api-v2' into merge/api-v2 2022-05-05 03:32:09 +03:00
1aa0d65cf7 Merge branch feature/external-frontend to feature/api-v2 without the frontend 2022-04-14 15:33:53 +03:00
92c8fc04f3 Refactor to standardize class/variable naming 2022-04-14 03:10:25 +01:00
73b3571606 Appease the linter 2022-04-12 19:22:57 -04:00
42ca4bb973 Refactored the yes to not pass objects in import
Merge Conflicts ᴙ Us
2022-04-11 00:23:55 -05:00
19d2c9ec1c Revert "Merge branch 'bug/DB_Lock' into 'dev'"
This reverts merge request !241
2022-04-10 22:00:44 +00:00
dd5dac6336 Appease Black 2022-04-10 17:02:48 -04:00
3826cb3486 Change all databases to queue 2022-04-10 16:33:54 -04:00
b1ed9ba2bd Add API routes from 3.x
Enhance security for permissions on API requests
Fix bug where server permissions and crafty permissions were flipped upon making a new token
Fix bug where new secret key would be created every time Crafty was started.
Fix bug where DB locks will occur with concurrent writes to the DB.
2022-04-10 19:39:31 +00:00
2a512d7273 Fix files to conform with new Black pylintrc
Mostly just breaking up strings and comments into new lines
Some strings dont require 'f' but keeping in for readability
with the rest of the concatinated string
2022-03-23 06:06:13 +00:00
e06fe8a52a Black codebase
Apply black formatting to codebase
2022-03-23 02:50:12 +00:00
b306d1f313 Tidy imports & dep auto-installer 2022-03-08 04:40:44 +00:00
e0ce1d118c Create pylintrc, code review pipeline & correct codebase errors
Fix uploads,
Only send server stats to user page when they have access to servers
2022-01-26 01:45:30 +00:00
93857f90db JWT login and multi API keys! 2022-01-15 02:23:50 +02:00
2f36cdd249 Correction for crafty permissions 2021-10-09 10:45:40 +02:00
70ca82a086 Rework architecture for better MVC 2021-09-09 00:01:10 +02:00