Commit Graph

560 Commits

Author SHA1 Message Date
khorshuheng 0bcf1457bb fix: filter non space document from workspace's children 2024-12-06 14:32:58 +08:00
Nathan.fooo afcd1130c3
feat: chat settings (#1044)
* feat: chat settings

* chore: fix sqlx
2024-12-05 23:30:11 +08:00
Bartosz Sypytkowski 5e7b5f87fa chore: merge branch main into stateless 2024-12-03 09:10:01 +01:00
Bartosz Sypytkowski 9ff6f1c744
S3 collab cache (#1028)
* chore: collab cache for S3

* chore: adjust disk cache api to accomodate s3

* chore: move postgres dependent ops to disk cache

* chore: replace blob inserts from pg to s3

* chore: delete blob and collab exist now use s3

* chore: fix clippy erorrs

* chore: post rebase fixes

* chore: fix clippy warnings

* chore: fix imports

* chore: make snapshots work over S3

* chore: remove dead code

* chore: use compressed snapshots

* chore: add zstd compression

* chore: introduce collab size threshold to keep smaller collabs in postgres

* chore: remove collabs from S3 if they were put to postgres

* chore: update tests
2024-12-03 13:08:55 +08:00
Zack e31928e77a
Merge pull request #1019 from AppFlowy-IO/feat/get-database-fields
feat: api to get database fields
2024-11-27 19:04:20 -08:00
Nathan.fooo 3e3bf693fd
chore: upload api endpoint for web upload (#1024)
* chore: upload api endpoint for web upload

* chore: use rust 1.78

* fix: test
2024-11-28 09:09:09 +08:00
Zack Fu Zi Xiang 50586b1ea7
fix: filter database that is in trash 2024-11-27 19:53:47 +08:00
Zack Fu Zi Xiang 7457371208
Merge branch 'main' into feat/get-database-fields 2024-11-27 18:18:34 +08:00
Zack Fu Zi Xiang ed83fba242
feat: add type options 2024-11-27 17:24:14 +08:00
Khor Shu Heng a4b598db5b
fix: remove only parent page when move to trash (#1021) 2024-11-27 13:00:58 +08:00
Zack Fu Zi Xiang b4def2278d
chore: merge with main 2024-11-26 21:18:37 +08:00
khorshuheng 484cd595e0 feat: add support for create database pages via API 2024-11-26 15:58:16 +08:00
Zack Fu Zi Xiang 2da78b351f
feat: api to get database fields 2024-11-26 14:20:10 +08:00
Zack Fu Zi Xiang c4d52859fb
feat: add a polling api for getting database row id updates 2024-11-24 23:24:29 +08:00
Zack Fu Zi Xiang 298698ac0e
feat: format selection 2024-11-24 05:58:31 +08:00
Zack Fu Zi Xiang ddecd8457c
feat: use folder view minimal for database list 2024-11-23 19:24:08 +08:00
Zack Fu Zi Xiang a6bd54f447
feat: simplify listing databases 2024-11-23 12:11:27 +08:00
Zack Fu Zi Xiang 6d4200d1e7
feat: add row details 2024-11-23 02:40:26 +08:00
Zack Fu Zi Xiang f3a2444615
feat: list database row ids 2024-11-22 20:21:31 +08:00
Nathan.fooo 0ec12c5f2f
chore: add file size (#1015) 2024-11-22 16:31:50 +08:00
Zack Fu Zi Xiang 687b5d9f6d
Merge branch 'main' into feat/search-database-by-name 2024-11-21 09:17:09 +08:00
Bartosz Sypytkowski d0f9059f3f Merge branch 'main' into stateless 2024-11-20 08:36:28 +01:00
Nathan.fooo 1e18180e9d
chore: set max import zip file size (#1011)
* chore: set max import zip file size

* chore: fix test
2024-11-20 14:07:36 +08:00
Khor Shu Heng afeaeb7796
chore: simplify collab level access control (#1008) 2024-11-20 12:29:16 +08:00
Khor Shu Heng e6dbc95641
feat: api to update space (#1009) 2024-11-20 11:32:29 +08:00
Zack Fu Zi Xiang d7478fb37a
chore: merge with main 2024-11-20 07:51:33 +08:00
Khor Shu Heng 0818cf7565
feat: api for create space (#1006) 2024-11-19 12:54:10 +08:00
Khor Shu Heng 2647d41f3a
feat: allow create page API to accept a view name (#1005) 2024-11-19 11:46:23 +08:00
Khor Shu Heng 51bd650644
chore: fix flaky test for get section items (#1004) 2024-11-18 09:42:57 +08:00
Bartosz Sypytkowski 3799966f12
chore: store pending collab writes in memory (#1000)
* chore: write immediatelly actually writes immediatelly

* chore: fix clippy errors

* chore: add metrics to new storage queue impl

* chore: set collab batch write capacity to the same as on main branch
2024-11-17 13:25:42 +08:00
Nathan.fooo d798c81ba4
chore: support split by text len (#1002)
* chore: support split by text len

* chore: update docs

* chore: update tests
2024-11-17 12:45:20 +08:00
Zack 7c6a706bbd
Merge pull request #998 from AppFlowy-IO/feat/allow-underscore-in-url
feat: allow underscore in publish url
2024-11-16 15:59:15 +08:00
Nathan.fooo 655f13bc27
chore: search and chat (#999)
* chore: add test for search and chat

* chore: update test

* chore: update test

* chore: update ci

* chore: fix security audio

* chore: multiple core docker build

* chore: multiple core docker build

* chore: update ci

* chore: update model setting

* chore: test ci

* chore: use tiktoken to calcualte token length

* chore: remove env

* chore: use spawn_blocking with condition

* chore: docs

* chore: clippy

* chore: clippy

* chore: docker logs

* chore: pass message id

* chore: clippy
2024-11-16 14:52:12 +08:00
Bartosz Sypytkowski 401cc3ad25 Merge branch 'main' into stateless 2024-11-16 07:22:34 +01:00
Zack Fu Zi Xiang 4703b90751
fix: modify test case for underscore 2024-11-15 16:37:02 +08:00
Nathan.fooo e9c374bfe2
chore: remove wasm client api (#989)
* chore: revamp client api

* chore: fmt
2024-11-14 00:53:30 +08:00
Zack 7f73453667
Merge pull request #988 from AppFlowy-IO/fix/patch-publish-name
fix: patch publish name
2024-11-13 19:03:06 +08:00
Zack Fu Zi Xiang f3cfd87cb8
fix: patch publish name 2024-11-13 17:21:49 +08:00
Nathan.fooo 50d519c4ea
fix: upload file zip file expire (#987) 2024-11-13 14:57:27 +08:00
Zack Fu Zi Xiang 787e6beb0d
feat: add name filtering 2024-11-12 23:48:41 +08:00
Zack 85452ddfab
feat: add role for user when querying workspaces (#983) 2024-11-12 21:12:58 +08:00
Zack 288fd59d3b
Merge pull request #975 from AppFlowy-IO/feat/last-publish-name
feat: support last publish name
2024-11-12 08:42:00 +08:00
Nathan.fooo 14adf250a8
chore: update ai api endpoint & rename structs (#953)
* chore: revmap loader type

* chore: revamp context

* chore: fix test

* chore: remove unused handler

* chore: create new chat api endpoint

* chore: add docs

* chore: clippy

* chore: fix test
2024-11-11 20:10:46 +08:00
Zack Fu Zi Xiang 5d040a6e7f
chore: add 2 more assert for publish view comments 2024-11-11 15:14:22 +08:00
Zack Fu Zi Xiang b89490777c
fix: debug ci tests 2024-11-11 09:51:56 +08:00
Zack Fu Zi Xiang b62552f382
fix: fetch published collab sql 2024-11-11 00:24:30 +08:00
Zack Fu Zi Xiang c705d500ce
Merge branch 'main' into feat/last-publish-name 2024-11-10 04:42:21 +08:00
Zack 3e3e78b684
Merge pull request #842 from AppFlowy-IO/feat/list-database
feat: add database listings
2024-11-08 17:36:25 +08:00
Zack Fu Zi Xiang a07b453c0b
feat: support last publish name 2024-11-08 17:29:02 +08:00
khorshuheng f3604edf2e feat: api for restore all pages from trash 2024-11-08 13:52:23 +08:00
khorshuheng d04a0d8871 feat: api for restore page from trash 2024-11-08 10:58:32 +08:00
Zack Fu Zi Xiang fa771815c9
chore: fix test case 2024-11-07 20:19:45 +08:00
Bartosz Sypytkowski b9ca480143 chore: add retry limit to which collab snapshot can be made 2024-11-07 13:12:17 +01:00
Bartosz Sypytkowski bc49d73b40 chore: split redis stream readers to active and one shot 2024-11-07 11:43:19 +01:00
khorshuheng c8dab0fb2c Merge branch 'main' into stateless 2024-11-07 15:55:26 +08:00
Zack Fu Zi Xiang 2e2ec23430
chore: merge with main 2024-11-07 14:59:51 +08:00
khorshuheng eb67e9617c feat: api for updating page 2024-11-07 10:35:21 +08:00
khorshuheng 7f53343c4b Merge branch 'main' into stateless 2024-11-07 09:24:40 +08:00
Bartosz Sypytkowski f3cd597832 chore: fix clippy errors 2024-11-06 10:57:32 +01:00
khorshuheng 3b37112fc5 feat: api for moving page to trash 2024-11-05 21:46:57 +08:00
Bartosz Sypytkowski cc149472de chore: modify stress tests for continuous integration environment 2024-11-05 07:48:14 +01:00
Bartosz Sypytkowski 99203cc7f3 chore: fix flaky tests 2024-11-05 07:48:14 +01:00
Bartosz Sypytkowski 3ad2c3dacb chore: clippy warnings 2024-11-05 07:48:14 +01:00
Bartosz Sypytkowski 832e140f61 chore: collab stress test - make number of edits configurable 2024-11-05 07:48:14 +01:00
Bartosz Sypytkowski 7dc90904cb chore: fix clippy warnings 2024-11-05 07:47:17 +01:00
Bartosz Sypytkowski f684d3623d chore: fixed collab ack 2024-11-05 07:47:17 +01:00
Bartosz Sypytkowski fc1a7d28e2 chore: better stress test scenario 2024-11-05 07:47:17 +01:00
Bartosz Sypytkowski a2d3d7feb5 chore: add perf tests 2024-11-05 07:47:17 +01:00
Khor Shu Heng 10fb3dc258
Merge pull request #962 from AppFlowy-IO/web-create-collab
feat: api for space and default collab creation
2024-11-05 12:03:40 +08:00
khorshuheng ba95d94c96 feat: api for space and default collab creation 2024-11-05 10:33:48 +08:00
Zack Fu Zi Xiang 8d8c895703
feat: support for original and modified namespace 2024-11-04 16:58:33 +08:00
Zack Fu Zi Xiang d6d7e7312e
fix: namespace already taken 2024-11-03 15:08:38 +08:00
Nathan.fooo 7c42cee11a
chore: Upgrade the collab library to fix the issue with importing Notion zip files that contain embedded zip attachments. (#955)
* chore: bump collab that fixs import notion zip file contains zip attachment

* chore: fix compile
2024-11-01 22:26:27 +08:00
Nathan.fooo a3a581ea4e
chore: fix import test (#941)
* chore: fix import test

* chore: enable test

* chore: fix build

* chore: update test
2024-10-31 15:18:30 +08:00
Nathan.fooo 860a921ea5
chore: remove inline view id (#945)
* chore: remove inline view id

* test: fix test compile

* chore: logs

* chore: update test
2024-10-30 12:47:15 +08:00
Zack Fu Zi Xiang 855cc58ad8
fix: add invalid character error for publish namespace 2024-10-29 15:49:39 +08:00
Zack Fu Zi Xiang a6af0300ee
feat: add specific error code for invalid publish names 2024-10-29 09:48:24 +08:00
Zack Fu Zi Xiang fdc889f73e
feat: handle duplicated publish names for a workspace 2024-10-28 17:58:14 +08:00
Zack 348a73685e
Merge pull request #940 from AppFlowy-IO/feat/custom-namespace-v2
feat: delete default view for workspace
2024-10-28 15:46:13 +08:00
Zack Fu Zi Xiang f701abd2a7
feat: delete default view for workspace 2024-10-28 13:32:41 +08:00
Khor Shu Heng 648c977c07
Merge pull request #927 from AppFlowy-IO/remove-access-control-middleware
chore: remove access control middleware
2024-10-28 12:16:38 +08:00
Zack Fu Zi Xiang 0fe7d8def7
chore: merge with main 2024-10-28 09:46:31 +08:00
Nathan.fooo 9629d4cefa
chore: add limit for importing zip file (#938)
* chore: add limitation for import zip file

* chore: support upload big file

* chore: implement client api

* chore: implement client api

* chore: implement client api

* chore: update logs

* chore: check file size

* chore: last process at

* chore: set content type

* chore: fix test

* chore: try test

* chore: temporary disable test
2024-10-28 08:51:34 +08:00
Zack Fu Zi Xiang e29d5d058d
Merge branch 'main' into feat/custom-namespace-change-publish-name 2024-10-27 13:31:45 +08:00
khorshuheng 3c0258b42a feat: add publish info to template home page 2024-10-25 17:30:56 +08:00
Zack Fu Zi Xiang f13916a49a
Merge branch 'main' into feat/custom-namespace-change-publish-name 2024-10-25 14:47:02 +08:00
Zack 42bf807a8e
fix: wait for a second after duplication to workspace (#930)
* fix: wait for a second after duplication to workspace

* chore: rust lint
2024-10-25 13:22:33 +08:00
khorshuheng a0c68d8c86 chore: remove access control middleware 2024-10-25 13:19:16 +08:00
Zack Fu Zi Xiang 5c7a12cc95
test: fix test case 2024-10-25 12:48:22 +08:00
Zack Fu Zi Xiang b775aa9d4c
feat: patching of publish name 2024-10-24 22:06:52 +08:00
Nathan.fooo f74757e41a
chore: remove deprecate chat api endpoint and update tests (#922)
* chore: remove deprecate chat api endpoint and update tests

* chore: fix test

* chore: clippy
2024-10-24 16:46:41 +08:00
khorshuheng 3169277830 feat: add section timestamp to get favorite/recent/trash endpoints 2024-10-24 12:22:21 +08:00
khorshuheng 23e1da2910 feat: add publish info to list templates 2024-10-23 17:26:32 +08:00
khorshuheng ee9e335152 feat: add publish info to template 2024-10-22 17:29:20 +08:00
Nathan.fooo 2f715c3136
feat: custom completion prompt (#906)
* feat: custom completion prompt

* chore: custom prompt
2024-10-20 14:27:41 +08:00
Zack 60c589bd9c
feat: CRUD interface for custom namespace (#882)
* feat: listing all published_info

* fix: add sqlx files

* feat: add additional fields for publish info

* feat: get and set default publish info

* chore: cargo sqlx prepare

* fix: cargo clippy

* fix: test case exe order

* chore: cargo sqlx

* feat: get info and meta from workspace namespace

* chore: cargo sqlx

* feat: add original doc info for published view

* chore: log all publish endpoints

* fix: default values for publish info extra fields

* feat: move namespace restriction to gateway
2024-10-19 10:09:54 +08:00
Nathan.fooo 9942e68089
chore: imported workspace should not become the latest visting workspace (#890)
* chore: imported workspace should not become the latest visting workspace

* chore: sqlx files

* chore: update test

* chore: fmt
2024-10-16 21:02:05 +08:00
Khor Shu Heng ec124bcb46
Merge pull request #885 from AppFlowy-IO/additional-ac-config
feat: additional access control config
2024-10-16 17:00:54 +08:00
khorshuheng 34a7fd3633 feat: additional access control config 2024-10-16 15:10:01 +08:00
Khor Shu Heng 2a15c8e4b5
feat: support appflowy web editing for document (#877) 2024-10-15 15:05:45 +08:00