Repository navigation
Refuse renaming a page to a case variant of another page - #13516
Merged
Merged
Conversation
Contributor
|
Fixed in cb375dd — |
Rename/save-block uniqueness now matches create: ordinary pages collide on :block/name for the same parent or among top-level pages. Tags and properties stay case-sensitive. Pages that share names under different parents remain allowed. Co-authored-by: Tienson Qin <[email protected]>
validate-block-tag-returns-notification-payload now includes the page lookup name so rename/create uniqueness can find the existing Object page. Co-authored-by: Tienson Qin <[email protected]>
tiensonqin
force-pushed
the
logseq/fix-page-rename-case-collision-9648
branch
from
September 29, 2026 05:58
12e171f to
ed727c3
Compare
Extract colliding-tag-ids and throw-duplicate so validate-unique-for-page stays under the 55-line lint max. Co-authored-by: Tienson Qin <[email protected]>
devin-ai-integration Bot
pushed a commit
that referenced
this pull request
Oct 1, 2026
* fix(outliner): refuse rename to a case-variant page name Rename/save-block uniqueness now matches create: ordinary pages collide on :block/name for the same parent or among top-level pages. Tags and properties stay case-sensitive. Pages that share names under different parents remain allowed. Co-authored-by: Tienson Qin <[email protected]> * fix(test): set :block/name on page used for tag uniqueness validate-block-tag-returns-notification-payload now includes the page lookup name so rename/create uniqueness can find the existing Object page. Co-authored-by: Tienson Qin <[email protected]> * fix(outliner): check all name-collision candidates and merge duplicate queries * fix(outliner): keep i18n keys as map literals for translation lint * fix(outliner): split page uniqueness helpers under large-vars limit Extract colliding-tag-ids and throw-duplicate so validate-unique-for-page stays under the 55-line lint max. Co-authored-by: Tienson Qin <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
This was referenced Oct 6, 2026
devin-ai-integration Bot
pushed a commit
that referenced
this pull request
Oct 8, 2026
* fix(outliner): refuse rename to a case-variant page name Rename/save-block uniqueness now matches create: ordinary pages collide on :block/name for the same parent or among top-level pages. Tags and properties stay case-sensitive. Pages that share names under different parents remain allowed. Co-authored-by: Tienson Qin <[email protected]> * fix(test): set :block/name on page used for tag uniqueness validate-block-tag-returns-notification-payload now includes the page lookup name so rename/create uniqueness can find the existing Object page. Co-authored-by: Tienson Qin <[email protected]> * fix(outliner): check all name-collision candidates and merge duplicate queries * fix(outliner): keep i18n keys as map literals for translation lint * fix(outliner): split page uniqueness helpers under large-vars limit Extract colliding-tag-ids and throw-duplicate so validate-unique-for-page stays under the 55-line lint max. Co-authored-by: Tienson Qin <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
devin-ai-integration Bot
pushed a commit
that referenced
this pull request
Oct 8, 2026
* fix(outliner): refuse rename to a case-variant page name Rename/save-block uniqueness now matches create: ordinary pages collide on :block/name for the same parent or among top-level pages. Tags and properties stay case-sensitive. Pages that share names under different parents remain allowed. Co-authored-by: Tienson Qin <[email protected]> * fix(test): set :block/name on page used for tag uniqueness validate-block-tag-returns-notification-payload now includes the page lookup name so rename/create uniqueness can find the existing Object page. Co-authored-by: Tienson Qin <[email protected]> * fix(outliner): check all name-collision candidates and merge duplicate queries * fix(outliner): keep i18n keys as map literals for translation lint * fix(outliner): split page uniqueness helpers under large-vars limit Extract colliding-tag-ids and throw-duplicate so validate-unique-for-page stays under the 55-line lint max. Co-authored-by: Tienson Qin <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
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.
Problem
Renaming a page to a case variant of another ordinary page (for example Bar →
foowhen Foo already exists) was accepted. Create already treats those as the same page via:block/name/page-name-sanity-lc, so the graph ended up with two live pages that share one lookup name.[[foo]]then resolved to the oldest Foo.Change
validate-unique-for-pagenow matches create for ordinary pages::block/name(case-insensitive), not exact:block/title.Page-only collisions notify with
Another page named "{1}" already exists.(:page.validation/duplicate-name). Tagged-page collisions still use:page.validation/duplicate.Tests
logseq.outliner.validate-test: top-level, tagged, namespaced sibling, different-parent, and same-page case-variant cases.logseq.outliner.page-test: createfoostill opens Foo; rename validation refuses Bar →foo.frontend.worker.db-core-test/validate-block-tag-returns-notification-payload: existing page fixture now includes:block/nameso tag uniqueness can find it.deps/outlinernbb suite: 136 tests, 685 assertions, 0 failures.frontend.worker.db-core-test: 147 tests, 1601 assertions, 0 failures.Fixes logseq/db-test#1344