Gabriel Horner
0ca7d1a4de
Fix multi-valued properties and enable first property graph test
...
Run db prop test with: DB_GRAPH=1 node static/tests.js -i focus
2023-07-24 16:42:36 -04:00
Gabriel Horner
4920b3a98e
Fix lints and fix graph-parser cljs tests
...
not running due to missing db dep
2023-07-24 14:06:57 -04:00
Gabriel Horner
b46959f670
Fix: basic property queries not working
...
{{query (property :foo "bar")}} and {{query (property :foo)}} should now
work
2023-07-21 17:27:03 -04:00
Gabriel Horner
48009adaf9
chore: reuse common helper for stringifying datoms
2023-07-20 18:37:22 -04:00
Tienson Qin
b32d2caa2d
fix: built in pages don't have client side timestamps
2023-07-19 17:34:04 +08:00
Tienson Qin
eb35d45d73
Remove :block/properties-text-values for db based graphs
2023-07-19 12:25:11 +08:00
Gabriel Horner
dc2707e398
Remove unused :page_uuid datoms
2023-07-18 13:38:30 -04:00
Gabriel Horner
9310e9e449
Fix db lints
...
Split out a common fn from restore-initial-data to make it
more readable
2023-07-17 12:56:01 -04:00
Tienson Qin
23d3091fce
Added :block/instance to db schema
2023-07-10 16:44:51 +08:00
Tienson Qin
3820cb7ff6
feat: structured pages
2023-07-10 03:01:40 +08:00
Tienson Qin
a0d6107d99
feat: class && configuration
2023-07-09 21:35:06 +08:00
Gabriel Horner
671453aadb
Add nbb script to demonstrate datascript querying a sqlite db
...
Also give test vars more appropriate name
2023-07-08 16:20:42 -04:00
Gabriel Horner
47e1b06f76
Move over restore-other-data and add a test for it
2023-07-08 02:11:35 -04:00
Gabriel Horner
586749c918
Move over restore-initial-data and add the first sqlite to datascript test
2023-07-07 16:43:31 -04:00
Gabriel Horner
62c550e26d
Updated timestamp column types to match actual usage
2023-07-06 14:11:58 -04:00
Gabriel Horner
fa01aefa24
Add an explicit new-db! for new db graphs to simplify other fns
...
Previously open-db! and upsert-blocks! had graph creation
and connection responsibilities. These shouldn't be needed if
new and existing databases have clear entry points
2023-07-04 13:06:21 -04:00
Gabriel Horner
016f7848ce
Add some basic constraints to blocks
...
Without the uuid and type constraints we wouldn't be able to use the
data. Without unique names, it'd be easy for the app to create long running
bugs with duplicate pages
2023-07-03 16:21:23 -04:00
Gabriel Horner
ceb9a1d726
Load more latest journals to reduce the likelihood of an initially buggy journals view
...
Reduces the likelihood of
https://linear.app/logseq/issue/LOG-2650/journals-view-shows-outdated-and-uneditable-journal-pages
occurring but it can still happen for more than 3 journal pages
2023-07-03 14:53:42 -04:00
Gabriel Horner
d82e388ea3
Fix: file pages should save their name
2023-07-03 10:54:30 -04:00
Gabriel Horner
045c51cded
Use sqlite.db ns in electron.db
...
- Add more tests for sqlite.db
- Update readme and CI for db's tests
2023-06-30 17:36:01 -04:00
Gabriel Horner
2ab6370dda
Add tests for core sqlite db fns
...
These core db fns have been split out to be platform agnostic
so they can be run on CLI or non electron platforms
2023-06-30 11:45:39 -04:00
Gabriel Horner
b56cbf0fd2
Fix: one more exception to rule linter
2023-06-28 09:28:42 -04:00
Tienson Qin
d078e207ae
fix: export pages test
2023-06-28 14:25:25 +08:00
Gabriel Horner
75ff4db4aa
Fix: circular dependencies again b/n deps <-> frontend
...
Breaks setup of deps/ and most tests
2023-06-27 16:39:10 -04:00
Gabriel Horner
c11e94ed59
Fix default-page creation for start-conn
2023-06-27 14:39:31 -04:00
rcmerci
0c4e9bf4d4
split db-version query rules
2023-06-27 19:28:12 +08:00
rcmerci
f6080b3657
update property query rules
2023-06-27 15:21:37 +08:00
Tienson Qin
9071320868
fix: create default pages for db-based graphs
2023-06-26 16:34:21 +08:00
rcmerci
b4c547654b
update schema
2023-06-26 11:41:59 +08:00
Tienson Qin
0c533a9032
fix: use db-based schema when possible
2023-06-26 11:07:08 +08:00
Gabriel Horner
4e99e21642
Fix commandline publishing not working e.g. bb dev:publishing
...
Also fix db dep having a circular dependency. frontend.* namespaces depend on deps/ dependencies
so we can't have frontend namespaces in deps/
2023-06-23 16:52:54 -04:00
Tienson Qin
fd6b587235
Merge branch 'master' into feat/db
2023-06-21 14:09:16 +08:00
rcmerci
8a1c54173b
[wip] property edit
2023-06-20 18:08:40 +08:00
rcmerci
6ea438053f
add property schema
2023-06-19 13:49:54 +08:00
Gabriel Horner
3f1d32dd6c
Update clj-kondo and bb-tasks for deps projects
2023-06-13 14:48:50 +08:00
rcmerci
0dcb5e1a14
faster restore-graph-from-sqlite
2023-05-26 01:50:42 +08:00
Gabriel Horner
10da24e5b7
Fix current block with disappearing path refs - close #9365
...
outliner-core/save-block and save-block-inner! were retracting
block/path-refs aggressively, especially for cases when no path-refs
had changed
2023-05-16 11:35:18 +08:00
Gabriel Horner
8697d59b72
Add test to prevent regression on #9119
2023-04-24 11:08:35 +08:00
Tienson Qin
e0f519b7ab
fix: query searching for two or more properties is extremely slow
...
close #8947
2023-04-18 11:00:17 +08:00
Gabriel Horner
7dc9c41899
Fix nbb.edn paths with latest nbb-logseq
...
Also upgrade nbb-logseq in other deps
2023-04-12 11:02:43 +08:00
Gabriel Horner
fef07fe812
Add docs and workflow for dep
...
Also rename dep to publishing for consistency with existing names
2023-04-09 23:13:33 +08:00
Andelf
d5d3857466
refactor(migration): add file/path migration
2023-03-28 09:14:42 +08:00
Tienson Qin
db6fc6b7ee
feat: simple query builder ( #8774 )
...
Simple query builder
---------
Co-authored-by: Gabriel Horner <gabriel@logseq.com >
Co-authored-by: charlie <xyhp915@qq.com >
2023-03-21 14:27:00 +08:00
Zhizhen He
25c15053d6
feat: add typos to GitHub action
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
2023-02-21 12:01:58 -05:00
Gabriel Horner
5fb73ebb4f
Bump nbb-logseq to confirm branch is nbb compatible
2023-01-20 15:57:49 -05:00
Gabriel Horner
17f51c7b77
Make resolve-input nbb compatible
...
- Brought back Xd-{before,after}-ms and tested it
- Move it to its own ns in graph-parser
- Updated nbb-logseq in deps/
- Made db-utils alias consistent
- Organized resolve-input
2023-01-07 02:49:07 -05:00
Gabriel Horner
13277b875d
Upgrade to latest clj-kondo - pods were pretty out of date
2022-12-09 13:17:09 -05:00
Gabriel Horner
794684750e
Fix up rules lint know that rules var is a map
2022-11-21 14:02:58 +08:00
Gabriel Horner
70a476dde3
Fix up model tests and remove unused rules
2022-11-21 14:02:58 +08:00
Tienson Qin
2dfac3d774
deprecate: on-disk encryption
...
Why?
1. there're still a lot issues on it and there's no resource to
maintain and develop it considering we need to support it on all the
platforms.
2. it creates more bugs with Logseq Sync.
2022-11-07 10:46:17 +08:00