dvanoni / notero

A Zotero plugin for syncing items and notes into Notion
https://download.notero.vanoni.dev
MIT License
2.34k stars 102 forks source link

Changing database ID does not work #241

Closed dkamaitis closed 2 weeks ago

dkamaitis commented 1 year ago

Describe the issue Changing Database ID to a new one does not work. Notero still tries to sync using the old Notion Database ID.

To Reproduce Steps to reproduce the behavior:

  1. Create/copy Notion database.
  2. Paste new Database ID into Notero preferences.
  3. Sync any enabled collection.
  4. See changes in the old Notion database.

Expected behavior Changes synced to a new Notion database.

Screenshots N/A

Additional context N/A

dvanoni commented 1 year ago

Hi @dkamaitis, thanks for reporting this issue!

I see what's happening here. When a Zotero item has been synced to Notion, a link to the Notion page is saved in Zotero so that any future updates to the item will update the same page in Notion instead of creating a new page. Unfortunately, there's currently no logic to check that the page is still in the database specified by the database ID in the Notero preferences.

I'd like to implement a proper fix for this, but in the meantime, here are some workarounds I can think of:

dkamaitis commented 1 year ago

Hi @dvanoni, thanks for the detailed explanation - very much appreciate your work on Notero.

github-actions[bot] commented 2 weeks ago

Included in release v0.6.6