Skip to content
New issue

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

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

Already on GitHub? # to your account

Changing database ID does not work #241

Closed
dkamaitis opened this issue Mar 25, 2023 · 3 comments · Fixed by #604 or #605
Closed

Changing database ID does not work #241

dkamaitis opened this issue Mar 25, 2023 · 3 comments · Fixed by #604 or #605
Labels
bug Something isn't working

Comments

@dkamaitis
Copy link

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 dvanoni added the bug Something isn't working label Apr 1, 2023
@dvanoni
Copy link
Owner

dvanoni commented Apr 1, 2023

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:

  • Delete the "Notion" links attached to synced Zotero items and then sync again.
  • Delete the pages in the old Notion database and then sync again. You have to permanently delete the pages in order for this to work—i.e. you have to delete the pages from the Trash.
    • I think the easiest way to do this is to bulk delete the pages from a table view of your database, and then navigate to the "In current page" view of the Trash to find the pages to permanently delete.
    • See this Notion documentation for more details.

@dkamaitis
Copy link
Author

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

Copy link
Contributor

Included in release v0.6.6

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Archived in project
2 participants