You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Whenever I refresh the Notion API cache, the project image links in the database are getting deleted or overwritten. This issue is likely related to how the cache is refreshed and entries not present in the current Notion API query are being removed from the database, along with their associated image links. This results in images disappearing from the project pages even though they still exist in Notion.
Actions:
Investigate how entries are being compared between the Notion API and the database when the cache is refreshed.
Ensure that when an entry is missing from the current Notion API query, its associated image links are not deleted unless the project is explicitly removed from Notion.
Implement a validation mechanism that safely handles entries not present in the latest Notion API response but are still valid in the database.
Test with both valid and missing image links to ensure the cache refresh works as expected without losing data.
Acceptance Requirements:
Refreshing the Notion API cache does not result in image links being removed from the database if the project still exists in Notion.
Projects removed from the Notion API are correctly handled without affecting other project image links.
A log or error message is generated when an image link is about to be deleted due to a missing Notion entry, ensuring visibility into the process.
No image links are missing after a successful refresh of the cache.
The text was updated successfully, but these errors were encountered:
Description:
Whenever I refresh the Notion API cache, the project image links in the database are getting deleted or overwritten. This issue is likely related to how the cache is refreshed and entries not present in the current Notion API query are being removed from the database, along with their associated image links. This results in images disappearing from the project pages even though they still exist in Notion.
Actions:
Acceptance Requirements:
The text was updated successfully, but these errors were encountered: