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
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
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
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
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
Tienson Qin
a02e842ea3
enhance: move :block/title to page-or-block-attrs
...
Because both page and block require `:block/title`.
2025-05-15 22:46:19 +08:00
Tienson Qin
f5efa2d638
fix: remove invalid blocks that have no dispatch key
2025-05-15 22:36:00 +08:00
Gabriel Horner
138e56aedf
fix: cljs test by adding dep I forgot to add
...
Also ensure all deps' deps.edn have consistent and clear comments
delineating nbb-logseq vs other deps
2025-05-14 16:24:32 -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
Gabriel Horner
0dd89ded24
fix: large var in deps db
2025-05-13 12:00:38 -04:00
Gabriel Horner
15a83f2026
fix: import of existing pages and their related nodes
...
Related nodes of imported existing pages weren't being updated to
associate with existing page
2025-05-13 11:42:13 -04: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
Tienson Qin
effaacbd06
fix: group list items by page when there's no group specified yet
2025-05-13 21:47:52 +08:00
Gabriel Horner
4a0225b7ee
fix: query function for db graphs
...
Fixes logseq/db-test#203 . Also removed unused helpers
2025-05-12 15:51:50 -04:00
Gabriel Horner
9b1a565dd0
Chore: Remove slides ( #11854 )
...
* chore: remove slide feature and reveal mentions
Will remove reveal js dep in later commit
* chore: remove built-in property that was only for slides
2025-05-12 13:32:24 -04:00
Gabriel Horner
281ce7e0e0
refactor: remove :name from built-in-properties
...
Remove it from built-in-properites as very few properties used
it and no new properties will use. :name is only used for file graph
property ids for looking up ids via get-pid or for the db graph import
2025-05-12 12:50:51 -04:00
Gabriel Horner
c28fe3194c
chore: cleanup after #11858
...
Remove unused fn
2025-05-12 09:47:40 -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
33321e6b9a
fix: remove needless resolves
...
and fix deps lint
2025-05-09 14:02:05 -04:00
Tienson Qin
ed648af845
fix: cycle refs
2025-05-10 00:50:06 +08:00
Tienson Qin
3d9cb9238c
fix: mutual block reference
...
Also, :block/title shouldn't replace non-page block id references
because it could be recursive.
2025-05-09 21:23:50 +08:00
Tienson Qin
8ba98a32a8
fix: can't select values from view filter
2025-05-06 12:51:46 +08:00
Gabriel Horner
4f65a00c68
refactor: rename :logseq.task properties to :logseq.property
...
These are the only built-in properties that don't start with
:logseq.property
2025-05-06 12:29:09 +08:00
Tienson Qin
bca0d5106f
fix: can toggle group by page for references
2025-05-04 12:32:21 +08:00
Gabriel Horner
c30cc3668a
enhance: add current schema version to :graph edn export
...
Will be helpful for debugging and possibly migrating older exports
2025-05-02 15:28:31 -04:00
Gabriel Horner
618b341926
enhance: error message to help locate
...
invalid data for exports.
See
https://github.com/logseq/db-test/issues/263#issuecomment-2840210325 for
an example
2025-05-02 13:30:50 -04:00
Gabriel Horner
79e4f54da8
fix: property table and property "All" queries
...
inconsistently treat empty values as being a property value. Empty
value directly on a node was treated as a property value but not if the
node obtained the empty property value via a class.
Fixes https://github.com/logseq/db-test/issues/230#issuecomment-2726323364
2025-05-02 10:49:19 -04:00
Gabriel Horner
d83bf1eb53
refactor: rename repeat properties' namespaces and names
...
to reflect they are used outside of tasks
2025-05-02 17:17:49 +08:00
Tienson Qin
d3b2f99b2e
fix(regression): table properties are not displayed for file graphs
...
fixes https://github.com/logseq/db-test/issues/265
2025-05-02 10:54:47 +08:00
Gabriel Horner
539d79fd3f
fix: view filtering doesn't work for 3 property types
...
For :default, :number and :url, we were filtering by the entity uuid,
not entity content, so only the first entity was matched.
Fixes
https://github.com/logseq/db-test/issues/264#issuecomment-2840535527
2025-04-30 10:49:15 -04:00
Gabriel Horner
faf872ec47
fix: default values of property don't load
...
Couldn't see a user's property default value. Also caused visible bug
with deadline popup
Fixes
https://test.logseq.com/#/page/68112b33-17bb-4fb2-876e-48380afdb7b1
2025-04-29 16:00:52 -04:00
Gabriel Horner
0840d05d6a
fix: title when grouping by empty property value
2025-04-29 12:10:03 -04:00
Gabriel Horner
846e4bf305
fix: grouping by readable property values like :default type
...
Fixes https://github.com/logseq/db-test/issues/264
2025-04-29 12:05:31 -04:00
Tienson Qin
8a1d90f129
fix: load whiteboards for file graphs
2025-04-29 17:49:37 +08:00
Gabriel Horner
d3b7289b20
refactor: split logseq.db.common.sqlite into 2 namespaces
...
The majority of this ns is focused on graph initilization and
entity lazy loading so split this out to new ns,
logseq.db.common.initial-data. Originally
initialization was tied to sqlite util fns but it has not made
sense for awhile to think of them as sqlite util fns
2025-04-28 12:55:16 -04:00