Commit Graph

306 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
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
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
Tienson Qin
5e1a968530 Merge branch 'master' into feat/db 2025-05-13 18:22:20 +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
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
a3dfa00ccf chore: Add optional verbose test runner for graph-parser dep 2025-04-02 12:12:31 -04: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
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
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
88d74cb71f fix: importing namespaced tags with spaces
Fixes https://github.com/logseq/db-test/issues/210. Also fix invalid
EDN class db-ident related to this
2025-01-23 14:21:26 -05:00
Tienson Qin
20fad17f5d Merge branch 'feat/db' into refactor/block-schema 2025-01-16 01:01:06 +08:00
Tienson Qin
a7e9d073cd chore: rename :property/* to :logseq.property/* 2025-01-15 14:59:08 +08:00
Gabriel Horner
04aa88b43e fix: importer fails when misconfigure journal ref is a property value
Fixes failure Ramses graph is seeing. Also fix typo in test graph
causing blank journal ref
2025-01-14 11:58:37 -05:00
Gabriel Horner
2a4f49e541 enhance: importer can import :logseq.task/scheduled
Follow up to #11654. Fixes
https://test.logseq.com/#/page/677d36f0-5d8f-4b82-85ad-486d81a46e7e
2025-01-14 08:43:21 -05:00
Tienson Qin
2e12918d5c Merge branch 'feat/db' into refactor/block-schema 2025-01-14 14:17:24 +08:00
Gabriel Horner
63eaacdbe1 enhance(dev): import cli and tests print original error's ex-data 2025-01-13 13:27:39 -05:00
Gabriel Horner
1ab621069d enhance: importer displays one notification about ignored files
rather than one notification per file. Also ignore pdf highlight pages
as user graphs shouldn't fail hard on features that aren't imported yet.
This allowed the user graph in
https://github.com/logseq/db-test/issues/191 to import without errors
2025-01-13 11:44:02 -05:00
Tienson Qin
93a7034249 Remove more cases of :block/schema 2025-01-13 10:00:00 +08:00
Gabriel Horner
0cffd64d44 fix: importer failing hard on page ref when
page name has same name as a task. Importer failed because of invalid
refs coming from gp-block/with-page-refs-and-tags which were caused
by get-first-page-by-title returning blocks. In 4f368d5c79,
get-first-page-by-title started returning blocks instead of only pages
so this was undone.  Fixes part of logseq/db-test#191
2025-01-10 16:41:25 -05:00
Gabriel Horner
b8c569f1c4 fix: importer failing and invalid on two page to class conversion cases
Failed for edge case when page converts to class via -p or -P. Page to
class conversions sometimes resulted in invalid :block/tags. Also
cleaned up last of class or page tx that were embedded in db attributes
2025-01-09 20:57:40 -05:00
Gabriel Horner
697147540f fix: importer fails to find classes with property-parent-classes option
when on pages that have the same name as a built-in
2025-01-09 14:51:24 -05:00
Gabriel Horner
cadb00279c fix: exporter :datetime tests failing locally
caused by e522c73fe2
2025-01-07 17:11:51 -05:00
Tienson Qin
8a0a05183e refactor: remove :block/format for db graphs (#11667) 2025-01-05 12:10:47 +08:00
Gabriel Horner
96c1cc5777 fix: unstable deadline tests for exporter 2025-01-03 17:32:01 -05:00
Tienson Qin
f888e163af chore: disable deadline tests because CI local time could be changed 2024-12-26 23:10:16 +08:00
Tienson Qin
704ae4d3f8 fix: tests 2024-12-26 23:01:12 +08:00
Tienson Qin
223928343a Merge branch 'refactor/tag-as-type' into feat/repeated-tasks 2024-12-22 14:46:31 +08:00
Gabriel Horner
dbb84f0327 Merge branch 'feat/db' into refactor/tag-as-type 2024-12-19 15:29:25 -05:00
Gabriel Horner
409107f385 fix: duplicate journal pages when deadline is on same day
as block's page. Switched to using page-names-to-uuids instead
of db since it has the uuids of current page. Fixes logseq/db-test#192
2024-12-19 14:27:37 -05:00
Gabriel Horner
3dff9e26c0 fix: aliasing of namespaced pages broken
Also fixes docs graph warnings about ignored attributes
2024-12-17 22:04:28 +08:00
Gabriel Horner
f58f83eb38 fix: more imported properties and tags
that had extra :logseq.class/Page. Explains the page
count change in this branch
2024-12-17 22:04:28 +08:00
Gabriel Horner
596700c6a3 fix: imported tags aren't both a Page and a Tag
imported tags should behave like app
2024-12-17 22:04:28 +08:00
Gabriel Horner
afab95f8fc fix: imported properties aren't both a Page and Property
imported property should behave like app
2024-12-17 22:04:28 +08:00
Gabriel Horner
ee6fd77c4a enhance(dev): reuse test helper from graph-parser with other deps
Also bring back page test helper which doesn't have file graph assumptions
2024-12-17 22:04:28 +08:00
Tienson Qin
a2a08ef647 fix: graph parser tests 2024-12-17 22:04:28 +08:00
Gabriel Horner
87caca8c68 fix: some imported pages were missing Page class
Also fix error reporting for users wasn't working. Also fix lint
and add another attribute to linter
2024-12-17 22:04:28 +08:00
Tienson Qin
380628650e fix: more tests 2024-12-17 22:04:28 +08:00
Tienson Qin
1269d1c277 fix: more tests 2024-12-17 22:04:28 +08:00
Tienson Qin
a025b4b096 wip: fix exporter tests 2024-12-17 22:04:28 +08:00
Tienson Qin
a97714e7fe fix: tests 2024-12-17 22:04:27 +08:00
Tienson Qin
c5fa699db0 Replace more :block/type 2024-12-17 22:04:27 +08:00
Gabriel Horner
af044ddb1e fix: remove unnecessary block/refs task calculations
Part of LOG-3198. Also fix test assertion and add another
2024-12-04 15:57:55 -05:00