Repository navigation
Name imported tag pages from title - #13307
Merged
Merged
Conversation
tiensonqin
marked this pull request as ready for review
September 19, 2026 11:26
User tag idents include a random suffix. Import was using that ident name for :block/name, so a tag titled "warning" became "warning-a04sq4ln". Derive the page name from :block/title instead, matching in-app tags and imported properties. Co-authored-by: Tienson Qin <[email protected]>
tiensonqin
force-pushed
the
logseq/imported-tag-page-name-21c7
branch
from
September 19, 2026 11:51
ef740aa to
d3a2d2d
Compare
1 of 2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes logseq/db-test#1212
Problem
Importing a
:graph-humanEDN export created every user tag page with:block/namederived from the tag's:db/identinstead of from its title. User tag idents carry a random suffix, so a tag titledwarningwas imported aswarning-a04sq4ln. Tags created in the app keep:block/nameas the sanitized title (warning).Change
build-classes-txnow names class/tag pages from:block/titlewhen present, falling back to the ident name only for title-less class defs. This matchesbuild-new-propertyand in-app tag creation. Existing exports that omit:block/nameimport correctly.Tests
Added
build-class-page-name-from-titlecovering::graph-humanimport of the same shapeBoth assert
:block/nameequals the human title.Verified with nbb-logseq:
logseq.db.sqlite.build-test+export-test: 54 tests, 225 assertions, 0 failuresdeps/dbunit tests (-e long): 154 tests, 550 assertions, 0 failuresLOGSEQ_EXPORT_HUMAN=1export tests (-e long): 37 tests, 164 assertions, 0 failures