Discussions

Ask a Question
Back to All

Employee endpoint paging with updated_since and attributes - bug?

Hi,

I'm using the updated_since and attributes[] query parameters to get employees.

Per documentation: "NOTE: when using the updated_since filter, the email, limit, and offset parameters are ignored."

I do not find this to be the case: When I pass limit and offset, they are not ignored. Paging works as expected. Also the maximum number of results is 200 (default limit) if no limit is set.

For testing I'm using a small limit and once the number of total elements changed (decreased!) between the three different pages! (same parameter in updated_since)

2024-02-20 10:22:14,046 - - DEBUG - Starting to get all employees updated since 2024-02-18T10:22:13 with limit 10
2024-02-20 10:22:54,636 - - DEBUG - Processed page 1/3, total elements: 30
2024-02-20 10:23:14,913 - - DEBUG - Processed page 2/3, total elements: 28
2024-02-20 10:23:26,185 - - DEBUG - Processed page 3/3, total elements: 27
2024-02-20 10:23:55,326 - - INFO - Received 27 relevant employees from a total of 27 returned updated since 2024-02-18T10:22:13.

This effect occurred for a time, now the results seem stable. Initial number of total elements I got was 50 at about 10.16:03. Now the number of total elements seems stable at 22. As I pass the exact date and time as since the number should only go up, never down.

Can you please check?

Thanks and regards,

Simone