This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
[common.php]: Ingest more years of data + tidy #4
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.
For the arrest and history chart functions, extend and condense the code to automatically ingest additional years of data, if they are available.
Also, a minor fix ($type was getting assigned a value within a conditional on line 74) and some code polishing.
What does this Pull Request do? ( required )
Where should the reviewer start? ( required )
It's just one file, so it should be straight-forward to review.
How should this be manually tested? ( required )
I'd suggest diffing the outputs after a manual review, so as to ensure that I didn't accidentally bork something.
Your Contribution Contains: ( required )
You have tested each of the following, and they work as expected: ( required )
npm test
Any background context you want to provide? ( optional )
I find the project and your work pretty amazing (and horrifying). I hope that you can get more data and that these little patches make it easier to make updates.
I'm happy to do more review and/or coding, if it's helpful.
What are the relevant GitHub issues? ( optional )
Ooof. Didn't check, actually.
Screenshots ( optional )
What GIF best describes this PR or how it makes you feel? ( optional )