Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Feature/fix lab #121

Merged
merged 2 commits into from
Dec 30, 2016
Merged

Feature/fix lab #121

merged 2 commits into from
Dec 30, 2016

Conversation

fungjj92
Copy link
Contributor

Newest changes to CC API, particularly time_aggregations, broke the CC lab graphs. This should restore any lost functionality. You'll see some comments with temporary simplifications.

Copy link
Contributor

@rmartz rmartz left a comment

Choose a reason for hiding this comment

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

It's alive! It's alive!

Looks good, glad to have the lab back! 👍

});
}

private isValidIndicator(indicator: Indicator): boolean {
return indicator.time_aggregation !== 'daily';
Copy link
Contributor

Choose a reason for hiding this comment

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

We haven't quite gotten rid of the daily-only indicators yet, but they're going away in azavea/climate-change-api#199 so we should be fine pretending they're not there for the time being.

@@ -51,7 +51,10 @@ export class ChartComponent implements OnChanges {
indicator: this.chart.indicator,
scenario: this.scenario,
city: this.city,
climateModels: this.models
climateModels: this.models,
// As a temporary solution, the time agg defaults to the 1st valid option.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a github issue to add selecting non-yearly granularities? That'd be pretty handy to have

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it has be discussed, but now that we do time aggs that seems like a necessary feature to lab.

@fungjj92 fungjj92 merged commit 118cd09 into develop Dec 30, 2016
@fungjj92 fungjj92 deleted the feature/FixLab branch February 7, 2017 19:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants