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(logs): fix log color utils #4909

Merged
merged 2 commits into from
Dec 27, 2018
Merged

fix(logs): fix log color utils #4909

merged 2 commits into from
Dec 27, 2018

Conversation

OfTheDelmer
Copy link
Contributor

@OfTheDelmer OfTheDelmer commented Dec 21, 2018

Closes #4862

Briefly describe your proposed changes:
Extract a util for brightening a color that guards against undefined colorValues. Similarly, update the color scale to go from severity => default_severity_color_name => default_severity_color_value.

What was the problem?
It's unclear what the root cause of 4862 is. However, 4862 includes an error message regarding an attempt to brighten an undefined colorValue that could be fixed.

What was the solution?
Fix the colorScale returning a colorName instead of a color hex value when given just a severity level. Extract a color util that adds a guard against d3-color trying to brighten an undefined color value.

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergeable
  • Tests pass

Copy link
Contributor

@ebb-tide ebb-tide left a comment

Choose a reason for hiding this comment

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

👍 👍 👍

@OfTheDelmer OfTheDelmer merged commit 636f776 into master Dec 27, 2018
OfTheDelmer added a commit that referenced this pull request Jan 10, 2019
* fix(logs): fix log color utils
afausti added a commit to lsst-sqre/chronograf that referenced this pull request Mar 13, 2019
* upstream/master: (40 commits)
  Update chronograf version number
  Fixed the fromCSV function
  Fixed the window function (influxdata#5083)
  Fixed versions and links in readme (influxdata#5063)
  Fix error when editing kapacitor info in onboarding
  fix: active kapacitor updating and ui defaults (influxdata#5079)
  Be less aggressive on windowInterval
  Stop cells with raw/no format selected from getting changed to base 10
  fix(ui): fix decimalPlaces with wrapper (influxdata#5073)
  Escape injected meta query values
  Update changelog for 1.7.7
  Use JWT in enterprise for authentication
  Fix meta query group calls
  Update flux to 0.12 to match influxdb
  updating functions for flux 0.12 (influxdata#5035)
  Update hostname for meta urls for new sources only
  fix: update chronograf version to 1.7.6
  Bugfix/threshold (influxdata#4916)
  fix(logs): fix log color utils (influxdata#4909)
  Set kapacitor state in ConnectionWizard and call syncHostnames for new kapacitors
  ...
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.

Logs - connection to enterprise cluster - logs show empty page on first load
2 participants