Commit Graph

109 Commits

Author SHA1 Message Date
Zack Fu Zi Xiang 584ed0863f
chore: fmt sqlx 2024-09-04 12:03:25 +08:00
Zack Fu Zi Xiang 6d0a7cc95b
fix: delete user should only remove owned workspaces 2024-09-04 12:00:34 +08:00
khorshuheng 56b9f9daf4 feat: published view outline endpoint 2024-09-03 15:27:59 +08:00
Zack Fu Zi Xiang 236d972fbf
chore: cargo sqlx 2024-09-03 12:24:27 +08:00
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
Khor Shu Heng 9c8e718246
feat: Template CRUD Endpoint (#731)
* feat: template crud endpoint

* fix: clippy error

* fix: categories for related view

* fix: add created at and last updated at to template response

* feat: template api delete endpoint

* feat: include number of template count for template creator

* fix: use params instead of individual fields for template api

* fix: seach template creator by name query

* chore: simplify query

* feat: support template count limit for template homepage
2024-08-20 15:22:56 +08:00
khorshuheng 2f0a705e16 fix: update updated_at fields when updating template creator and category 2024-08-19 13:06:30 +08:00
khorshuheng 3481dab2bf fix: sorting order of template category and creator 2024-08-16 14:26:04 +08:00
khorshuheng 59e5a13ee4 fix: replace rank with priority 2024-08-14 14:17:21 +08:00
khorshuheng f6e78a941f feat: api endpoint for template categories and creators 2024-08-12 13:43:14 +08:00
Khor Shu Heng ea27e87103
feat: support avatar url for publish comment and reaction endpoint (#711)
* chore: update sqlx to 0.8

* feat: support avatar url for publish comment and reaction

* chore: simplify reactions and comments ops using query as
2024-08-08 23:58:28 +08:00
Nathan.fooo a371912c61
chore: enable chat with provided context (#713)
* chore: enable chat with provided context

* chore: rename

* chore: update create chat message api endpoint

* chore: use list context

* chore: use list context

* chore: fix test

* chore: update api endpoint

* chore: rename client api function

* chore: rename client api function

* chore: expose entity

* chore: update sqlx files

* chore: update test
2024-08-05 14:06:44 +08:00
Khor Shu Heng ff7de66dfa feat: add can be deleted field to GlobalComment 2024-07-29 19:32:16 +08:00
khorshuheng 422683d717 fix: order reactions by reaction type first creation date 2024-07-29 16:02:03 +08:00
khorshuheng b6c9f541e2 fix: delete reaction from comment SQL query should be based on comment id, not view id 2024-07-29 14:47:33 +08:00
Khor Shu Heng 62f32e8757 feat: return user struct instead of uuid for reaction 2024-07-27 12:55:07 +08:00
Khor Shu Heng b861f0a703 feat: endpoints for reactions on published view 2024-07-26 22:56:47 +08:00
Khor Shu Heng 122520e9f4 fix: order comments by recency 2024-07-26 16:28:35 +08:00
Zack Fu Zi Xiang fc62a079c0
chore: merge with main 2024-07-25 21:05:29 +08:00
Khor Shu Heng f535950643 feat: add database operations for publish comment crd 2024-07-25 13:32:43 +08:00
Khor Shu Heng 6eea93d774 feat: add create, retrieve, delete API for publish view global comment 2024-07-25 13:32:43 +08:00
Zack Fu Zi Xiang 11c1521b71
feat: improve workspace api 2024-07-25 04:19:40 +08:00
Bartosz Sypytkowski f5ca71e701 chore: remove pg advisory lock 2024-07-15 19:09:26 +02:00
Zack Fu Zi Xiang 315dd0c923
fix: sqlx 2024-06-29 13:57:36 +08:00
Zack Fu Zi Xiang 9aef3613b6
fix: sqlx 2024-06-29 12:34:45 +08:00
Bartosz Sypytkowski bf5b122557 chore: generate sqlx offline query definitions 2024-06-28 09:26:19 +02:00
Bartosz Sypytkowski 2f37f621b2 fix: collab update violating primary key 2024-06-28 07:11:33 +02:00
Bartosz Sypytkowski b6f301b3ad chore: sqlx prepare workspace json 2024-06-28 05:40:44 +02:00
Bartosz Sypytkowski cce52a5185 chore: do not throw errors on invalid document schema during indexing 2024-06-28 05:40:44 +02:00
Bartosz Sypytkowski 6592f00a20 chore: change query to use workspace directly 2024-06-25 08:07:32 +02:00
Bartosz Sypytkowski ef27a148b9 chore: rename workspace settings disable indexing to disable search indexing in database queries 2024-06-24 10:54:42 +02:00
Zack Fu Zi Xiang 9a90f77b6e
chore: sqlx 2024-06-21 11:31:42 +08:00
Zack Fu Zi Xiang b525e333f0
feat: batch unpublish 2024-06-20 12:05:12 +08:00
Zack Fu Zi Xiang 6c09839728
feat: batch metadata 2024-06-19 01:30:51 +08:00
Zack Fu Zi Xiang 09828c5eea
feat: add impl for get collab info 2024-06-18 19:07:48 +08:00
Zack Fu Zi Xiang d2cb0d4486
chore: remove unneeded api 2024-06-17 21:33:36 +08:00
Bartosz Sypytkowski b52369de7f
feat: add workspace settings with disable indexing option (#606)
* feat: add workspace settings with disable indexing option

* chore: added api workspace settings endpoint

* chore: add workspace settings read and write to client api

* chore: add tests for workspace settings client api

* fix: enforce authorization rules on workspace settings api

* chore: fix appflowy indexer test configuration

* chore: add dotenvy to appflowy indexer tests

* chore: override appflowy indexer env vars for tests

* chore: add appflowy indexer preindex env var
2024-06-06 09:26:21 +08:00
Bartosz Sypytkowski 58e01f4e8d
fix: index documents with missing embeddings at service start (#597)
* feat: appflowy-indexer indexes documents with missing embeddings at start

* chore: add tests to check initial indexing of collabs

* chore: log user search requests and response

* fix: wrong appflowy openai api key env var name

* chore: fill openai keys for integration testing

* chore: silence flaky test
2024-06-04 16:50:06 +08:00
Nathan.fooo b36715dc24
chore: generate answer manually (#594)
* chore: generate answer manually

* chore: rename

* chore: return reply message id

* chore: save message

* chore: commit schema files
2024-06-03 08:06:23 +08:00
Nathan.fooo edfcb5c1ea
chore: extend chat message with meta (#592) 2024-06-01 19:32:39 +08:00
Bartosz Sypytkowski d3e59fa801
feat: Appflowy-indexer service and /api/search endpoint (#582)
* feat: implement appflowy-indexer and search api endpoint

* chore: store embedding content type

* chore: more descriptive messages for open ai missing key

* chore: fix sqlx errors in tests

* chore: document watcher - change plain text rendering to use depth-first scan

* chore: added nested document blocks example
2024-05-28 21:09:29 +08:00
Nathan.fooo 4eb1e6bceb
chore: generate history using redis steam (#570)
* chore: combine test

* chore: add snapshot test

* chore: add test
2024-05-23 07:57:20 +08:00
Nathan.fooo 05e7f1cda7
Integrate ai chat (#569)
* chore: fix compile

* chore: implement client api

* chore: implement client api

* chore: clippy
2024-05-22 11:18:07 +08:00
Zack ec7eb54bfc
chore: Self host improvement (#561)
* fix: remove multiple ways to specify database name

* feat: resent email for already invited user

* feat: mailer address from smtp username

* feat: allow user defined smtp port
2024-05-18 08:33:08 +08:00
Nathan.fooo 4c00ddd593
chore: Chat history (#546)
* chore: imple sql curd

* chore: update chat

* chore: select messages

* chore: update test

* chore: update schema

* chore: update
2024-05-11 20:41:21 +08:00
Zack Fu Zi Xiang 572271f751
feat: reuse email link 2024-05-06 14:18:36 +08:00
Zack Fu Zi Xiang 9adf3f883c
feat: improve email workspace invitations 2024-04-30 11:07:29 +08:00
Zack Fu Zi Xiang 6e74449ab1
feat: accept workspace invite email 2024-04-29 19:40:20 +08:00
Nathan.fooo 7b4b9d0c10
chore: folder data check (#496)
* chore: folder data check

* chore: stop observe remote change when specific type of collaboration object override with incorrect data

* chore: commit sqlx file
2024-04-26 13:20:06 +08:00
Nathan.fooo 28e0e74fd1
feat: Implement history(1) (#466)
* chore: update collab commit

* chore: collab history test

* chore: collab history test

* chore: impl redis stream

* chore: impl redis stream test

* chore: impl migration

* chore: implement history sql

* chore: add test

* chore: add test

* chore: fix test

* chore: update log and test

* chore: add xtask

* chore: clippy

* chore: impl api

* chore: add missing sqlx files

* chore: fix test

* chore: fix test
2024-04-15 09:18:19 +08:00