swap out implementation of update stats that better reflects activity #1684
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #1682
This PR pulls in the newer implementation of locating a label using the GitHub API from up-for-grabs/tooling#11.
The goal with this change:
You can read more about the changes in that PR, but the key change is what we're querying for in the GraphQL API:
By sorting the open issues by "last updated" and descending we can quickly see when any issue with the label was last active. There might be an even more accurate field for this (issue comments?) but for now this feels more accurate than repository's "last updated" field.
If there are no open issues to track in the project, the "last updated" field is not included in the data file, and we should ensure the client-side JS handles this case.
The other benefit of this change is that I can push additional information as part of the query that we didn't have before - in particular the URL to the label - and cleanup some projects that were out of sync. Those are listed in bd4d40e and this will resolve #1682.