Skip to content

Use pagination just for assignment#23

Open
xmnlab wants to merge 1 commit intosinger-io:masterfrom
Quansight:use-pagination-just-for-assignment
Open

Use pagination just for assignment#23
xmnlab wants to merge 1 commit intosinger-io:masterfrom
Quansight:use-pagination-just-for-assignment

Conversation

@xmnlab
Copy link
Copy Markdown
Contributor

@xmnlab xmnlab commented Jun 23, 2021

Description of change

The current implementation is creating pagination for all endpoints, but AFAIK it is just necessary for the assignments endpoint.

In this PR, sync_endpoint checks if the endpoint is "assignments" and, if it is correct, it will use the pagination for date ranges. If not, it will just use the starting date as the parameter.

maybe it is not a big change, but it reduces the number of requests to the API.

PS: I tried it locally getting data from 2017 and it worked fine.

Manual QA steps

Risks

Rollback steps

  • revert this branch

@xmnlab xmnlab marked this pull request as ready for review June 23, 2021 02:06
@xmnlab
Copy link
Copy Markdown
Contributor Author

xmnlab commented Jun 24, 2021

Hi everyone! Just a friendly reminder about this PR :) thanks!

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

Successfully merging this pull request may close these issues.

1 participant