Meng Zhang
15c4d97437
support authentication
2023-12-08 19:30:54 +08:00
Meng Zhang
2b8a07baa0
implement auth in swagger
2023-12-08 15:10:57 +08:00
Meng Zhang
d2d158c747
implement verify auth token
2023-12-08 14:08:02 +08:00
Meng Zhang
086692145c
implement reset_auth_token
2023-12-08 13:59:11 +08:00
Meng Zhang
0a6a68db57
feat: add auth_token to user table
2023-12-08 13:51:52 +08:00
Meng Zhang
2714b88878
refactor(webserver): split db.rs into sub implementations for each table ( #985 )
2023-12-08 05:25:24 +00:00
Meng Zhang
5cbb2b3a4c
fix: correct tabby-webserver validation logic ( #953 )
2023-12-06 14:38:04 +00:00
Meng Zhang
74f81cb02a
refactor: Use DateTime<Utc> for sqlite datetime fields ( #946 )
...
* refactor: use DateTime<Utc> for RefreshToken.expires_at
* refactor: set other date time fields to be DateTime<Utc>
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-05 15:47:10 +00:00
Eric
73442c33a7
feat: implement refresh_token API ( #938 )
...
* feat: impl refresh token api
* resolve comment
2023-12-04 13:26:24 +08:00
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
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
Meng Zhang
1a9cbdcc3c
feat(ee): implement auth claims ( #932 )
...
* feat(ee): implement auth claims
* fix test
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-01 12:46:01 +00:00
Eric
79e704458d
feat(ee): implement user authentication api ( #912 )
...
* feat: impl user authentication
* resolve comments
* fix validation code name
* resolve comment
2023-12-01 10:22:53 +08:00
Meng Zhang
0857a10f31
fix: make runner card width equal in large screen ( #883 )
...
* fix: make runner card width equal in large screen
* chore: update build
2023-11-24 02:52:56 +00:00
Eric
e78cc1f844
feat: add api to serve files under repositories ( #851 )
...
* feat: add api to serve files under repositories
* resolve comments
* resolve comments
* Update repositories.rs
* Update lib.rs
* resolve comment
---------
Co-authored-by: Meng Zhang <meng@tabbyml.com>
2023-11-24 01:58:56 +00:00
Meng Zhang
3bd3a3304d
feat: implement worker unregistration ( #872 )
...
* feat: implement worker unregisteration logic
* refactor: rename HubError -> RegisterWorkerError
2023-11-23 06:22:04 +00:00
Meng Zhang
063678bfa6
feat: update tabby-ui
2023-11-23 09:31:39 +08:00
Meng Zhang
bb534fae27
fix(webserver): make GET /graphql route an api route (so it's valid through cors) ( #858 )
2023-11-21 23:08:27 +00:00
Dheeraj R Reddy
99d49a9c43
fix: Remove redundunt clone() ( #849 )
...
Found after running: `make fix`
Co-authored-by: dheeraj.reddy <dheeraj.reddy@thoughtspot.com>
2023-11-20 13:26:57 -08:00
Meng Zhang
d8e83d0610
refactor: extract run_app function ( #843 )
...
* refactor: extract run_app function
* lint
* change route to /metrics
* refactor
2023-11-20 01:00:35 +00:00
Meng Zhang
a12f741565
feat: use remote code search in workers ( #833 )
...
* refactor: lift tabby::api::code to tabby_common::api::code
* feat: use remote code search in workers
* update
* handle errors
2023-11-18 23:45:00 +00:00
Meng Zhang
b862d9d100
feat: support worker events logging ( #831 )
...
* refactor: lift tabby::api::event to tabby_common::api::event
* feat: allow worker write logs to webserver::api::Hub service
* refactor: implement RawEventLogger on HubClient directly
* fix: build context in request's scope
2023-11-18 23:17:54 +00:00
Eric
8dd245ef30
feat: update graphql query to read token ( #829 )
2023-11-18 10:03:33 -08:00
Eric
fcfa13136a
fix: move db path, fix compile error ( #820 )
2023-11-17 18:08:07 -08:00
Meng Zhang
25621547a7
feat: make --model optional, so user can start a chat only instance ( #817 )
2023-11-17 22:35:58 +00:00
Eric
ce338c7436
feat: validate token during worker registration ( #803 )
...
* feat: validate token during worker registration
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* resolve comments
* reslove comments
* format file, update schema file
* resolve comment
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-16 23:05:39 -08:00
Meng Zhang
6236566a21
feat: update tabby ui ( #783 )
2023-11-14 21:05:36 +00:00
Meng Zhang
618009373b
refactor: use tarpc for easier worker <-> hub communication ( #781 )
...
* temp
* generic
* adapt client
* rename to api
* Revert "rename to api"
This reverts commit 8a51b24fecd76a78e6df576ec51605b8d8418975.
* refactor: remove uselss mutation
* remove useless connection
* cleanup api structure
* restructure
* add webserver api error
* webserver.rs -> server.rs
* rename service to Hub
* update schema
* update naming
* shrink features
* update
* mv worker.rs -> server/worker.rs
2023-11-14 12:48:20 -08:00
Meng Zhang
e521f0637c
feat: add worker command worker::completion and worker::chat ( #778 )
2023-11-13 23:21:57 +00:00
Meng Zhang
3a9b4d9ef5
feat: add graphql interface to tabby-webserver ( #770 )
...
feat: add graphql interface to tabby-webserver
2023-11-12 14:52:28 -08:00
Meng Zhang
15f768a971
feat: add tabby-webserver as distribution layer of tabby #769
2023-11-12 13:07:07 -08:00