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

Fix ceo visualization not using ceo time range for query #5149

Merged
merged 1 commit into from
Apr 16, 2019

Conversation

ischolten
Copy link
Contributor

@ischolten ischolten commented Apr 16, 2019

Closes #5134

Briefly describe your proposed changes:
What was the problem?
The correct time range was being used for the dropdown in the ceo but the templates used to render the template variables in the query were that of the Dashboard and not relevant to the time in the ceo.
What was the solution?
The templates in the ceo should be the dashboard's templates and dashboardTime template variables created from the ceo's time range.

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergeable
  • Tests pass
  • swagger.json updated (if modified Go structs or API)
  • Sign CLA (if not already signed)

@ischolten ischolten force-pushed the fix/ceo-time-range branch from 7ff5900 to cd8db96 Compare April 16, 2019 20:42
TEMP_VAR_UPPER_DASHBOARD_TIME,
} from 'src/shared/constants'

export const createTimeRangeTemplates = (
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

Copy link
Contributor

@AlirieGray AlirieGray left a comment

Choose a reason for hiding this comment

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

looks good to me!

@ischolten ischolten merged commit 1fde50b into master Apr 16, 2019
@ischolten ischolten deleted the fix/ceo-time-range branch April 16, 2019 20:53
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.

Changing date range in the CEO has no effect
2 participants