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

New items sometimes don't get marked as attachments #582

Open
fluffy-critter opened this issue Dec 3, 2024 · 0 comments
Open

New items sometimes don't get marked as attachments #582

fluffy-critter opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fluffy-critter
Copy link
Collaborator

Expected Behavior

Items which are attachments should be attached once they have IDs assigned

Current Behavior

When bulk-importing a bunch of entries, if an item references other items as attachments but those other items have not yet had IDs generated, the Attach directive is ignored.

Possible Solution

When the indexer sees a new item with missing attachments, it should be scheduled for a fixup pass.

Steps to Reproduce (for bugs)

  1. Create a bunch of new items, e.g. root.md item1.md item2.md, where root.md has headers like:

    Attach: item1.md
    Attach: item2.md
    
  2. Index the new items

Context

@fluffy-critter fluffy-critter added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant