Skip to content

fix(import): do not convert tags that collide with built-in names - #12961

Closed
LZong-tw wants to merge 1 commit into
logseq:masterfrom
LZong-tw:fix/import-built-in-tag-name-collision
Closed

LZong-tw wants to merge 1 commit into
logseq:masterfrom
LZong-tw:fix/import-built-in-tag-name-collision

Conversation

@LZong-tw

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • pnpm exec nbb-logseq -cp test -m nextjournal.test-runner -v logseq.graph-parser.exporter-test/import-does-not-corrupt-built-in-property-when-tag-name-collides (pass)
  • Related exporter tests with convert-all-tags / tag-classes (pass)
  • CLI: db_import.cljs minimal graph with #scheduled and -a -V → Valid after fix
  • Optional: Desktop Import → File to DB graph with Import all tags on a file containing #scheduled

Fixes logseq/db-test#1009

@LZong-tw

LZong-tw commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Hi Logseq team 👋 A gentle ping on this one. It stops the importer from converting tags whose names collide with built-in names. It still merges cleanly on master, and I'm happy to rebase or adjust anything if that helps review.

Import all tags reused built-in property uuids for tags like #scheduled,
corrupting those entities into invalid hybrids. Skip converting such tags
to classes so they stay page refs. Add regression test for db-test#1009.
@cursor
cursor Bot force-pushed the fix/import-built-in-tag-name-collision branch 2 times, most recently from 904451d to e8a05ba Compare October 12, 2026 07:51
@LZong-tw

Copy link
Copy Markdown
Contributor Author

Hi Logseq team 👋 I've rebased this onto the latest master and resolved the conflicts. It stops the importer from corrupting built-in properties when a tag name collides with one. Happy to adjust anything if needed!

Copy link
Copy Markdown
Contributor

Closing as a duplicate of #13886, which covers the same bug more completely. Thanks!

@tiensonqin tiensonqin closed this Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DB Graph Importer: user tag colliding with built-in property name (scheduled) produces invalid, undeletable entity

2 participants