Commit graph

1584 commits

Author SHA1 Message Date
Zack
826546c5cb
feat: duplicate published doc (#700)
* chore: test collab sync

* feat: folder view for user workspace

* feat: add private indicator

* chore: use collab cache instead

* chore: initial impl

* chore: cargo sqlx

* fix: write back to collab cache

* fix: assign page id

* fix: text map

* chore: connect api and refactor

* chore: switch to using mem storage

* fix: collab type

* feat: use group manager to manage sync

* feat: try add send command instead

* chore: add client api code

* feat: try use sink and stream from group collab

* chore: disable sync first

* fix: insert page before stopping group

* feat: add extra for view

* feat: add metadata to doc

* fix: icon

* fix: page circular dep

* fix: page circular dep

* fix: live update

* feat: database initial impl

* feat: workspace database

* chore: link database

* fix: database validation

* fix: workspace database oid

* fix: workspace database oid

* fix: specify view layout

* feat: add txn when inserting collab and rework database views

* fix: parent view id for new database

* fix: database view for folder

* fix: database ids

* fix: database row id

* fix: main database layout and write database before folder

* fix: metadata for non database main view

* chore: database in doc wip

* chore: filter visible views

* chore: use structure value instead of json

* chore: database in doc wip

* fix: remove child item push

* fix: main database view meta

* chore: rework inline database in doc

* fix: make duplicate more error forgiving

* chore: use get instead of get key value

* chore: merge with main

* feat: set max depth for folder view

* chore: update dependency counter

* chore: remove unneeded arg

* chore: simplify collab new from source

* chore: remove unneeded param

* chore: rename and doc

* feat: rework inline database and use duplicated ref

* chore: simplify params

* chore: fmt

* feat: deduplicate database wip

* fix: compatible with newer appflowy version

* fix: database views

* feat: database in doc

* chore: cargo clippy

* chore: update dockerfile rust toolchain

* fix: doc inline db parent id

* fix: database id

* fix: document data modification

* chore: minor refactor and todo

* chore: remove unneeded nesting

* fix: enforce ordering for views to add

* chore: add doc and test case for folder view

* fix: remove the need for cloning published collab

* fix: some review

* chore: move folder conversion logic

* fix: remove collab folder deps on shared entity

* chore: cargo fmt

* fix: compile

* chore: remove group manager dependency

* fix: dep count

* fix: add messages sent by server

* fix: dep count

* chore: add test for doc ref and inline doc database

* chore: cargo clippy

* chore: add more test scenarios

* chore: fix tests

* chore: get database id

* chore: update collab

* chore: add more assert and database row id checks

* fix: suggestions from review

* chore: sqlx

* fix: accumulate collab before insert

* chore: add tokio spawn blocking for encoding

* fix: reduce limit for publish collabs

---------

Co-authored-by: Bartosz Sypytkowski <b.sypytkowski@gmail.com>
Co-authored-by: nathan <nathan@appflowy.io>
2024-09-03 09:12:29 +08:00
Lucas.Xu
cf1bae3ccb
chore: update getting_started icon and remove empty paragraph (#778)
* chore: update getting_started icon and remove empty paragraph

* fix: get_user_default_workspace test
2024-09-03 09:02:27 +08:00
Zack Fu Zi Xiang
6acaf69add
Merge branch 'main' into feat/delete-user 2024-09-03 02:24:58 +08:00
Zack Fu Zi Xiang
de8f992377
feat: admin frontend delete account button 2024-09-03 02:24:38 +08:00
Nathan.fooo
365c64c5c2
chore: use colla storage instead of select from db directly (#782) 2024-09-02 21:25:21 +08:00
Zack Fu Zi Xiang
95460924f8
fix: dont return error if fail to revoke for apple signed in user 2024-09-02 21:20:32 +08:00
Zack Fu Zi Xiang
c96d93f7cd
Merge branch 'main' into feat/delete-user 2024-09-02 21:13:50 +08:00
Zack Fu Zi Xiang
fd22e1d472
chore: preserve provider token 2024-09-02 21:13:33 +08:00
Nathan.fooo
299680c14a
chore: decode encode collab using spawn blocking (#781) 2024-09-02 20:27:40 +08:00
Zack Fu Zi Xiang
25cec9982f
chore: revoke for apple user 2024-09-02 17:25:21 +08:00
Zack Fu Zi Xiang
7c36c712c8
Merge branch 'main' into feat/delete-user 2024-09-02 14:46:56 +08:00
Nathan.fooo
abd96d8b56
chore: add APPFLOWY_COLLAB_REMOVE_BATCH_SIZE env to control num of co… (#779)
* chore: add APPFLOWY_COLLAB_REMOVE_BATCH_SIZE env to control num of collabs to be removed in one tick

* chore: clippy
2024-09-02 11:24:40 +08:00
Zack Fu Zi Xiang
89f2c7003b
feat: support user deletion 2024-09-02 11:14:04 +08:00
Zack Fu Zi Xiang
a2af9c3b63
Merge branch 'main' into feat/delete-user 2024-09-02 01:00:28 +08:00
Nathan.fooo
c2a5369313
chore: set chat request timeout (#777)
* chore: set chat request timeout

* chore: clippy
2024-09-01 15:16:11 +08:00
Zack Fu Zi Xiang
1b7f3f817c
Merge branch 'main' into feat/delete-user 2024-09-01 00:51:38 +08:00
Zack Fu Zi Xiang
06a5a22032
feat: delete user 2024-09-01 00:51:05 +08:00
Christian W. Zuckschwerdt
1bf315b973 fix: add doc note for mandatory smtps 2024-08-30 20:36:31 +02:00
Bartosz Sypytkowski
6972f9c4ab
feat: Measure sync (#772)
* chore: redesign collab sync protocol to enable injection of metric tracking

* chore: track metrics for apply update on the server side

* chore: close locks

* chore: post rebase fixes
2024-08-30 21:48:19 +08:00
Khor Shu Heng
405d9703cc
Merge pull request #774 from AppFlowy-IO/mobile_guide
chore: remove spaces around em dash in mobile_guide.json
2024-08-30 16:52:31 +08:00
Lucas.Xu
fbe5ed4deb chore: remove spaces around em dash in mobile_guide.json 2024-08-30 16:06:43 +08:00
Khor Shu Heng
77a4af8a58
Merge pull request #773 from AppFlowy-IO/metrics-connect
chore: reconnect realtime metrics
2024-08-30 16:02:37 +08:00
Bartosz Sypytkowski
f75413566e chore: reconnect realtime metrics 2024-08-30 09:56:51 +02:00
Nathan.fooo
1f9a03a83d
chore: enable lock timeout feature (#771) 2024-08-30 14:24:34 +08:00
Nathan.fooo
3e701a1f8b
chore: remove no require data error log (#766)
* chore: remove no require data error log

* chore: clippy
2024-08-30 13:55:53 +08:00
Bartosz Sypytkowski
1d996677c1
Merge pull request #770 from AppFlowy-IO/remove-redundant-metrics
chore: remove redundant metrics collector
2024-08-30 07:18:12 +02:00
Nathan.fooo
5278203394
chore: decode update when spawn blocking when update size exceeds the… (#769)
* chore: decode update when spawn blocking when update size exceeds the threshold size

* chore: use 1mb as threshold
2024-08-30 11:30:15 +08:00
Bartosz Sypytkowski
5b2b717fe7 chore: remove redundant metrics collector 2024-08-30 05:14:44 +02:00
Nathan.fooo
773efcd91a
chore: increase chat timeout (#768) 2024-08-30 09:37:22 +08:00
Nathan.fooo
54b811125e
chore: wrap spawn blocking when decoding collab (#767) 2024-08-29 22:53:33 +08:00
nathan
8f7c35c491 chore: use main branch commit id 2024-08-29 16:14:35 +08:00
Bartosz Sypytkowski
2af1999375
chore: added locks with timeouts (#765)
* chore: added locks with timeouts

* chore: roll back collab locks in client api
2024-08-29 16:13:27 +08:00
Zack
3b79ac5cca
Merge pull request #763 from AppFlowy-IO/fix/admin-user
fix: admin sign in instead of only sign up
2024-08-29 11:54:19 +08:00
Zack Fu Zi Xiang
e5e89be371
fix: import 2024-08-29 10:16:19 +08:00
Zack Fu Zi Xiang
de8387b3af
fix: admin sign in instead of only sign up 2024-08-29 10:08:14 +08:00
Nathan.fooo
c9504d4081
fix: invalid message id (#762)
* chore: add logs

* chore: remove all pending message when server missing update
2024-08-28 21:05:15 +08:00
Lucas.Xu
e7bf221ff0
feat: update built-in README for new users (#757)
* feat: add getting_started, desktop_guide and mobile_guide json

* feat: update built-in readme data

* feat: support adding database as template

* feat: support creating nested documents

* chore: refactor code

* chore: refactor code

* chore: remove println

* chore: update collab version

* feat: update built-in readme and image ref

* chore: remove template icon

* feat: use database::create_with_view to create collab

* chore: add template tests

* chore: update collab version

* chore: remove debug code

* chore: add comment

* chore: fix lint & test

* fix: code review

* fix: rust lint

* chore: update comment

* test: add default workspace test

* test: add default user workspace test

* chore: use workspace database body

* chore: fix typo and clippy

* fix: insert_folder_data_success test

* fix: insert_folder_data_success test

* feat: update content in gettting_started

* chore: update to-dos json

---------

Co-authored-by: nathan <nathan@appflowy.io>
2024-08-28 19:40:23 +08:00
Nathan.fooo
cccdf76116
chore: Update client protocol sync interval (#761)
* chore: separate server/client miss update

* chore: short pull timeout

* chore: short tick interval

* chore: fix clippy
2024-08-28 14:46:55 +08:00
Bartosz Sypytkowski
8beac5c85f
chore: reuse group collab for indexing (#737)
* chore: reuse group collab for indexing

* chore: fix linting errors

* chore: post rebase fixes
2024-08-28 00:13:41 +08:00
Nathan.fooo
ab14568bbf
chore: use env to use control multiple thread runtime or not (#760) 2024-08-28 00:13:24 +08:00
Bartosz Sypytkowski
5badffc97b
chore: update yrs and appflowy collab (#759)
* chore: update yrs and appflowy collab

* chore: increased allowed number of dependencies
2024-08-27 19:58:58 +08:00
nathan
fee2c37aa4 chore: disable multiple thread in group 2024-08-27 18:12:11 +08:00
Nathan.fooo
c8ee6b43ee
chore: try to fix inifinite sync (#756) 2024-08-27 16:41:19 +08:00
Zack
ed2a3fd1ee
Merge pull request #755 from AppFlowy-IO/feat/apple-logo
fix: add apple logo for oauth login
2024-08-27 15:40:04 +08:00
Zack Fu Zi Xiang
4dd8d0a880
chore: preserve login backward compatibility 2024-08-27 15:01:12 +08:00
Nathan.fooo
a21c55cbcc
chore: modify log level for some cases (#754)
* chore: modify log level for some cases

* chore: update logs
2024-08-27 14:57:00 +08:00
Zack Fu Zi Xiang
63b23f0927
fix: add apple logo for oauth login 2024-08-27 14:45:07 +08:00
Zack
612f459a38
Merge pull request #748 from AppFlowy-IO/gotrue-2.159.0
chore: update gotrue version
2024-08-27 13:51:24 +08:00
Zack Fu Zi Xiang
66f74f2e4b
Merge branch 'main' into gotrue-2.159.0 2024-08-27 12:55:31 +08:00
Zack Fu Zi Xiang
e7236c115d
fix: version update compatibility 2024-08-27 12:55:10 +08:00