Meng Zhang
f3a31082ef
refactor(webserver): extract RegisterError and TokenAuthError and add unit test ( #936 )
...
* refactor: extract RegisterError and TokenAuthError
* update
* update test
* fix token auth test
* cleanup
* fix
* add down operations
* cleanup error type
* [autofix.ci] apply automated fixes
* update
* cleanup
* Process InvalidationErrors directly
* update error handling
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-02 04:10:42 +00:00
Meng Zhang
fb879e5ddf
refactor(webserver): cleanup user crud ( #935 )
...
* refactor(webserver): cleanup user crud
* fix
2023-12-01 16:56:15 +00:00
Meng Zhang
19d773e7ad
feat: implement register api check with invitation code ( #934 )
...
* feat(webserver): implement is_admin_initialized graphql api
* refactor
* add unit test
* [autofix.ci] apply automated fixes
* renaming
* temp invitations
* update
* update
* implement register check
* test
* update invitations
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-02 00:14:29 +08:00
Meng Zhang
88e5187b57
feat(webserver): implement is_admin_initialized graphql api ( #929 )
...
* feat(webserver): implement is_admin_initialized graphql api
* refactor
* add unit test
* [autofix.ci] apply automated fixes
* renaming
* refactor: server -> locator
* fix unused
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-01 22:35:02 +08:00
Meng Zhang
5c52a71f77
refactor: extract ServiceLocator interface ( #933 )
...
* refactor: cleanup the dependency chain - ServerContext should be the only thing being public in server mod
* refactor ServiceLocator
* refactor: extract worker.rs
* refactor: move db as private repo of server
* rename server -> service
2023-12-01 22:16:59 +08:00