Commit graph

47 commits

Author SHA1 Message Date
Marukome0743
2788d062e5
chore: update supabase gotrue URL 2025-04-08 13:47:56 +09:00
Bartosz Sypytkowski
1fd900d994
Document paragraphs (#1119)
* chore: create embeddings by paragraphs

* chore: use document paragraphs method

* chore: document indexing by paragraphs with consistent hash

* chore: compare produced embeddings against existing ones

* chore: make pg stored proc compare between input and existing embedded fragments

* chore: missing sqlx generation

* fix: appflowy worker

* chore: make sure that embeddings are only changed when content had changed

* chore: remove partition key and recreate af_collab_embeddings_upsert migration

* chore: use pg15 on CI and update af_collab_embeddings table primary key

* chore: fix test

---------

Co-authored-by: Nathan <nathan@appflowy.io>
2025-04-06 17:47:02 +08:00
Nathan.fooo
49e83c6b6b
chore: format chat response (#1125)
* chore: chat response with format

* chore: update prompt

* chore: update test

* chore: update test

* chore: fix stress test

* chore: fix test

* chore: test

* chore: test

* chore: fix stress test

* chore: fix test
2025-01-06 01:19:00 +08:00
khorshuheng
a8c3adf166 feat: shift admin user creation responsibility to gotrue service 2024-12-08 15:01:48 +08:00
Nathan.fooo
fd98351473
chore: adjust redis env (#1003) 2024-11-17 14:26:59 +08:00
ThanatosDi
248c62dfbf
refactor: #934 remove SUPABASE_USER variable 2024-10-26 13:22:03 +08:00
khorshuheng
6a34be316e fix: remove dependencies on unnecessary postgres roles 2024-10-24 16:02:12 +08:00
khorshuheng
d99f85cffd chore: use pgvector for postgres image instead of building 2024-09-30 16:20:19 +08:00
Kalitsune
366aa03a0e
feat: modernized the docker-compose file (#776)
This commit allows the port to be controlled using environment variables without having to edit the file which can be troublesome as this app is deployed as a git repo.

Additionaly this commits removes the `version` field which is now deprecated (read: https://docs.docker.com/reference/compose-file/version-and-name/#version-top-level-element-obsolete)
2024-09-04 19:15:35 +08:00
Zack Fu Zi Xiang
63b23f0927
fix: add apple logo for oauth login 2024-08-27 14:45:07 +08:00
Zack Fu Zi Xiang
0bc92bb739
chore: update gotrue version for ci and dev 2024-08-26 12:10:57 +08:00
Nathan.fooo
da9b9d730e
chore: fix ai docker compose (#598) 2024-06-03 20:01:31 +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
c491f1a560
chore: fix ci (#549)
* chore: fix ci
2024-05-12 21:02:28 +08:00
Nathan.fooo
af75e8a2c0
chore: update configuration for ai docker (#512)
* chore: update configuration for ai docker

* chore: add script to test ci docker

* chore: update docs

* chore: update docs
2024-04-30 19:37:52 +08:00
Nathan.fooo
5bebc6a2b2
chore: Integrate appflowy ai (#504)
* chore: remove client api

* chore: add summarize row test

* chore: merge main

* chore: fix ci

* chore: update docker compose file
2024-04-29 22:23:40 +08:00
Zack Fu Zi Xiang
f999c0db5f
feat: added template for mail confirmation 2024-04-19 17:58:49 +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
Nathan.fooo
c85383b21d
chore: project folder structture (#392)
* chore: docker build

* chore: update

* chore: update

* chore: test stream pubsub

* chore: fix wanrings

* chore: realtime crate

* chore: realtime crate

* chore: realtime crate

* chore: realtime crate

* chore: reanme crates

* chore: reanme crates

* chore: project structure

* chore: disable docker for collab hisotry
2024-03-22 11:24:28 +08:00
Nathan.fooo
08693f2d72
chore: integrate appflowy ai (#388)
* chore: integrate appflowy ai

* chore: disable ai test
2024-03-16 21:43:02 +08:00
Zack Fu Zi Xiang
8028f667f2
fix: docker compose 2024-03-09 23:23:28 +08:00
Zack Fu Zi Xiang
4638e3cf01
chore: increase email rate limit during test 2024-03-09 19:50:14 +08:00
Nathan.fooo
a9ab3bbb22
chore: update exp in (#288) 2024-02-03 08:36:52 +08:00
Zack
615b402782
docs: Doc improvement (#256)
* feat: update docs and self host deploy configs

* feat: use default ports for dev

* feat: revamp self host

* feat: use nginx resolver

* feat: cargo fmt

* feat: ci integration test with nginx routing

* feat: cargo fmt

* feat: make docker ci use deploy env rather than dev env

* feat: update api external url for deploy test

* fix: if sqlx is set to offline dont run casbin for tests

* fix: set api external url for tests

* fix: ignore sqlx test with cfg

* fix: sqlx tests

* fix: test use env

* feat: update the docs on optional components
2024-01-12 16:01:16 +08:00
Nathan.fooo
453329dc0c
feat: try to resotre from snapshot when fail to initialize the collab in CollabStoragePlugin (#222) 2023-12-18 02:27:49 +08:00
Fu Zi Xiang
4f6323312f
feat: update optional component of deployment 2023-12-11 23:06:15 -08:00
Nathan.fooo
58ffae16b1
feat: enable create default documents for user when sign up (#184)
* chore: send collab with interval

* feat: create workspace template
2023-11-29 06:11:20 +08:00
Zack
85b5c26665
feat: remove pgjwt extension (#179) 2023-11-24 11:05:36 +08:00
Zack
1cc1158d36
feat: Metrics (#141)
* feat: added basic monitoring stack

* docs(grafana): import steps and recommended imports

* feat(metric): api metrics

* feat(prometheus): add appflowy cloud metric scraping job

* fix: put back tracing logger

* feat: middleware for path counter

* feat: added gotrue to prometheus metrics

* feat: added nginx to prometheus metrics

* feat: added latency and result to metrics

* feat(nginx): set request id to header

* feat: added request id in nginx

* feat: simplify metric collection

* feat: added simple grafana dashboard for appflowy cloud

* feat(logging): added logging stack

* docs: improve monitoring docs

* docs: added known common issues

* feat: give persistence

* feat: add exemplars

* fix: docker compose volumes

* feat(grafana): add trace id to prometheus datasource

* feat(grafana): improve dashboard to include exemplars
2023-11-02 15:34:00 +08:00
Nathan.fooo
f5fd264309
feat: support discord and github (#136)
* feat: support discord and github

* feat: enable discord and github oauth

* chore: update dev.env
2023-10-24 13:05:24 +08:00
Zack
a30745f1c4
feat: Admin frontend/refactor (#130)
* feat: refactor frontend components

* chore: remove unused files

* chore(build): add static asset
2023-10-22 12:02:16 +08:00
Zack
d8c0107489
feat: Portainer (#123)
* feat: add portainer to docker compose for monitoring

* feat: add portainer docker compose dev

* feat: add portainer init password
2023-10-19 10:36:26 +08:00
Zack
d6c0b7780b
feat: Minio web nginx (#122)
* feat: add minio web UI

* fix: minio redirect url

* fix: simplify minio config
2023-10-18 13:35:19 +08:00
Zack
d638c01763
feat: added oauth login for admin (#119)
* doc: added deployment guide for appflowy cloud

* feat: added oauth login for admin

* feat: specify redirect_url

* feat: implemented google oauth

* fix: default value for redirect_to

* fix: add check for location hash
2023-10-17 10:21:06 +08:00
Fu Zi Xiang
99bd0a8689
feat: use volume mounting to set initial servers 2023-10-12 23:49:45 +08:00
Fu Zi Xiang
9ff3a830d9
feat: use pgadmin as recommended from official 2023-10-12 23:39:58 +08:00
Fu Zi Xiang
b3471991ff
fix: reverse proxy for pgadmin 2023-10-12 17:14:59 +08:00
Zack
119adf53e4
feat: Pgadmin (#112)
* feat: added pgadmi

* feat: add pgadmin to nginx config for reverse proxy
2023-10-12 16:39:13 +08:00
Zack
67706f9e8e
feat: File api (#68)
* feat: s3 minio wip

* feat: s3 minio bucket create idempotent

* feat: put storage setting into configurations

* chore: clippy lint

* feat: add setting to base config

* feat: add configuration for prod

* fix: allow use different minio host
2023-09-22 15:10:41 +08:00
Zack
0676db7ed6
feat: Workspace members (#63)
* fix: create user if they sign up with oauth

* feat: add workspaces_members add and remove operations

* feat: add insert workspace members

* feat: attach db ops to api ops

* refactor: separate user and workspace scope

* chore: add sqx query metadata

* chore: add 2nd registered user for testing

* ci: use valid email

* ci: fix registered password invalid

* fix: use email instead of uid

* fix: use email instead of uid sqlx query metadata

* feat: add test for workspace member

* test: added workspace add and delete with checking

* ci: fix email
2023-09-19 20:59:16 +08:00
Fu Zi Xiang
7c2204f41a
fix: dev: remove appflowy_cloud as dep in docker compose 2023-09-18 21:18:58 +08:00
Fu Zi Xiang
79c8b9478f
feat: nginx reroute callback and verify 2023-09-18 20:49:54 +08:00
Zack
3c598f178e
ci: test env docker-compose deployment (#48)
* ci: test env docker-compose deployment

* ci: test deployment

* fix: replace delimiter with pipe to avoid conflict

* fix: API_EXTERNAL_URL_TEST from secrets

* chore: remove unneeded deploy when pull request

* fix: cloud public host name/address

* chore: trigger: change to push

* chore: add ext_url for exposed gotrue auth server
2023-09-15 21:13:43 +08:00
Zack
9fc2acbc35
feat: Docker/gotrue (#43)
* feat: use gotrue from source instead of docker hub image

* test: fix test due to gotrue upgrade

* fix: update prod docker-compose

* chore: cargo fmt --all
2023-09-14 20:41:04 +08:00
Zack
8d11d7b6cf
feat: support external oauth (#35)
* feat: support external oauth

* chore: cargo fmt

* doc: add docs for google oauth2

* fix: use btree map and get for oauth

* feat: client to open url for oauth login

* feat: add test case for oauth not available

* feat: add placeholder for sign_in_url

* fix: use

* feat: client sign up with url

* feat: add sign_in_with_url simple test

* fix: use url fragments and string split

* fix: test case and gotrue error handling

* fix: return error and remove unwrap

* chore: remove unused file not in module tree

* fix: test cases

* chore: add cfg feature cloud to isolate dependencies
2023-09-13 21:08:13 +08:00
Zack
da03009004
feat: use apply server migration when server starts (#30)
* feat: use apply server migration when server starts

* fix: add docs and fix local run

* feat: refactor migration

* feat: local build server wait on gotrue

* fix: add back sqlx commands

* fix: add migrations directory

* fix: try SQLX_OFFLINE=true

* test: fix rustlint

* chore: clippy fmt

---------

Co-authored-by: nathan <nathan@appflowy.io>
2023-09-12 15:12:08 +08:00
Zack
36499be26c
docs: test + deploy + environmental variables (#14)
* doc: test + deploy + environmental variables

* doc: local dev and testing(WIP)

* dev: set up local testing

* fix: ci: add DATABASE_URL env

* chore: update .env

* ci: fix

* dev: docker-compose-dev.yml

* ci: update

* ci: test env

* ci: add services

* ci: add services

* ci: update port

* ci: rename ci.yaml to rustlint.yaml

* ci: test

* ci: simplify tests

* ci: use cargo sqlx commands directly

* ci: fix: registered user

* ci: fix: test registered user creation

* ci: fix: test registered user creation - 2

* ci: fix: debug docker ci

* ci: fix: docker integration registered user

* ci: fix: docker integration registered user

---------

Co-authored-by: nathan <nathan@appflowy.io>
2023-09-07 15:29:39 +08:00