Data_request table check/setup in the main loop and read/direct in all unprocessed rows to respective functions.
CSV file download to all aggregation functions and add file location to data_request table.
User_energy remove temporarily. #8
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking chan
Fixes which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Testing
[ ] Change that requires a documentation update
How Has This Been Tested?
Run query_test.py file to check output CSV to the current folder.
Run unit test query_test.py and check the result of unit tests (should say "ok").
Manually test edge cases like null inputs and an empty table. (output error messages)
(to run unit test: cd komodo/komodo-data and run: python -m unittest query_test.py
[x] Manual Test
[x] Unit Test
[ ] Integration / End-to-End Test
Test Configuration:
Python version 3.8.11
Mysql 8
Checklist:
[ ] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas that are not self-documenting
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] My changes have no unnecessary logging
[x] I have added tests that prove my fix is effective or that my feature works, for sufficiently complex features
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[x] Sensitive info like tokens, secrets, and passwords have been removed before submitting
Description
Type of change
How Has This Been Tested?
Run query_test.py file to check output CSV to the current folder. Run unit test query_test.py and check the result of unit tests (should say "ok"). Manually test edge cases like null inputs and an empty table. (output error messages)
(to run unit test: cd komodo/komodo-data and run: python -m unittest query_test.py
Test Configuration:
Checklist:
Modified from this article: Phillip Johnston, “A GitHub Pull Request Template for Your Projects - Embedded Artistry,” Embedded Artistry, Aug. 04, 2017. https://embeddedartistry.com/blog/2017/08/04/a-github-pull-request-template-for-your-projects/ (accessed Jul. 22, 2021).