Commit Graph

45 Commits

Author SHA1 Message Date
forehalo
0add8917f9
feat(server): enable share og information for docs (#7794) 2024-09-10 04:03:52 +00:00
darkskygit
34eac4c24e
feat: improve ai query performance (#8170) 2024-09-09 09:39:28 +00:00
darkskygit
2a135d8a93
feat: add index for snapshots (#8163) 2024-09-08 13:49:41 +00:00
forehalo
63e1fce3ca
perf(server): accelerate user workspace permission queries (#8161) 2024-09-08 12:04:00 +00:00
forehalo
be4df0f8ac
fix(server): created user in update table should not have defualt value (#8134) 2024-09-06 06:42:04 +00:00
forehalo
8b0afd6eeb
refactor(server): auth (#7994) 2024-09-03 09:03:39 +00:00
darkskygit
d93d39e29d
feat: add editor record (#7938)
fix CLOUD-58, CLOUD-61, CLOUD-62, PD-1607, PD-1608
2024-09-02 09:37:39 +00:00
forehalo
e20bdbf925
feat(server): make server storage adapters (#7902) 2024-08-21 05:30:26 +00:00
darkskygit
339c39c1ec
feat: improve prompt management (#7853) 2024-08-14 08:38:36 +00:00
liuyi
171a974904
fix(server): use timestamp with timezone (#7847) 2024-08-13 15:32:24 +08:00
forehalo
4ec89ebd69
chore(server): standardize server db names and columns (#7674) 2024-07-31 07:59:23 +00:00
darkskygit
bf6c9a5955
feat: add prompt level config (#7445) 2024-07-08 08:11:22 +00:00
forehalo
de91027852
feat(server): support lifetime subscription (#7405)
closes CLOUD-48

- [x] lifetime subscription quota
- [ ] tests
2024-07-08 07:41:26 +00:00
darkskygit
61870c04d0
feat: fork session support (#7367) 2024-07-03 03:10:09 +00:00
forehalo
638fc62601
feat(server): runtime setting support (#5602)
---

<details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev">Graphite</a>)</summary>

> ## TL;DR
> This pull request adds a new migration file, a new model, and new modules related to runtime settings. It also introduces a new `Runtime` service that allows getting, setting, and updating runtime configurations.
>
> ## What changed
> - Added a new migration file `migration.sql` that creates a table called `application_settings` with columns `key` and `value`.
> - Added a new model `ApplicationSetting` with properties `key` and `value`.
> - Added a new module `RuntimeSettingModule` that exports the `Runtime` service.
> - Added a new service `Runtime` that provides methods for getting, setting, and updating runtime configurations.
> - Modified the `app.module.ts` file to import the `RuntimeSettingModule`.
> - Modified the `index.ts` file in the `fundamentals` directory to export the `Runtime` service.
> - Added a new file `def.ts` in the `runtime` directory that defines the runtime configurations and provides a default implementation.
> - Added a new file `service.ts` in the `runtime` directory that implements the `Runtime` service.
>
> ## How to test
> 1. Run the migration script to create the `application_settings` table.
> 2. Use the `Runtime` service to get, set, and update runtime configurations.
> 3. Verify that the runtime configurations are stored correctly in the database and can be retrieved and modified using the `Runtime` service.
>
> ## Why make this change
> This change introduces a new feature related to runtime settings. The `Runtime` service allows the application to dynamically manage and modify runtime configurations without requiring a restart. This provides flexibility and allows for easier customization and configuration of the application.
</details>
2024-05-28 06:43:53 +00:00
darkskygit
5ba9e2e9b1
fix: choose provider correctly (#7081)
fix no provider error in caption generate action
2024-05-27 09:57:39 +00:00
darkskygit
937b8bf166
feat: history cleanup (#7007)
fix AFF-1069
2024-05-24 08:00:05 +00:00
darkskygit
13f40f435d
feat: improve query performence (#6764) 2024-05-06 09:12:04 +00:00
darkskygit
9f349a2300
feat: text to image impl (#6437)
fix CLOUD-18
fix CLOUD-28
fix CLOUD-29
2024-04-10 12:13:39 +00:00
darkskygit
7c38a54f81
feat: copilot controller (#6272)
fix CLOUD-27
2024-04-10 11:58:40 +00:00
darkskygit
46a368d7f1
feat: add session impl (#6254) 2024-04-10 11:15:25 +00:00
darkskygit
3c01d944fb
feat: add prompt service (#6241)
fix CLOUD-19
2024-04-02 07:04:54 +00:00
Brooooooklyn
10af0ab48d
feat(server): support ai plan (#6216) 2024-03-22 08:39:18 +00:00
liuyi
573528be41
fix(server): user can not signup through oauth if ever invited (#6101) 2024-03-13 07:50:11 +00:00
liuyi
fb3a0e7b8f
refactor(server): auth (#5895)
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.

## Server

- [x] tokens
  - [x] function
  - [x] encryption

- [x] AuthController
  - [x] /api/auth/sign-in
  - [x] /api/auth/sign-out
  - [x] /api/auth/session
  - [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)

- [x] OAuthPlugin
  - [x] OAuthController
  - [x] /oauth/login
  - [x] /oauth/callback
  - [x] Providers
    - [x] Google
    - [x] GitHub

## Client

- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut

## NOTE:

Tests will be adding in the future
2024-03-12 10:00:09 +00:00
liuyi
2f3c6f104e
fix(server): doc upsert without row lock (#5765) 2024-02-01 09:49:02 +00:00
DarkSky
04ca554525
feat: add workspace feature tests (#5501) 2024-01-05 04:13:47 +00:00
DarkSky
97f8927c21
feat: workspace level feature schema (#5466) 2024-01-05 04:13:44 +00:00
liuyi
0d34805375
refactor(server): use new storage providers (#5433) 2024-01-03 10:56:55 +00:00
LongYinan
2f45200542
feat(server): upgrade prisma to use native relation joins and distinct (#5420)
https://github.com/prisma/prisma/releases/tag/5.7.0
2023-12-28 08:09:11 +00:00
DarkSky
a93c12e122
feat: user usage gql & test case improve (#5076) 2023-12-14 09:50:42 +00:00
DarkSky
ad23ead5e4
feat: integrate user usage into apis (#5075) 2023-12-14 09:50:37 +00:00
DarkSky
77a5552dcd
feat: user usage init (#5074) 2023-12-13 09:21:14 +00:00
liuyi
8cc9a0b21b
feat(server): add soft deleted flag to optimized blob table (#5058)
requires https://github.com/toeverything/OctoBase/pull/561
2023-11-27 07:06:31 +00:00
liuyi
d1476495ae
feat(server): impl doc history (#5004) 2023-11-22 07:56:59 +00:00
liuyi
b7d6237c20
feat(server): add doc history support (#4970) 2023-11-22 03:31:22 +00:00
liuyi
f491ff94cc
refactor(server): separate page visibility from workspace permission (#4836) 2023-11-06 03:49:39 +00:00
LongYinan
581635f40b
Merge pull request #4709 from toeverything/61/doc-perf
perf(server): opmitize updates table
2023-10-30 09:27:19 +00:00
DarkSky
95c1a44a0d
Merge branch 'master' into payment-system 2023-10-30 01:55:51 -05:00
forehalo
98d0ac3c90
feat(server): add data migration system 2023-10-30 11:12:09 +08:00
forehalo
ef1228dcb4
perf(server): opmitize updates table 2023-10-24 17:54:59 +08:00
liuyi
858a1da35f
feat(core): impl billing settings (#4652) 2023-10-24 11:40:46 +08:00
forehalo
df054ac7f6
feat(core): payment backend 2023-10-24 11:40:44 +08:00
LongYinan
352420b881
build: fix native module in aarch64 docker image (#4656) 2023-10-19 08:59:02 +00:00
Joooye_34
bed9310519
refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00