Commit Graph
225 Commits
Author SHA1 Message Date
Wu Clan bffc564dd7 Fix tenant context 2026-06-01 02:08:50 +08:00
Wu Clan 4eded4f55a Merge branch 'master' into pre-tenant
# Conflicts:
#	backend/app/admin/service/auth_service.py
#	backend/common/security/jwt.py
#	backend/core/registrar.py
#	backend/middleware/access_middleware.py
#	backend/plugin/oauth2/api/v1/github.py
#	backend/plugin/oauth2/api/v1/google.py
#	backend/plugin/oauth2/crud/crud_user_social.py
#	backend/plugin/oauth2/service/user_social_service.py
#	backend/utils/dynamic_config.py
2026-05-31 16:20:49 +08:00
Wu Clan a5e9a0e805 Refactor physical deletion to logical deletion (#1191)
* Refactor physical deletion to logical deletion

* Update the usage of unique indexes

* Update scheduler update and delete

* Fix lint

* Add some missing logic

* Optimize codegen get by id
2026-05-30 15:02:00 +08:00
Wu Clan 1897b3198e Optimize the usage of setex for redis (#1190) 2026-05-29 11:14:47 +08:00
Wu Clan 5352f98c13 Optimize database operations within loops (#1177)
* Optimize database operations within loops

* Optimize opera log
2026-05-14 11:38:38 +08:00
Wu Clan 8d03e61995 Fix user tenant binding judgment 2026-05-07 10:45:54 +08:00
Wu Clan f7051d4f9d Merge branch 'master' into pre-tenant 2026-04-28 18:04:53 +08:00
Wu Clan bfe4aa91ce Add uninstall plugin operation checks (#1165)
* Add uninstall plugin operation checks

* Fix lint
2026-04-27 17:36:00 +08:00
Toby WongandWu Clan 92f182cd09 Add plugin depends on and lifecycle ordering (#1153)
* feat: add priority support to LifespanManager.register

* feat: support lifespan stages and plugin dependencies

* Optimize implementations

* Fix dependency resolution

* Fix the depends on type

---------

Co-authored-by: Wu Clan <jianhengwu0407@gmail.com>
2026-04-17 16:54:48 +08:00
IAseven 45842d917a Fix app pytest client fixture scope (#1152)
* 🐞 fix:修复测试模块client scope=module时异常

* 🌈 style:

* 🌈 style:
2026-04-12 23:43:37 +08:00
Wu Clan 1f287bbb0c Merge branch 'master' into pre-tenant
# Conflicts:
#	.pre-commit-config.yaml
#	pyproject.toml
#	requirements.txt
#	uv.lock
2026-04-08 21:04:56 +08:00
Wu Clan 283d762141 Refactor plugin dependency cache and check (#1140) 2026-04-02 17:00:20 +08:00
Wu Clan c96181bd08 Update plugin config and dependency cache (#1130)
* Update plugin config and dependency cache

* Fix deps check
2026-03-27 23:50:58 +08:00
Wu Clan a97dab1716 Update plugins and monitoring permissions (#1126) 2026-03-24 15:59:22 +08:00
Wu Clan 94f643c587 Fix the logic related to the status field (#1125) 2026-03-24 11:43:09 +08:00
Wu Clan 4a08938de7 Merge branch 'master' into pre-tenant
# Conflicts:
#	uv.lock
2026-03-23 16:48:15 +08:00
Wu Clan 568e3ca66b Fix plugin status change cache missing (#1118) 2026-03-21 23:34:40 +08:00
Wu Clan a9acc31a78 Fix online api user id acquisition (#1116) 2026-03-19 12:12:20 +08:00
Wu Clan 15bea9e149 Merge branch 'master' into pre-tenant
# Conflicts:
#	backend/app/admin/crud/crud_user.py
#	backend/app/admin/service/auth_service.py
#	backend/cli.py
#	backend/common/dataclasses.py
#	backend/common/security/jwt.py
#	backend/common/security/rbac.py
#	backend/middleware/access_middleware.py
#	backend/plugin/core.py
#	backend/utils/dynamic_config.py
#	backend/utils/dynamic_import.py
2026-03-19 11:58:45 +08:00
Wu Clan 2866fc45b1 Fix typos in code and comments (#1115) 2026-03-19 11:50:43 +08:00
Wu Clan dcb68698e5 Fix user menu permission code update (#1114) 2026-03-19 11:50:20 +08:00
Wu Clan 23975442d8 Update plugin dynamic import check (#1112)
* Update plugin dynamic import check

* Update cli dynamic import
2026-03-19 11:49:33 +08:00
Wu Clan 577a13b271 Update refresh token geo-checksum response (#1111) 2026-03-19 11:48:42 +08:00
Wu Clan 0dd79ee3be Optimize permission logic 2026-03-15 17:42:04 +08:00
Wu Clan e5b8a5242d Fix known issues and improvements 2026-03-15 01:34:05 +08:00
Wu Clan 22f1a243a0 Update tenant id in ctx 2026-03-14 18:35:42 +08:00
Wu Clan feb2bcbe82 Fix token for tenant id 2026-03-13 18:46:45 +08:00
Wu Clan c256f5c4ff Fix errors when the tenant is close 2026-03-12 23:34:44 +08:00
Wu Clan 80146224ab Fix and improve tenant-related impls 2026-03-12 23:12:30 +08:00
Wu Clan ed1a164f55 Update tenant check 2026-03-08 20:59:58 +08:00
Wu Clan f5285a4947 FIx lint and merge master 2026-03-08 19:14:45 +08:00
Wu Clan 83c3a71378 Update some __table_args__ 2026-03-08 19:09:41 +08:00
Wu Clan f0856f0c6f Add tenant mode related adaptations 2026-03-08 18:39:34 +08:00
Wu Clan 6432a66732 Add remove plugin and formatting code CLI (#1088) 2026-02-25 21:22:49 +08:00
Wu Clan db8fff0431 Fix query sorting based on model sort column (#1083) 2026-02-25 11:21:08 +08:00
Wu Clan 9e817db278 Add data permission rule value template variable (#1081)
* Add data permission rule value template variable

* Improved models and columns
2026-02-23 18:12:02 +08:00
Wu Clan 966779bcd7 Refactor the interface rate limiter implementation (#1072)
* Refactor the interface rate limiter implementation

* Update deps
2026-02-11 17:27:46 +08:00
MicLon b6875a3c37 Fix captcha and user validation order logic error (#1065) 2026-02-06 14:08:07 +08:00
SoulEater 220de51aad Fix relational insertion error for empty lists (#1056) 2026-02-03 21:29:53 +08:00
Wu Clan 6f1c27786d Add multi level caching and optimize caching (#1054)
* Add multi level caching and optimize caching

* optimize current caching

* improved decorators

* improved local

* add pub/sub

* fix serialize

* Improve pub and sub

* Add comment

* Fix lru_cache maxsize

* Fix lint

* Fix config warmup
2026-02-02 17:18:49 +08:00
Wu Clan 093788acea Update redis and server health monitor data (#1051)
* Update redis and server health monitor data

* Update uptime
2026-01-30 16:45:22 +08:00
Wu Clan a6da0bfd41 Refactor code generation and plugin hot reloading (#1032)
* Refactor code generation and plugin hot reloading

* Improve implementation

* Update plugin config loader
2026-01-23 17:08:51 +08:00
Wu Clan 383620c899 Update the database and Redis for easier scaling (#1015)
* Update the database and Redis for easier scaling

* Restore plugin redis variable naming
2026-01-15 16:54:43 +08:00
Wu Clan 5c9a27cc16 Update nickname generation when create user (#1004)
* Update nickname generation when create user

* Fix lint

* Update code style
2026-01-12 19:03:02 +08:00
Wu Clan b73585ebd2 Optimize definitions of multiple utility functions (#1001)
* Optimize definitions of multiple utility functions

* Update plugin tools
2026-01-11 16:57:52 +08:00
Wu Clan 28a6228556 Update redis and server monitor implementations (#1000)
* Update redis and server monitor implementations

* Fix server disk information
2026-01-11 13:21:37 +08:00
Wu Clan cbe4e5ebe0 Update login log request header column length (#996) 2026-01-08 12:23:37 +08:00
Wu Clan 7619670521 Fix the key of the refresh token removed (#993) 2026-01-07 12:09:10 +08:00
Wu Clan 3f2c3e44ba Optimize login log database session calls (#977) 2025-12-25 18:12:43 +08:00
Wu Clan b5e2a9e591 Fix case where the user agent was empty (#976) 2025-12-25 12:03:57 +08:00