[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plugin API] .insertBatchBlock: visually LOSING blocks in special case with option keepUUID: true #11426

Open
1 task done
stdword opened this issue Jul 18, 2024 · 0 comments
Assignees
Labels
plugins :type/bug Something isn't working. Affects daily use.

Comments

@stdword
Copy link
Contributor
stdword commented Jul 18, 2024

Search first

  • I searched and no similar issues were found

What Happened?

Related issues:

Demo

Reproduce the Bug

  1. Create some block with any content
  2. Create another block under the first one (as sibling) with content "block after"
  3. Copy the UUID of the first block
  4. Insert it to the API call (replacing the text "INSERT UUID HERE") and execute it:
    logseq.api.insert_batch_block('INSERT UUID HERE', {content: 'A', properties: {id: '471b3419-3479-40b8-a84c-be0a4c747165'}, children: [{content: 'B', properties: {id: "46a6eba1-57bc-4c3c-aa03-803fe56b71e8"}}, {content: 'A & B refs: ((46a6eba1-57bc-4c3c-aa03-803fe56b71e8)) ((471b3419-3479-40b8-a84c-be0a4c747165))'}]}, {sibling: true, keepUUID: true})
    
  5. Result:
    • Inserted node won't appear visually (but all of them are inserted)
    • The second block "block after" became invisible (but still present in the graph)

NOTE

  • This API call is the minimal example. I don't know the exact reason of this strange behaviour. Other cases I've tested works correctly. This is the BAD one.

Expected Behavior

Normal API work and visibility of all blocks.

Desktop or Mobile Platform Information

MacOS v14.5
Logseq Desktop v0.10.9

@xyhp915 xyhp915 added plugins :type/bug Something isn't working. Affects daily use. labels Jul 19, 2024
@xyhp915 xyhp915 self-assigned this Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugins :type/bug Something isn't working. Affects daily use.
Projects
None yet
Development

No branches or pull requests

2 participants