2776 Commits

Author SHA1 Message Date
Gabriel Horner
1ba4f57abf fix: sorting by :date prop in table
Fixes https://github.com/logseq/db-test/issues/287
2025-05-29 09:17:34 -04:00
Gabriel Horner
04190d22a3 fix(regression): query builder for multiple property types including :checkbox
Fixes https://github.com/logseq/db-test/issues/288. Regression caused by
572d6f4390 . Confirmed this bug was
affecting the following non-ref, non-string property types:
:checkbox, :any, :keyword and :raw-number
2025-05-28 14:59:26 -04:00
Gabriel Horner
5d377787ec fix: regression on fixing dupe block ids
fixes graph-parser tests
2025-05-29 00:39:51 +08:00
Tienson Qin
4ed15c7dac fix: extracted-block-ids should be existing block from another page
or extracted blocks from the current file.
2025-05-29 00:39:51 +08:00
Tienson Qin
33b6433dc9 wip: move file parse to worker 2025-05-29 00:39:51 +08:00
rcmerci
193e603547 fix: escape more regex meta chars
add related testcases
2025-05-28 14:40:35 +08:00
Gabriel Horner
f9e6370f62 fix: large var in db dep 2025-05-27 12:22:57 -04:00
Gabriel Horner
38e05aa6b8 enhance: new graph from script saves git sha in :kv/value
Also for
https://test.logseq.com/#/page/6835e455-69f6-4bbd-9865-b76fa57ce457
2025-05-27 12:16:15 -04:00
Gabriel Horner
e7583b8b8c enhance: save git sha of new graph in kv/value
Will be useful for pinpointing if certain graphs are impacted by bugs.
graph-initial-schema-version is helpful but can stay the same for
awhile.
Closes
https://test.logseq.com/#/page/6835e455-69f6-4bbd-9865-b76fa57ce457
2025-05-27 12:14:20 -04:00
Tienson Qin
05597552da chore: update clj-fractional-indexing 2025-05-27 04:54:58 +08:00
Tienson Qin
973ec2b240 chore: bump logseq/clj-fractional-indexing 2025-05-27 01:16:10 +08:00
Gabriel Horner
40254673a5 fix: existing user class failing import when
also specific in :build/property-classes
2025-05-26 10:29:51 -04: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
Tienson Qin
65f5b9cd64 enhance(ux): tag properties using select 2025-05-22 19:03:24 +08:00
rcmerci
75a053f918 fix: nbb cannot use glogi 2025-05-22 15:39:17 +08:00
rcmerci
ec7d488d49 fix: add glogi deps 2025-05-22 15:36:36 +08:00
rcmerci
5e60ce853d test(e2e): dump console logs when test failed 2025-05-22 15:33:33 +08:00
Tienson Qin
021a84bcf2 fix: don't run id-ref->title-ref for file graphs 2025-05-22 14:54:34 +08:00
Tienson Qin
17496cfbb1 fix: don't create block for invalid number property value 2025-05-21 20:28:18 +08:00
rcmerci
533ca23610 fix: schema of :logseq.property/empty-placeholder 2025-05-21 15:27:06 +08:00
Tienson Qin
c18af313b8 enhance: put selected choices on top and ensure stable order 2025-05-21 03:01:31 +08:00
Tienson Qin
d2b2eb3b48 fix: wrong backlinks number in all pages 2025-05-21 01:08:26 +08:00
rcmerci
120e6af065 chore: simplify some->> arg 2025-05-21 00:44:19 +08:00
Tienson Qin
fd8a939fc1 fix: recur-replace-uuid-in-block-title when there're ids in title 2025-05-20 23:01:58 +08:00
Gabriel Horner
30f71b5722 fix: new graphs invalid after recent property/empty-placeholder change 2025-05-20 09:06:19 -04:00
rcmerci
3fb4ae74ad fix: add :block/uuid to :logseq.property/empty-placeholder entity (2) 2025-05-20 16:03:41 +08:00
rcmerci
3c4bd0643a fix: add :block/uuid to :logseq.property/empty-placeholder entity 2025-05-20 15:54:35 +08:00
Tienson Qin
5746e03a0a chore: downgrade persistent-sorted-set to 0.0.8
CI error https://github.com/logseq/logseq/actions/runs/15124002453/job/42512483343
2025-05-20 06:07:34 +08:00
Tienson Qin
789834a9af fix: db missing addresses
This commit uses sql to ensure deleting addresses are not referenced
in any row.
2025-05-20 05:57:12 +08:00
Tienson Qin
6182c2f36a fix: e2e tests 2025-05-20 01:44:44 +08:00
Gabriel Horner
dd94fbda9c fix: lints 2025-05-19 10:06:17 -04:00
Gabriel Horner
929ae21d21 enhance: only run export patch for initial version up to 64.8
One less postwalk for large graphs. Dunno how long this patch will be
in. For https://github.com/logseq/db-test/issues/278
2025-05-19 10:02:51 -04:00
Tienson Qin
b8a831b38c fix: recursively replace ref ids with title for search/prop value 2025-05-19 21:54:10 +08:00
Tienson Qin
9ceefde5b7 fix: show deep reference title instead of id when searching blocks 2025-05-19 21:54:10 +08:00
Tienson Qin
b473a20874 fix: can't remove hidden property pages 2025-05-19 17:57:38 +08:00
rcmerci
2d67629276 enhance(rtc): show download logs when init downloading graph 2025-05-18 01:56:00 +08:00
Gabriel Horner
b9c771fe7a fix: lint 2025-05-16 15:54:08 -04:00
Gabriel Horner
1f685deff7 fix: graph export for invalid keywords
Fixes https://github.com/logseq/db-test/issues/278.
Can remove later if there's a migration
2025-05-16 15:52:07 -04:00
Gabriel Horner
6c07d8838e fix: invalid keywords can be created by user
In https://github.com/logseq/db-test/issues/278, user has graph that
contains invalid edn keyword caused by name part of keyword starting
with a number e.g. :user.property/2ndsomething. Added thorough tests
based on reference doc for both nbb and cljs versions of buggy fn. For
cljs version, allowed a few more special characters in as they've
all been confirmed to be valid edn
2025-05-16 14:02:17 -04:00
Gabriel Horner
a16eb2eb10 chore: bump exporter test time
exporter taking little longer on docs graph with recent
change where advanced query rewrite is included in test
2025-05-16 13:46:26 -04:00
Gabriel Horner
edae0853a3 fix: app failing on creating properties
:cljs conditional still needs process check for web
2025-05-16 12:56:47 -04:00
Gabriel Horner
a0ee41ca86 fix: db graph cljs tests need repeatable idents
Also remove unused ldb fn
2025-05-16 11:44:16 -04:00
Gabriel Horner
28675be54b enhance(dev): cljs tests can run with or without repeatable idents 2025-05-16 11:29:22 -04:00
Tienson Qin
1b3ce6fa4d fix: don't count block created-by as refs 2025-05-16 23:23:54 +08:00
Gabriel Horner
6cddee4f5a chore: bump nbb test runner to latest feature
now that PR is merged
2025-05-16 08:48:44 -04:00
Gabriel Horner
c308e04b93 refactor: Ensure all ::sqlite-export keys aren't passed to sqlite.build
Enumerating each namespaced key was error prone and too tightly coupled
2025-05-15 17:35:33 -04:00
Gabriel Horner
bd115eef0f enhance: add import option to allow existing pages to keep properties 2025-05-15 17:25:18 -04:00
Gabriel Horner
f896a774ed enhance(dev): CLI built db graphs
have same config.edn as UI ones. Also improve over hack to add
additional config now that rewrite-clj is available
2025-05-15 14:06:54 -04:00
Gabriel Horner
dda13d61b9 enhance: improved config.edn for new db graphs
New db config.edn don't include any of the file graph keys or comments.
Previously all comments were confusingly left lying around.
Also moved conversion of imported config.edn so that CLI can use it.
Also temporarily moved one dep to
https://github.com/nextjournal/nbb-test-runner/pull/2 until the PR is
merged
2025-05-15 12:14:46 -04:00
Gabriel Horner
a83285f705 Revert "enhance: move :block/title to page-or-block-attrs"
This commit causing graph invalid errors and failing tests.
This reverts commit a02e842ea3.
2025-05-15 12:11:01 -04:00