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

Why are collection endpoints' "since" timestamp inclusive? #496

Open
p3v9d5ui opened this issue Oct 14, 2023 · 1 comment
Open

Why are collection endpoints' "since" timestamp inclusive? #496

p3v9d5ui opened this issue Oct 14, 2023 · 1 comment

Comments

@p3v9d5ui
Copy link

This may not be the best place to raise this issue, because the problem is with the underlying REST API, and not this node.js client, but I'm not aware of any other Pipedrive developer forum or issues list. Please let me know if there is a better place to post this issue.

The beta collection endpoints, such as /v1/persons/collection have a since parameter which filters objects created or updated since that timestamp, but the match appears to be inclusive, unlike other endpoints like /v1/recents which has an exclusive since_timestamp.

This is a problem, because with most APIs, one can always use the timestamp of the last object fetched from the previous page as a type of cursor for fetching the next page of data. But since since is inclusive, the result set will always include that last previous object. And worse, if a page of results happens to have objects with all the same timestamp, then one cannot advance the cursor.

Is this a known issue?

Copy link
Contributor

github-actions bot commented Sep 1, 2024

This issue has been marked as stale due to inactivity. It will be closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the stale The issue has had no activity for 5 months label Sep 1, 2024
@AndreasSaltsberg AndreasSaltsberg removed the stale The issue has had no activity for 5 months label Sep 6, 2024
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

No branches or pull requests

2 participants