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

Default to graphing past 12 months #1148

Merged
merged 2 commits into from
Aug 20, 2020
Merged

Default to graphing past 12 months #1148

merged 2 commits into from
Aug 20, 2020

Conversation

neilmb
Copy link
Member

@neilmb neilmb commented Aug 19, 2020

Description

Discussion on #1142 suggested using the past 12 months time frame by default. This changes the Analytics page to show the last year of data by default. It also adds a "tip" for the Start Date on what the earliest available data is.

Screen Shot 2020-08-19 at 11 33 49

Additional information

"Previous year" is a surprisingly complicated concept (12 months, 365 days, 1 calendar year?). This just subtracts 1 from today's year.

tock/utilization/views.py Outdated Show resolved Hide resolved
tock/utilization/views.py Outdated Show resolved Hide resolved
@neilmb
Copy link
Member Author

neilmb commented Aug 20, 2020

Great catch @Jkrzy, fixed and ready for re-review.

@Jkrzy Jkrzy merged commit 6471082 into main Aug 20, 2020
@Jkrzy Jkrzy deleted the nmb/analytics-improved branch August 20, 2020 16:24
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