Commit Graph

624 Commits

Author SHA1 Message Date
Zack Fu Zi Xiang 9ee04b8958
chore: publish metadata wrapper 2024-10-21 12:48:02 +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 ffee47d0f7
chore: remove workspace and collab listener (#893) 2024-10-17 17:43:00 +08:00
Nathan.fooo 3623d9f296
chore: check file md5 before import (#895) 2024-10-17 17:18:07 +08:00
Khor Shu Heng 7d6d1fd151
chore: add access control to appflowy web related endpoint (#896) 2024-10-17 17:03:12 +08:00
Nathan.fooo d3e4a6870d
chore: template (#889)
* chore: template

* fix: auto del file lifetime

* chore: delete file if fail to write to disk

* fix: modified html

* chore: set content type

* chore: md5 content

* chore: clippy

* fix: image loaded failed

* fix: build

* chore: bump collab

---------

Co-authored-by: Kilu <lu@appflowy.io>
2024-10-16 17:39:24 +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 383629ab1c chore: simplify not enough permission error 2024-10-16 15:10:31 +08:00
khorshuheng 34a7fd3633 feat: additional access control config 2024-10-16 15:10:01 +08:00
Nathan.fooo 3c02fa253f
chore: retry import (#887)
* chore: retry import

* chore: delete temp files

* chore: bump collab
2024-10-16 12:55:53 +08:00
Khor Shu Heng 2a15c8e4b5
feat: support appflowy web editing for document (#877) 2024-10-15 15:05:45 +08:00
Zack Fu Zi Xiang cce8616117
fix: admin initialization 2024-10-14 12:05:51 +08:00
Nathan.fooo 95e8b30f11
chore: bump collab that use yrs 0.21.2 (#872)
* chore: bump collab that use yrs 0.21.2

* chore: fmt
2024-10-14 00:58:32 +08:00
Nathan.fooo bbd21dfef6
chore: import mailer (#869)
* chore: import mailer

* chore: update template

* chore: config template

* fix: add missing config parameter

* chore: update template

* chore: show error with task id

* chore: show error with task id

---------

Co-authored-by: khorshuheng <solemnpriest@gmail.com>
2024-10-13 20:08:55 +08:00
Khor Shu Heng ec2cc309bd
fix: filter private views based on parent space (#860) 2024-10-12 09:27:50 +08:00
Khor Shu Heng 2f47d07593
Merge pull request #870 from AppFlowy-IO/private-view-in-trash
fix: filter out private view in trash for folder struct
2024-10-11 09:54:39 +08:00
Khor Shu Heng 8c14612f98
feat: refactor access control to enable swapping implementation (#859) 2024-10-10 13:04:47 +08:00
khorshuheng 3d45118da4 fix: filter out private view in trash for folder struct 2024-10-10 10:52:34 +08:00
Nathan.fooo 98347b81ea
fix: import notion zip file as workspace (#868)
* chore: insert content length in header

* chore: custom header

* chore: workspace name

* chore: file name

* chore: handle file name that is not utf8 encode

* chore: clippy

* fix: end of file when unzip file

* chore: docs
2024-10-09 21:27:24 +08:00
Zack Fu Zi Xiang 7e62e96d3b
feat: add method for tracking request metrics 2024-10-08 18:59:45 +08:00
Nathan.fooo 33e63fae5c
chore: try to fix pg lock timeout (#864)
* chore: try to fix pg lock timeout

* chore: add logs for insert collab

* chore: add timeout for duplicate

* chore: timeout for pending write
2024-10-07 16:49:50 +08:00
Nathan.fooo 38ff1874e4
chore: using copy to improve write speed of batch collab api endpoint (#862)
* chore: using copy to improve write speed of batch collab api endpoint

* chore: insert to redis

* chore: fix compile
2024-10-07 08:58:19 +08:00
Nathan.fooo 9c0dffacef
feat: implement import notion zip file api endpoint (#840)
* chore: implement api endpoint

* chore: worker

* chore: async zip

* chore: test bulk insert

* chore: insert collab

* chore: custom task

* chore: consume un acked message

* chore: fix compile

* chore: add test

* test: update

* chore: save import record

* chore: save import record

* chore: fix ci

* chore: remove unused deps

* chore: update docker file

* chore: build worker images

* chore: use small int

* chore: use small int

* chore: rm protoc deps in runtime

* chore: move collab cache to database crate

* chore: update test

* chore: rm health api endpoint

* chore: clippy

* chore: update ci

* chore: add test

* chore: upgrade collab

* chore: clippy

* chore: update test

* chore: use custom host

* chore: config nginx

* chore: install cert
2024-10-03 22:22:29 +08:00
khorshuheng 5b799208a8 chore: remove publish collab related dead code 2024-10-03 11:05:28 +08:00
Khor Shu Heng 11732324b5
feat: support fetching encoded collab in batch from memory (#837) 2024-10-02 10:22:40 +08:00
Khor Shu Heng 03fdcf4621
feat: option to skip s3 bucket creation (#852) 2024-10-02 09:54:46 +08:00
Khor Shu Heng f19e9b0498
fix: allowed workspace owner only to view access request (#855) 2024-10-02 09:53:34 +08:00
Khor Shu Heng 1664fe869e
feat: send notification when access request is approved (#854) 2024-10-02 09:52:51 +08:00
khorshuheng 81c9042439 feat: send email to workspace owner when user request access 2024-10-01 11:54:55 +08:00
Khor Shu Heng 47a1aae75c
feat: Endpoint for server info (#835)
* feat: provide endpoint so that client can detect server information

* feat: add server info endpoint
2024-09-29 11:01:22 +08:00
khorshuheng 6c6de08eaa fix: access not granted after approval 2024-09-26 18:19:33 +08:00
khorshuheng 813fa29253 feat: add endpoints to allow workspace owner to approve web page view request 2024-09-26 14:59:33 +08:00
Zack Fu Zi Xiang 6777ed8f5d
feat: add database listings 2024-09-25 14:46:26 +08:00
khorshuheng 89ae8e9f64 fix: update page view collab endpoint to follow naming convention 2024-09-19 13:00:07 +08:00
Khor Shu Heng 0b193e1606
feat: add endpoint for getting page view collab (#831) 2024-09-18 12:56:34 +08:00
Zack Fu Zi Xiang 204858f514
fix: cargo clippy 2024-09-17 22:55:10 +08:00
Zack Fu Zi Xiang 143557e29c
fix: tests 2024-09-17 22:47:14 +08:00
Zack Fu Zi Xiang 09892c9897
fix: use correct view id 2024-09-17 13:15:16 +08:00
Zack Fu Zi Xiang 0c1cdbed7a
fix: self referencing database 2024-09-17 10:18:47 +08:00
Zack Fu Zi Xiang a3dec64b86
chore: fix compile and lint 2024-09-16 18:22:42 +08:00
Zack Fu Zi Xiang f256178bf7
chore: use gen row id 2024-09-16 17:47:48 +08:00
Zack Fu Zi Xiang 9aec9ed7b3
fix: skip if error instead of throw 2024-09-16 17:44:59 +08:00
nathan fa54f79d8b chore: use collab to bin 2024-09-16 16:45:47 +08:00
Zack Fu Zi Xiang 4345f8b2a5
chore: merge with main 2024-09-16 10:55:14 +08:00
Zack Fu Zi Xiang 35786fb2d5
Merge branch 'main' into feat/workspace-invite-fields 2024-09-15 13:59:25 +08:00
Nathan.fooo 4c54481d70
chore: bump collab version (#822)
* chore: bump collab version

* chore: update deps count
2024-09-14 23:59:50 +08:00
Zack Fu Zi Xiang 3de0a728e8
fix: error handling on mailer 2024-09-14 13:31:49 +08:00
Zack Fu Zi Xiang 4b59574392
chore: add specific error code for wrong invitee 2024-09-13 21:02:09 +08:00
Zack Fu Zi Xiang d508aac03c
fix: new user and invite id url 2024-09-13 19:23:30 +08:00
Zack Fu Zi Xiang 87ef341724
Merge branch 'main' into feat/dup-refactor 2024-09-13 14:51:40 +08:00
Zack Fu Zi Xiang df66cfc6f4
chore: update dep 2024-09-13 14:51:15 +08:00
Zack Fu Zi Xiang 53c98c8bd6
chore: use gen env var optional 2024-09-13 11:25:57 +08:00
Zack Fu Zi Xiang eb818a4282
chore: cargo clippy 2024-09-13 10:16:15 +08:00
Zack Fu Zi Xiang adb9acf799
Merge branch 'main' into feat/workspace-invite-get 2024-09-13 09:25:07 +08:00
Zack Fu Zi Xiang 8dc606e68e
Merge branch 'main' into feat/dup-refactor 2024-09-12 21:18:22 +08:00
Zack Fu Zi Xiang f241c4a84f
chore: update dep and fix database row open 2024-09-12 21:14:24 +08:00
Zack Fu Zi Xiang 0b5ad2162b
chore: use has document api from collab 2024-09-12 17:23:30 +08:00
Zack Fu Zi Xiang ab715aff7a
chore: add appflowy web url config 2024-09-12 16:55:34 +08:00
Zack Fu Zi Xiang f25066f51f
feat: add get invitation by id 2024-09-12 15:10:48 +08:00
khorshuheng c686aa91a6 feat: add retrieve sections endpoints 2024-09-12 13:02:14 +08:00
Zack Fu Zi Xiang dca438b794
chore: update dep 2024-09-12 12:17:20 +08:00
Zack Fu Zi Xiang 3be80aac20
chore: update database collab 2024-09-12 12:05:20 +08:00
Zack Fu Zi Xiang 922418b122
chore: merge with main 2024-09-12 10:09:42 +08:00
Zack Fu Zi Xiang 306faad11e
feat: use database row body 2024-09-12 01:13:07 +08:00
Khor Shu Heng 57a30817fe
Merge pull request #811 from AppFlowy-IO/add-is-published-to-folder-struct
feat: add additional fields to FolderView and support different root id
2024-09-11 23:23:37 +08:00
Khor Shu Heng abae8d2d1b
feat: Support s3 as published collab storage (#798)
* chore: remove unused published collab methods

* feat: support s3 as published collab storage
2024-09-11 20:52:33 +08:00
khorshuheng a97c1fbf1b feat: add additional folder view fields, allow different root id, filter invalid view 2024-09-11 17:37:55 +08:00
Nathan.fooo 7cd88b7502
fix: batch create collab api endpoint might cause tokio runtime issue (#810)
* fix: batch create collab api endpoint might cause tokio runtime issue

* chore: remove test

* chore: clippy
2024-09-11 11:32:42 +08:00
Zack 5bf08621de
feat: dup doc in db row (#806)
* feat: support doc in duplicated database row

* fix: use db row collab

* fix: use meta

* fix: set correct values

* feat: allow insertion of standalone view

* fix: use correct id for duplicating doc in db row

* feat: add attachment count

* fix: compile
2024-09-11 10:16:56 +08:00
Zack Fu Zi Xiang 39cb16693a
fix: compile 2024-09-10 23:42:35 +08:00
Zack Fu Zi Xiang 8766344073
feat: add attachment count 2024-09-10 23:27:19 +08:00
Zack Fu Zi Xiang 1cf858aab7
chore: merge with upstream 2024-09-10 19:41:14 +08:00
Zack Fu Zi Xiang bf9aed5384
Merge branch 'main' into feat/dup-doc-in-db-row 2024-09-10 19:37:49 +08:00
Zack Fu Zi Xiang 9337b4aa90
chore: use database body for getting database id 2024-09-10 19:28:21 +08:00
Zack Fu Zi Xiang 936d492c4e
chore: use dbbody to replace iid 2024-09-10 19:05:14 +08:00
Zack Fu Zi Xiang 7ea6450207
chore: refactor to use database body 2024-09-10 18:53:25 +08:00
Zack Fu Zi Xiang 3c90395d46
Merge branch 'main' into feat/duplicate-relation 2024-09-10 14:42:57 +08:00
Zack Fu Zi Xiang e22f316327
feat: partially use database body 2024-09-10 12:48:55 +08:00
Nathan.fooo e742a9039a
chore: bump collab version (#807) 2024-09-10 11:18:20 +08:00
Zack Fu Zi Xiang 0dbd8fd633
chore: merge with main 2024-09-09 19:27:45 +08:00
Zack Fu Zi Xiang 28a2d269e9
chore: merge with main 2024-09-09 19:25:24 +08:00
Zack Fu Zi Xiang 3e9e865bfc
fix: use correct id for duplicating doc in db row 2024-09-09 19:22:36 +08:00
Nathan.fooo 3f59c650f4
chore: bump appflowy collab (#805)
* chore: bump appflowy collab

* chore: fix test

* chore: bump collab
2024-09-09 18:50:47 +08:00
Zack Fu Zi Xiang 572e18e88a
feat: allow insertion of standalone view 2024-09-09 18:10:12 +08:00
Zack Fu Zi Xiang 9281fbdf54
chore: add some doc about database relation 2024-09-09 17:02:13 +08:00
Zack Fu Zi Xiang 99677acd4d
fix: set correct values 2024-09-09 16:37:09 +08:00
Zack Fu Zi Xiang 41136e3a3e
Merge branch 'main' into feat/duplicate-relation 2024-09-09 16:07:42 +08:00
Zack Fu Zi Xiang 39297e23e4
fix: use meta 2024-09-09 15:58:25 +08:00
Zack Fu Zi Xiang 12d6455031
fix: use db row collab 2024-09-09 15:34:45 +08:00
Zack Fu Zi Xiang c9479985c2
Merge branch 'main' into feat/dup-doc-in-db-row 2024-09-09 12:48:23 +08:00
Zack Fu Zi Xiang d99687e080
feat: support doc in duplicated database row 2024-09-09 12:48:04 +08:00
khorshuheng df14ecbfbd fix: hide space without any published documents, allow private published
collab
2024-09-06 16:39:34 +08:00
Zack Fu Zi Xiang 088d8763da
chore: add related db directly to dest view instead 2024-09-06 13:18:41 +08:00
Zack Fu Zi Xiang 720731b9e4
fix: database inline view id 2024-09-06 12:02:57 +08:00
Zack Fu Zi Xiang 407b056e66
fix: update iid 2024-09-06 07:28:15 +08:00
Zack Fu Zi Xiang f7b7686573
Merge branch 'main' into feat/duplicate-relation 2024-09-05 15:17:34 +08:00
khorshuheng 50f24a174f fix: filter out children which the view's parent does not match the actual parent view id 2024-09-05 14:35:55 +08:00
Zack Fu Zi Xiang 42b98aeb77
chore: cargo clippy 2024-09-05 14:27:03 +08:00
Zack Fu Zi Xiang 16bebc7d2d
feat: replace related row id with duplicated row id 2024-09-05 14:20:14 +08:00