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

Fixes refacto bug on n-hours intervals #355

Merged
merged 1 commit into from
Jan 30, 2019
Merged

Fixes refacto bug on n-hours intervals #355

merged 1 commit into from
Jan 30, 2019

Conversation

dufrannea
Copy link
Contributor

@dufrannea dufrannea commented Jan 30, 2019

Number of hours and aggregationfactor were swapped. This led to a display error where cells width was not respected in the calendar view.

Number of hours and aggregationfactor were swapped.
@dufrannea dufrannea changed the title Fixes refacto bug Fixes refacto bug on n-hours intervals Jan 30, 2019
@@ -150,7 +150,7 @@ object TimeSeriesCalendar {

private[timeseries] object TimeSeriesCalendarView {
def apply(calendar: TimeSeriesCalendar) = calendar match {
case TimeSeriesCalendar.NHourly(h) => new NHourlyView(h, 1)
case TimeSeriesCalendar.NHourly(h) => new NHourlyView(1, h)
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems strange that you're not passing timezone here.
I highly doubt that anybody is using anything different from UTC, but just in case, maybe we could add it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, for Hourly it does not matter, for NHourly it does :) Will do that in another review.

@dufrannea dufrannea dismissed alexeyeryshev’s stale review January 30, 2019 13:29

Will merge & perform changes in another review

@dufrannea dufrannea merged commit 42283ed into master Jan 30, 2019
@vguerci vguerci deleted the n_hours_fix branch February 19, 2019 13:30
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.

3 participants