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

Use date instead cursor for GitHub backend #1019

Closed
Zlopez opened this issue Feb 12, 2021 · 1 comment
Closed

Use date instead cursor for GitHub backend #1019

Zlopez opened this issue Feb 12, 2021 · 1 comment
Assignees
Labels
High priority This ticket has a high priority type.feature New feature

Comments

@Zlopez
Copy link
Contributor

Zlopez commented Feb 12, 2021

Description

After investigation of #1016 I found out, that the cursor is unreliable. It will be better to use date when the last version was retrieved as a reference point.

Requirements

  • Remove latest_version_cursor field from project
  • Change GitHub backend to use date instead of cursor when retrieving new versions

How this will make Anitya better

This will allow us to have Github ratelimit optimalisation without the unreliability of cursor.

@Zlopez Zlopez added type.feature New feature High priority This ticket has a high priority labels Feb 12, 2021
@Zlopez Zlopez self-assigned this Feb 12, 2021
@Zlopez
Copy link
Contributor Author

Zlopez commented Feb 12, 2021

After some investigation, I found out, that this isn't possible to do with GraphQL API. It doesn't allow you to limit the query by creation date of the tag.

@Zlopez Zlopez closed this as completed Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High priority This ticket has a high priority type.feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant