Commit Graph

6 Commits (870638cbbf1a7bf4266977631741fb9c3814feee)

Author SHA1 Message Date
Eric 870638cbbf
feat: Add me_query API (#940)
* feat: add me query

* fix compile

* update schema
2023-12-04 12:20:05 +08:00
Meng Zhang 305b3f913b
refactor: cleanup autofix (#937) 2023-12-02 04:21:37 +00:00
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 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