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

Update y-axis label to handle new queryConfig field shape #2416

Merged
merged 5 commits into from
Nov 29, 2017

Conversation

121watts
Copy link
Contributor

@121watts 121watts commented Nov 28, 2017

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

Connect #2312

The problem

The default y-axis label was generated from the old queryConfig field shape

The Solution

Update buildDefaultYAxisLabel to use new field shape on queryConfig

)}`
const {measurement, fields} = queryConfig
const fieldAlias = `${_.get(fields, ['0', 'alias'], '')}`
const field = `${_.get(fields, ['0', 'value'], '')}`
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a better name would be to traverse the 0th value and concat the 0th arg

@121watts 121watts changed the title Update label to handle new field shapes Update y-axis label to handle new queryConfig field shape Nov 29, 2017
@121watts 121watts merged commit 10b2d56 into master Nov 29, 2017
@121watts 121watts deleted the bugfix/y-axis-label branch November 29, 2017 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.

2 participants