-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added option to fetch and upload old PI file to from and to S3, and added logic to update old PI file #28
Conversation
I've added some small features and have updated the PR summary |
62d985f
to
8505314
Compare
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.
One last comment, otherwise looks good.
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.
Looks good to me. @naved001 can you do a final pass today?
@QuanMPhm maybe the order you proposed the PRs. You'll need to fix the merge conflicts on both PRs though. |
…and uploaded back to S3 Also provides logic for cases where future PIs are encountered in past invoices, in which case they will be considered new PIs for the purpose of the New PI credit, and their first-month date will be changed to the past invoice's date
Partially closes #27. If the user does not provide an old_pi file,
process_report.py
will by default fetch the file from a hardcoded location in S3 storage.Setting the
upload-to-s3
option will now upload both the processed CSV invoices and the updated PI file.I've also renamed some functions for consistent capitalization.
I have also added a few print statements to provide the following info:
It should be noted that if future PIs are encountered when processing old invoices, the invoice script will consider them new PIs for the purpose of the new PI credit, and will update the future PI's first-month date to be same as the old invoice's date.
Blocked on #23, and prerequisite to #21