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

Address inherent Notion last_edited_time minute rounding if possible #116

Open
earlAchromatic opened this issue Aug 12, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request notion not working but having to do with how notion works, not ncms

Comments

@earlAchromatic
Copy link
Contributor

It seems like Notion updates only get recorded each minute. So if you make a change in Notion, pull into ncms, then make another change all within the short time frame (1 min) then the second update is not detected by ncms because the last_edited_time isn't getting updated by Notion. It's possible there is nothing you can do about this but plead with Notion and or batch your updates in Notion wisely, which is probably easier to do when you are developing content for the website, not ncms itself.

Very relevant:
https://developers.notion.com/changelog/last-edited-time-is-now-rounded-to-the-nearest-minute

@earlAchromatic earlAchromatic added the notion not working but having to do with how notion works, not ncms label Aug 12, 2023
@earlAchromatic
Copy link
Contributor Author

One way to hedge against this is to have a latent period after any given page has been updated where if a pull happens and the page is within the latent period, we assume it needs the update (since it could but we have no way of knowing) and download the new data. This way you never end up in a situation where you made an update but ncms doesn't pull the new data.

@earlAchromatic earlAchromatic added the enhancement New feature or request label Aug 13, 2023
@earlAchromatic earlAchromatic self-assigned this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request notion not working but having to do with how notion works, not ncms
Projects
None yet
Development

No branches or pull requests

1 participant