logseq / logseq/db-test

Can't rename page title to title of a recently deleted page

Open
#1,075 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
28
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Search first

- [x] I searched and no similar issues were found

### What Happened?

Cannot rename a page title to the the title of a page is just deleted

### Reproduce the Bug

1. Create page called [[Foo]] and another page [[Foo Bar]]
2. Delete [[Foo Bar]]
3. Try to rename [[Foo]] to [[Foo Bar]]
4. See error message that page [[Foo Bar]] already exists, even though it's not showing up in search nor in list of pages

### Expected Behavior

Should be able to rename an existing page to a page that was deleted

### Screenshots

Image

### Desktop or Mobile Platform Information

Latest test.logseq.com in Chrome incognito on Mac

### Additional Context

_No response_

### Are you willing to submit a PR? If you know how to fix the bug.

- [ ] I'm willing to submit a PR (Thank you!)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the rename flow on test.logseq.com in Chrome using the four steps in the report, confirming that the deleted page is absent from search and the page list. Trace the rename validation and deleted-page handling, then verify that renaming [[Foo]] to [[Foo Bar]] succeeds after [[Foo Bar]] is deleted.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.