-
Notifications
You must be signed in to change notification settings - Fork 1
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
Incorrect data could be cached at the beginning of the month #1
Comments
A smarter way to do this might be to add a custom endpoint to the API so it could tell us when it's done syncing. But this works for now. |
Seems like this might still be happening even after the fix, although to a lesser scale. To investigate:
|
Just confirmed; running a query for a new month only returned a small subset of the scores for the latest date: [
{
"date": "2020-02-01T00:00:00.000Z",
"points": 33435,
"id": 28309,
"languageId": 1,
"language": {
"name": "ActionScript",
"stackoverflowTag": null,
"id": 1
}
},
{
"date": "2020-02-01T00:00:00.000Z",
"points": 1654035,
"id": 28310,
"languageId": 2,
"language": {
"name": "C",
"stackoverflowTag": null,
"id": 2
}
},
{
"date": "2020-02-01T00:00:00.000Z",
"points": 3395138,
"id": 28311,
"languageId": 3,
"language": {
"name": "C#",
"stackoverflowTag": null,
"id": 3
}
},
{
"date": "2020-02-01T00:00:00.000Z",
"points": 2561530,
"id": 28312,
"languageId": 4,
"language": {
"name": "C++",
"stackoverflowTag": null,
"id": 4
}
},
{
"date": "2020-02-01T00:00:00.000Z",
"points": 84064,
"id": 28313,
"languageId": 5,
"language": {
"name": "Clojure",
"stackoverflowTag": null,
"id": 5
}
},
{
"date": "2020-02-01T00:00:00.000Z",
"points": 75448,
"id": 28314,
"languageId": 6,
"language": {
"name": "CoffeeScript",
"stackoverflowTag": null,
"id": 6
}
},
{
"date": "2020-02-01T00:00:00.000Z",
"points": 597789,
"id": 28315,
"languageId": 7,
"language": {
"name": "Go",
"stackoverflowTag": null,
"id": 7
}
},
{
"date": "2020-02-01T00:00:00.000Z",
"points": 140237,
"id": 28316,
"languageId": 8,
"language": {
"name": "Haskell",
"stackoverflowTag": null,
"id": 8
}
}
] |
bmaupin
added a commit
to bmaupin/langtrends-api
that referenced
this issue
Feb 6, 2020
bmaupin
added a commit
to bmaupin/langtrends-data
that referenced
this issue
Oct 5, 2021
bmaupin
added a commit
to bmaupin/langtrends-api
that referenced
this issue
Mar 14, 2023
bmaupin
added a commit
that referenced
this issue
Mar 15, 2023
bmaupin
added a commit
that referenced
this issue
Mar 15, 2023
We can do this now that the API data for each date is populated using a transaction
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the current logic, the current year/month is compared with the latest from the API. Unfortunately, the API will return the current year/month even if it hasn't finished loading all the current data.
One solution could be comparing not just the year/month but also the number of languages.
The text was updated successfully, but these errors were encountered: