Skip to content
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

Enhance billable_expectation backfill management command #1143

Merged
merged 4 commits into from
Aug 11, 2020
Merged

Conversation

Jkrzy
Copy link
Contributor

@Jkrzy Jkrzy commented Aug 11, 2020

Description

For #1119, we expand our management command previously used to backfill billing targets for existing timecards with the ability to update UserData.billable_expectation. Also renamed the command to update_billable_expectations which is both a bit shorter and I think clearer as to it's purpose.

Example call:

python manage.py update_billable_expectations  aug20-backfill.csv -u

With a csv file structured as below:

user.name, 36, 07/04/2020

Results in all timecards for reporting periods after 7/4/20, as well as UserData.billable_expectation, being set to 36 hours for each username provided in the csv.

Adding optional flag to management command allowing
us to bulk update UserData.billable_expectation
as well as existing Timecards.
Copy link
Member

@neilmb neilmb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quibble, LGTM

@Jkrzy Jkrzy merged commit f2f534c into main Aug 11, 2020
@Jkrzy Jkrzy deleted the tcard-backfill branch August 11, 2020 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants