Commit Graph

416 Commits

Author SHA1 Message Date
Tienson Qin
8a219cacc1 fix: update public/static to /static 2025-07-02 21:43:11 +08:00
Gabriel Horner
6251e48efc enhance(dev): build :datetime properties for schema graph
Also fix intermittent issue with diffing previous exports and
misleading message for rangeIncludes
2025-07-02 15:23:01 +08:00
Gabriel Horner
16925777d6 fix(dev): rm unnecessary property conflicts for schema graph
Property conflict detection was based on older model where :block/name
was unique and built-in and user properties competed for same name
2025-07-02 15:23:01 +08:00
Gabriel Horner
c1cab09a31 enhance(dev): schema graph builds multiple parents for classes
know that extends is a :many
2025-07-02 15:23:01 +08:00
Gabriel Horner
268889d0b7 chore: rename sqlite.build :build/class-parent to :build/class-extends
Matches new property name and its arity. :build/class-parent deprecated
2025-06-29 15:21:09 +08:00
Tienson Qin
ded9c8e517 fix: update :build/class-parent to multiple values 2025-06-29 15:21:09 +08:00
Gabriel Horner
b6cb12445c enhance(dev): schema CLI supports optional export
instead of dump option. Dump option required some maintenance and and
export has the advantage of being able to save the created graph. The
only thing that dump had over export was refs which really shouldn't
change now that we've standardized on them with db-pipeline/add-listener
2025-06-26 17:57:05 -04:00
Tienson Qin
92ec65d61d Merge branch 'master' into refactor/page-parent 2025-06-15 08:27:33 +08:00
Gabriel Horner
ec22e71df5 fix: bump nbb-logseq to include datascript and nbb fixes 2025-06-06 11:45:25 -04:00
Gabriel Horner
995f8c4c38 fix: worker lint
Make an exception for this require since it's only used in tests. Tried
to mv file-reset to tests but it touches too many tests
2025-05-29 00:39:51 +08:00
Gabriel Horner
3fe790d4d7 enhance(dev): scripts can read or write db graphs as full path files
This allows for easier use of debugging graphs as they are exported by
users as a file. Also DRYed up duplicated helper
2025-05-23 13:59:02 -04:00
Gabriel Horner
df9833040c Merge branch 'feat/db' into refactor/page-parent 2025-05-20 13:35:14 -04:00
Gabriel Horner
c9c0fc9ec3 Merge branch 'master' into feat/db 2025-05-19 15:41:53 -04:00
Tienson Qin
c22f8693cc fix: buildVersion should be a string 2025-05-19 23:40:55 +08:00
Tienson Qin
42778d36ae Merge branch 'feat/db' into refactor/page-parent 2025-05-16 23:27:20 +08:00
Gabriel Horner
1d8869a4a3 chore: bump borkdude.rewrite-edn to latest
and use consistent alias
2025-05-14 15:55:50 -04:00
Gabriel Horner
6f7e2a94c3 enhance: bump nbb-logseq to include rewrite-clj 2025-05-14 15:50:37 -04:00
Gabriel Horner
62e5b7e306 chore: bump nbb-logseq to get rid of
node deprecation warnings with node 22 and get a year's worth of nbb
updates and fixes
2025-05-14 13:30:52 -04:00
Tienson Qin
61d5aa3605 Rename :logseq.property/parent to :logseq.property.class/extends 2025-05-14 17:56:35 +08:00
Gabriel Horner
dc0e224982 fix: most node tests failing to run
Upgrade better-sqlite3 to match node bump
2025-05-13 10:42:41 -04:00
Gabriel Horner
2c67b6de11 chore: cleanup unnecessary multi graph calls in db
namespaces. Add fn and related namespaces to linter
2025-05-09 15:05:14 -04:00
Gabriel Horner
691b8866ef refactor: mv another common ns out of db dir
Allows for more improved separate linting
2025-04-28 11:27:49 -04:00
Gabriel Horner
6a635ecb49 refactor: mv common ns out of db ns
Also move common and file fns out of db ns. Cleanup allows
for better separation linting
2025-04-28 10:37:13 -04:00
Gabriel Horner
e0cb4e786f chore: bump nbb-logseq with datascript changes 2025-04-24 10:38:04 -04:00
rcmerci
b2b726f2b4 dev: update cider-nrepl, fix set-system-env 2025-04-15 22:45:28 +08:00
Tienson Qin
1aca680ae4 Merge branch 'feat/db' into perf/app-start 2025-03-31 21:53:37 +08:00
Gabriel Horner
e5061f1504 enhance: add export option to exclude-files
Useful for demo graphs as it's noisy and not useful to include since
imported graphs already have it. Also added descriptions for properties
graph to share it
2025-03-27 09:13:14 -04:00
Gabriel Horner
4d37ce8565 enhance: add import edn graph option
Also fix lint and move other db import fns to db ns
2025-03-17 17:16:49 -04:00
Gabriel Horner
078ac512ad add export graph command
Also add properties :file option. Was useful to compare sqlite.build
EDN w/ export equivalent
2025-03-17 11:58:30 -04:00
Tienson Qin
b87c43e697 Merge branch 'feat/db' into perf/app-start 2025-03-13 04:35:52 +08:00
Gabriel Horner
99c89ec3be chore: bump nbb-logseq to include tc/to-date 2025-03-10 15:32:29 -04:00
Tienson Qin
5d2ab65d7c Merge branch 'feat/db' into feat/blocks-action-bar 2025-03-08 13:55:33 +08:00
Gabriel Horner
7917afaa45 chore: update nbb scripts to be repl friendly
With https://github.com/babashka/nbb/issues/95 done, this allows
all nbb script namespaces to required or used from a repl
2025-03-07 11:49:28 -05:00
Gabriel Horner
0fc8af5686 refactor: remove db-graph behavior from file-graph gp-extract
Makes importer easier to maintain as there's less confusion with unused
checks in gp-extract
2025-02-27 11:20:24 -05:00
Gabriel Horner
3d34224143 fix: remove a few more file-graph fns in db graph only namespaces
Found by configuring separate linter for most of remaining deps
2025-02-26 18:02:22 -05:00
Gabriel Horner
9d09ee9dc4 fix: file graphs showing buggy views tab
instead of page count
2025-02-26 16:56:21 -05:00
Gabriel Horner
f5ea424e17 chore: remove deleted translations from #11739
Also enable counts for class-objects as they can get quite large
2025-02-24 10:39:01 -05:00
Gabriel Horner
04b832f5cb chore: mv file graph specific fns out ldb 2025-02-20 12:37:13 -05:00
Gabriel Horner
b2d5315a68 enhance(dev): add deps/db/src/logseq/{frontend,sqlite} to
separate linter. Will catch mistakes like
e92b107b5b next time. Also fixed
a few more ldb/* calls and expanded /db-based-graph? check
2025-02-19 16:44:17 -05:00
Gabriel Horner
e92b107b5b fix: entity-util/{journal?,whiteboard?,page?} calls
Split up fns of these checks into entity-util, file-entity-util and
common-entity-util so that we have explicit fns for checking in single
or multi-graph contexts. By doing this, were were able to fix more than
20+ fns that were calling general fns in a single graph context e.g.
checking for :block/type in DB graph only namespaces. Some of these
calls were happening on every :block/title lookup so there may be
some perf enhancements
2025-02-19 16:29:26 -05:00
Gabriel Horner
73cff9db44 chore: mv file-specific vars in db dep
to their own file-based.* namespaces. logseq.db.frontend
can now be linted
2025-02-19 16:29:26 -05:00
Gabriel Horner
c4fee6bdeb chore: remove deprecated [:page "FOO"]
refs from sqlite.build as they have been replaced with
an improved [:build/page ...]
2025-02-04 09:12:26 -05:00
Tienson Qin
926d05c185 feat: table columns pinning (#11693)
* Add property :logseq.property.table/pinned-columns

* feat: table column pinning

* enhance: hide :id column by default

---------

Co-authored-by: charlie <xyhp915@qq.com>
2025-01-24 11:17:09 +08:00
Gabriel Horner
5e558e902a fix(dev): debug edn of schema graph had duplicated data in :block/properties 2025-01-21 14:58:41 -05:00
Gabriel Horner
455ccec296 chore: rename sqlite.build edn to remove mention
of schema. schema concept no longer exists and these old
names would be confusing
2025-01-21 14:22:16 -05:00
Gabriel Horner
69f5818604 fix: delete existing graph for properties script
Didn't work when just graph name is given. Also remove test graph
that was accidentally checked in
2025-01-20 12:26:56 -05:00
Tienson Qin
a7e9d073cd chore: rename :property/* to :logseq.property/* 2025-01-15 14:59:08 +08:00
Tienson Qin
c6f7f08707 fix: delete existing db for db-graph-test 2025-01-13 16:44:02 +08:00
Tienson Qin
2c04eb76d7 fix: db tests 2025-01-13 16:20:45 +08:00
Tienson Qin
b9b38ceace fix: db graph test 2025-01-13 10:23:59 +08:00