Commit Graph

831 Commits

Author SHA1 Message Date
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
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
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
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
f34a8d57a0 fix: whitespace on advanced query string import
Fixes https://github.com/logseq/db-test/issues/193
2025-05-14 16:06:23 -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
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
5e1a968530 Merge branch 'master' into feat/db 2025-05-13 18:22:20 +08: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
b985020d1f refactor: mv file graph model fns to their own ns
All these fns are only used by file graphs. Most only act on file only
attributes e.g. :block/file, :block/pre-block? and :block/namespace
2025-05-09 02:51:54 +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
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
Gabriel Horner
4ad4944b4e fix: for file graphs, tags with blank space in the namespace parent
creates entities with nil :block/title to be created. This
created unexpected bugs in the UI e.g. all pages and
caused duplicate content to appear.
Example from test graph: 'tags:: [[Some / Namespace ]]'
Fixes
https://test.logseq.com/#/page/68017fb5-7b9c-448a-9f64-6bb8d8669396
2025-04-18 12:29:06 -04:00
Gabriel Horner
04a93f6613 chore: mv db or file graph specific ldb fns to
db or file graph namespaces. Follow up to
https://github.com/logseq/logseq/pull/11774#discussion_r2035354875 to
help avoid bugs that are hard to spot b/c of no organization
2025-04-15 22:45:16 -04:00
Tienson Qin
a9e38f0e0d Merge branch 'feat/db' into perf/app-start 2025-04-14 17:48:32 +08:00
rcmerci
c591598d22 enhance: move adding created-by logic to pipeline-hook 2025-04-11 21:49:03 +08:00
Gabriel Horner
cd5385a0c3 chore: mv graph view ns to frontend ns
Graph view is fairly tied to the frontend, has styling concerns in the
ns and doesn't have use cases outside the app. frontend.common is
the parent ns for frontend code to reuse across UI threads.
Didn't move db-view because there are use cases for generating view
entities outside the app and there's no styling related code in it
2025-04-11 09:30:14 -04:00
Tienson Qin
f5342c3192 Merge branch 'feat/db' into perf/app-start 2025-04-11 09:19:13 +08:00
rcmerci
ff40821994 feat(rtc): add property :logseq.property/created-by-ref 2025-04-10 19:22:16 +08:00
Tienson Qin
4169f20a28 Merge branch 'feat/db' into perf/app-start 2025-04-07 20:06:45 +08:00
Gabriel Horner
f4c5e6b0bb Add time assertion on largest test import to prevent regression 2025-04-04 08:34:31 -04:00
Gabriel Horner
26cbd74cd1 enhance(perf): speed up db graph importer for larger graphs
Use atom cache based on tx instead of full db lookup to create
all-existing-page-uuids
2025-04-04 08:34:31 -04:00
Gabriel Horner
a3dfa00ccf chore: Add optional verbose test runner for graph-parser dep 2025-04-02 12:12:31 -04:00
Tienson Qin
1aca680ae4 Merge branch 'feat/db' into perf/app-start 2025-03-31 21:53:37 +08:00
Tienson Qin
4c54427640 move graph view data handler to deps/db 2025-03-31 19:38:02 +08:00
Gabriel Horner
fecb42f49d fix(dev): deps scripts not handling relative and absolute paths for graphs
transact and create didn't handle relative paths. All scripts except
import didn't handle absolute paths
2025-03-17 11:09:44 -04:00
Gabriel Horner
99c89ec3be chore: bump nbb-logseq to include tc/to-date 2025-03-10 15:32:29 -04:00
Tienson Qin
22743b4952 Merge branch 'feat/db' into feat/text-template 2025-03-08 07:03:02 +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
Tienson Qin
1aeef85e4a feat: /template command 2025-03-02 15:23:13 +08: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
Tienson Qin
d11bdc44d9 fix: File graphs repeatedly add collapsed properties 2025-02-24 17:20:44 +08:00
Gabriel Horner
05037c456e Merge branch 'feat/db' into enhance/reference-view 2025-02-21 15:33:40 -05:00
Tienson Qin
2346df237c fix(regression): Query tables look smushed together
fixes LOG-3220
2025-02-20 22:05:10 +08:00
Tienson Qin
20d483fa30 Merge branch 'feat/db' into enhance/reference-view 2025-02-20 17:39:46 +08: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
18db6b1937 chore: mv db namespaces common to both graphs to logseq.db.common 2025-02-19 16:29:26 -05:00
Gabriel Horner
753abd2732 fix: importer failing when property-pages/* config present
Fixes https://github.com/logseq/db-test/issues/220. Also removed
unused :extract-refs-from-property-value-fn
2025-02-19 10:03:53 -05:00
Gabriel Horner
f597f7c9c0 chore: mv handler.common.file to file-based
now that this ns is only used by file graph namespaces.
This is important as it then makes explicit that another 500+ lines
in the graph-parser are file-graph specific. Also added docs to most
graph-parser namespaces to make explicit which are file-graph specific
and not
2025-02-17 14:02:49 -05:00
Gabriel Horner
a4aacf022d chore: use medley/dissoc-in instead of copied version
Can rely on medley as it is nbb compatible
2025-02-13 17:50:20 -05:00
Gabriel Horner
8550b48f17 enhance(dev): add test helper for ent properties
Was using them across namespaces and they were needlessly different
2025-01-28 16:00:38 -05:00
Gabriel Horner
ef93609df0 enhance(dev): build EDN supports logseq idents for :build/tags
Also cleanup more more tests that have been simplified by recent test
helper improvement
2025-01-27 17:03:26 -05:00
Gabriel Horner
63184bc3cc fix: lint and test broken by previous commit 2025-01-27 16:28:51 -05:00
Gabriel Horner
57b4376425 enhance(dev): test helper returns entity
instead of harder to inspect and use d/q results
2025-01-27 15:48:12 -05:00
Gabriel Horner
9b223be0a8 enhance(dev): add util for logseq class idents 2025-01-27 14:28:44 -05:00