Skip to content

fix: ignore notes belonging to deleted notebooks#27

Merged
Harsh16gupta merged 1 commit into
masterfrom
bugfix/active-note-filtering
Jul 9, 2026
Merged

fix: ignore notes belonging to deleted notebooks#27
Harsh16gupta merged 1 commit into
masterfrom
bugfix/active-note-filtering

Conversation

@Harsh16gupta

@Harsh16gupta Harsh16gupta commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

I was testing the plugin locally and found this issue. I had only 50 notes, and the plugin fetched 100 notes.
Screenshot From 2026-07-08 18-23-55

Problem: When notes or notebooks are deleted, Joplin retains the note records in the SQLite database temporarily for synchronization tracking. Calling joplin.data.get(['notes']) retrieves all note records (including these orphaned/deleted notes), causing the plugin to process and display deleted notes that do not appear in the active Joplin notebook tree.

@Harsh16gupta Harsh16gupta requested a review from HahaBill July 8, 2026 14:17
@Harsh16gupta Harsh16gupta self-assigned this Jul 8, 2026
@Harsh16gupta

Copy link
Copy Markdown
Collaborator Author

This one is a simple bug fix and the code is also clean and the scope is limited. also I have tested the changes so merging this one.

@Harsh16gupta Harsh16gupta merged commit 3f5eb81 into master Jul 9, 2026
1 check passed
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.

1 participant