-
Notifications
You must be signed in to change notification settings - Fork 4
[WIP] Refactor aggregation script + new features #55
base: master
Are you sure you want to change the base?
Conversation
@thekaveman can you take a look at the new aggregation script? It'd be best to just look at the current script instead of trying to make sense of the diff. Also, is there anything else I should add to the to do list? |
I will take a look! Thanks dude. |
1177e88
to
546b6dd
Compare
- Add ignore rules for common compressions used for backed up data during development - Ignore Python's cache - Ignore pyenv definition - Ignore Visual Studio Code's project settings
- Rewrite and optimize the entire script - Add basic unit tests for the core functions of the script that handle the actual data manipulation
The Makefile's 'fetch' command should respective the REALTIME variable to replicate the prod env
2eb7dc8
to
60d487d
Compare
Relying on the data in the filesystem is only reliable when working with a clean slate. However, deleting websites will leave old data behind, so instead of checking the filesystem, use Jekyll generated files for their actual purpose: being the authoritative source of sites & reports. Fixes #57
except IOError: | ||
pass | ||
# Reports that will not be aggregated by this script | ||
ignored_reports = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know we had this in the previous version - we haven't used it though, right? And it isn't being populated from any environment variables or elsewhere. Do we need this right now?
If not, we can also cleanup below L176-177
} | ||
|
||
for k in aggregationDefinitions: | ||
v = aggregationDefinitions[k] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for k, v in aggregationDefinitions.items():
DO NOT MERGE
To Do: