Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: introduce sqlite as a plugabble metadata store #3401

Merged
merged 63 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
a5dfb6d
add metadata store
kevinslin Jul 31, 2022
09e066e
add prisma
kevinslin Jul 31, 2022
d3c7d2a
add sqlite store to engine
kevinslin Jul 31, 2022
d7cc94f
minor init fixes
kevinslin Jul 31, 2022
8a13e97
prisma stuff
kevinslin Jul 31, 2022
18200eb
stable snapshot
kevinslin Aug 6, 2022
e76ab21
sqlite quote fixes
kevinslin Aug 6, 2022
2c696e8
stable
kevinslin Aug 6, 2022
b2758c6
normalize query
kevinslin Aug 6, 2022
dd51d01
create all tables if no tables exist
kevinslin Aug 7, 2022
05ef239
init per vault
kevinslin Aug 7, 2022
9a33cbc
add some error logic
kevinslin Aug 7, 2022
d8d946f
add diagnostics
kevinslin Aug 9, 2022
2bd7b35
snap
kevinslin Aug 10, 2022
7d532b2
throw error and write to disk
kevinslin Aug 10, 2022
e2f7355
export sqlite
kevinslin Aug 15, 2022
c02d56d
add comments
kevinslin Aug 15, 2022
7ba4e19
add script to build prisma client
kevinslin Aug 15, 2022
0c14e44
add tests
kevinslin Aug 16, 2022
e939454
updates
kevinslin Aug 19, 2022
e38a0f8
add tests
kevinslin Aug 19, 2022
81bc891
remove debugger
kevinslin Aug 19, 2022
989f4bb
update metadata when notes change
kevinslin Aug 19, 2022
354ca05
update cache
kevinslin Aug 19, 2022
0d4460b
update makefile
kevinslin Aug 20, 2022
69df351
update build
kevinslin Aug 20, 2022
9b65474
update make
kevinslin Aug 20, 2022
f955ee8
update make
kevinslin Aug 20, 2022
cdad725
add comments
kevinslin Aug 20, 2022
a1e91e9
test
kevinslin Aug 20, 2022
34a8cd9
chore: publish patch
kevinslin Aug 20, 2022
f089723
add logs
kevinslin Aug 20, 2022
cef8476
chore: publish patch
kevinslin Aug 20, 2022
51c9364
update
kevinslin Aug 20, 2022
5f69bc2
modify
kevinslin Aug 20, 2022
3ef8b10
revert
kevinslin Aug 20, 2022
9103644
update
kevinslin Aug 21, 2022
a3a9970
remove export
kevinslin Aug 21, 2022
b57f7eb
Revert "chore: publish patch"
kevinslin Aug 21, 2022
028d3bd
Revert "chore: publish patch"
kevinslin Aug 21, 2022
7acef00
adjust location of prisma-client
kevinslin Aug 21, 2022
1b5bb69
add comments
kevinslin Aug 21, 2022
943b664
chore: publish patch
kevinslin Aug 21, 2022
5a5aed3
fix formatting
kevinslin Aug 21, 2022
c2b2a2e
engine server modification in build
kevinslin Aug 21, 2022
2265818
add copy script
kevinslin Aug 21, 2022
6369574
update build script
kevinslin Aug 21, 2022
9b4b15d
Revert "chore: publish patch"
kevinslin Aug 21, 2022
b956d96
update dev cli
kevinslin Aug 21, 2022
bbb418c
update cli
kevinslin Aug 21, 2022
1389799
update build
kevinslin Aug 21, 2022
b556983
update
kevinslin Aug 21, 2022
05d9dc6
remove dist changes
kevinslin Aug 22, 2022
e2bb577
remove modify engine
kevinslin Aug 22, 2022
d1d7e0b
chore: publish patch
kevinslin Aug 22, 2022
22e213f
update tests
kevinslin Aug 22, 2022
2816889
add additional targets
kevinslin Aug 22, 2022
bf327e6
Revert "chore: publish patch"
kevinslin Aug 22, 2022
fc7cf37
dont skip windows test
kevinslin Aug 22, 2022
7713add
fix compiler issue
kevinslin Aug 22, 2022
b2b7554
skip windows tests
kevinslin Aug 22, 2022
f59c08b
add windows support
kevinslin Aug 22, 2022
de12e76
skip windows
kevinslin Aug 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
with:
path: |
packages/*/lib/*
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-21
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-22
restore-keys: |
${{ runner.os }}-yarn-9

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ packages/nextjs-template/public
.npmrc
.env.production
packages/dendron-viz/lib
generated-prisma-client
packages/engine-server/prisma/dev.db
dev.db-journal
926 changes: 926 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,20 @@ cleanBuild:
echo "Clean building..."
make clean
make install

db-gen:
cd packages/engine-server && yarn prisma generate
cd packages/engine-server && rm -rf lib/generated-prisma-client
cd packages/engine-server && cp -R src/generated-prisma-client lib/generated-prisma-client

start-local-registry:
yarn config set registry http://localhost:4873
npm set registry http://localhost:4873/
npx verdaccio -c ./bootstrap/data/verdaccio/config.yaml

publish-local:
lerna publish from-package --ignore-scripts

build-plugin:
dendron dev prep_plugin && rm package.json
dendron dev package_plugin
12 changes: 6 additions & 6 deletions bootstrap/scripts/buildAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ const $ = (cmd) => {

console.log("building all...");
$(`npx lerna run build --scope @dendronhq/common-all`);
$(`npx lerna run build --scope @dendronhq/common-server `);
$(`npx lerna run build --scope @dendronhq/dendron-viz `);
$(`npx lerna run build --scope @dendronhq/engine-server `);
$(`npx lerna run build --scope @dendronhq/pods-core `);
$(`npx lerna run build --scope @dendronhq/common-server`);
$(`npx lerna run build --scope @dendronhq/dendron-viz`);
$(`npx lerna run build --scope @dendronhq/engine-server`);
$(`npx lerna run build --scope @dendronhq/pods-core`);
$(
`npx lerna run build --parallel --scope "@dendronhq/{common-test-utils,api-server,common-assets}"`
`npx lerna run build --parallel --scope "@dendronhq/{common-test-utils,api-server,common-assets}"`
);
$(
`npx lerna run build --parallel --scope "@dendronhq/{common-frontend,dendron-cli}"`
`npx lerna run build --parallel --scope "@dendronhq/{common-frontend,dendron-cli}"`
);
$(`npx lerna run build --scope "@dendronhq/engine-test-utils"`);
$(`npx lerna run build --scope "@dendronhq/dendron-plugin-views"`);
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"yes": true
}
},
"version": "0.108.0"
"version": "0.108.1"
}
170 changes: 170 additions & 0 deletions packages/api-server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,176 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.108.1](https://github.com/dendronhq/dendron/compare/v0.53.0...v0.108.1) (2022-08-22)


### Reverts

* Revert "chore: publish patch" ([9b4b15d](https://github.com/dendronhq/dendron/commit/9b4b15d92b4b6d69c14a98edac1af9f8a38c599f))
* Revert "chore: publish patch" ([028d3bd](https://github.com/dendronhq/dendron/commit/028d3bd6b2ab6a5c10e635188ac50768d7ddc292))
* Revert "chore: publish patch" ([b57f7eb](https://github.com/dendronhq/dendron/commit/b57f7ebcc6d70611c625bba2bee693c33c496583))



# 0.106.0 (2022-08-02)



## 0.105.2 (2022-07-28)



## 0.104.1 (2022-07-21)



# 0.104.0 (2022-07-19)


### Bug Fixes

* **workspace:** workspace sync will maintain proper engine state ([#3233](https://github.com/dendronhq/dendron/issues/3233)) ([13f788c](https://github.com/dendronhq/dendron/commit/13f788cb9a46800edffe66dcac88062e33830a5c))



# 0.101.0 (2022-06-28)



## 0.100.1 (2022-06-23)



# 0.100.0 (2022-06-21)



# 0.99.0 (2022-06-14)



# 0.98.0 (2022-06-07)



# 0.96.0 (2022-05-24)



## 0.95.1 (2022-05-18)



# 0.95.0 (2022-05-17)



# 0.94.0 (2022-05-10)



# 0.93.0 (2022-05-03)



## 0.92.1 (2022-04-28)



# 0.91.0 (2022-04-19)



# 0.88.0 (2022-03-29)



# 0.85.0 (2022-03-08)



# 0.84.0 (2022-03-01)



# 0.82.0 (2022-02-15)



# 0.79.0 (2022-01-25)


### Bug Fixes

* highlighting breaks when there's too much text ([#2163](https://github.com/dendronhq/dendron/issues/2163)) ([9d9579c](https://github.com/dendronhq/dendron/commit/9d9579cdab773131a5c8e0b1d6e130262d6a8164))
* **server:** specify localhost when starting server ([c57972a](https://github.com/dendronhq/dendron/commit/c57972a4afe3ea5ce98c464ba6a46fc173a7d514))



# 0.72.0 (2021-12-07)


### Bug Fixes

* decorator lag problems ([#1822](https://github.com/dendronhq/dendron/issues/1822)) ([239bbdc](https://github.com/dendronhq/dendron/commit/239bbdc074e7bfde065a4210084002a0685471e5))
* **pods:** invalid configuration error ([398a599](https://github.com/dendronhq/dendron/commit/398a5995fc594566131eb283ff989a877ca9c995))
* **server:** improving error response on api server ([#1645](https://github.com/dendronhq/dendron/issues/1645)) ([8936fb6](https://github.com/dendronhq/dendron/commit/8936fb690045022487fb46aafd661581b60deab1))


### Features Dendron

* **workspace:** better note previews ([#1666](https://github.com/dendronhq/dendron/issues/1666)) ([5cf7067](https://github.com/dendronhq/dendron/commit/5cf70672a24a62d528440f38b44813bfa627fb88))



## 0.62.3 (2021-10-09)



# 0.61.0 (2021-09-28)


### Bug Fixes

* **workspace:** use correct keybinding when using vim+dendron in same workspace ([e1180e6](https://github.com/dendronhq/dendron/commit/e1180e66e8ac29c82f34cf1e6797f1ab473ef510))



## 0.60.2 (2021-09-25)



## 0.60.2-alpha.0 (2021-09-24)



## 0.60.1 (2021-09-24)



# 0.60.0 (2021-09-21)


### Bug Fixes

* **publish:** versioning issues with next 11 ([76d7042](https://github.com/dendronhq/dendron/commit/76d7042a444dabc98069aaac1e40d692ee18f5a1))



## 0.55.2 (2021-08-21)



## 0.55.1 (2021-08-17)



## 0.54.1 (2021-08-13)





# 0.108.0 (2022-08-16)


Expand Down
8 changes: 4 additions & 4 deletions packages/api-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dendronhq/api-server",
"version": "0.108.0",
"version": "0.108.1",
"description": "",
"license": "GPLv3",
"repository": {
Expand Down Expand Up @@ -54,9 +54,9 @@
"access": "public"
},
"dependencies": {
"@dendronhq/common-all": "^0.108.0",
"@dendronhq/common-server": "^0.108.0",
"@dendronhq/engine-server": "^0.108.0",
"@dendronhq/common-all": "^0.108.1",
kevinslin marked this conversation as resolved.
Show resolved Hide resolved
"@dendronhq/common-server": "^0.108.1",
"@dendronhq/engine-server": "^0.108.1",
"@sentry/integrations": "^6.13.1",
"@sentry/node": "^6.13.1",
"cors": "^2.8.5",
Expand Down