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

fixing missing value display for number fields #16644

Merged
merged 2 commits into from
May 8, 2018

Conversation

ppisljar
Copy link
Member

@ppisljar ppisljar commented Feb 9, 2018

handles missing values by showing - (using number field formatters on them caused errors)

@ppisljar ppisljar added review Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v6.2.1 labels Feb 9, 2018
@timroes timroes added v6.2.2 and removed v6.2.1 labels Feb 9, 2018
@timroes
Copy link
Contributor

timroes commented Feb 9, 2018

I think this doesn't fix #16640, but rather #16420 which is the specific issue for the metrics visualization.

I am also wondering: do we really need to create that metric vis specific "no data solution" that has been broken "forever" in a patch version? Or could we wait for the next minor version to fix #16640 and have a proper solution for all visualizations? (At least if we merge this, we should think about removing that quick solution in favor of the general solution once #16640 is solved.)

@jimgoodwin jimgoodwin added v6.2.3 and removed v6.2.2 labels Feb 20, 2018
@timroes
Copy link
Contributor

timroes commented Mar 12, 2018

Jenkins, test this

@jimgoodwin jimgoodwin added v6.2.4 and removed v6.2.3 labels Mar 20, 2018
@ppisljar ppisljar changed the title adding metric support for percentiles back fixing missing value display for number fields Apr 4, 2018
@ppisljar ppisljar force-pushed the fix/metricAggSupport branch 2 times, most recently from b71afab to 5c68a62 Compare April 4, 2018 16:53
@elastic elastic deleted a comment from elasticmachine Apr 4, 2018
@elastic elastic deleted a comment from elasticmachine Apr 4, 2018
@elastic elastic deleted a comment from elasticmachine Apr 4, 2018
@elastic elastic deleted a comment from elasticmachine Apr 4, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

can this be closed?

this is an isolated spotfix that addresses the issue. I'd be +1 on merging this in, iso of waiting for the "right" solution. but no big preference either way.

@ppisljar
Copy link
Member Author

@timroes what do you think ?

@ppisljar ppisljar removed the v6.2.4 label Apr 16, 2018
@@ -65,6 +65,11 @@ export class MetricVisComponent extends Component {
return isColorDark(parseInt(color[1]), parseInt(color[2]), parseInt(color[3]));
}

_getFormattedValue(fieldFormatter, value) {
if (!value && isNaN(value)) return '-';
Copy link
Contributor

Choose a reason for hiding this comment

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

We could just use if(_.isNaN(value)) here

Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Besides the small suggestions, LGTM

@elasticmachine
Copy link
Contributor

💔 Build Failed

@ppisljar
Copy link
Member Author

ppisljar commented May 7, 2018

jenkins, test this

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@ppisljar ppisljar requested a review from nreese May 7, 2018 22:24
Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

lgtm

@ppisljar ppisljar merged commit 3c898a5 into elastic:master May 8, 2018
ppisljar added a commit to ppisljar/kibana that referenced this pull request May 8, 2018
@ppisljar ppisljar deleted the fix/metricAggSupport branch May 8, 2018 11:04
@ppisljar ppisljar restored the fix/metricAggSupport branch September 26, 2018 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Visualizations Generic visualization features (in case no more specific feature label is available) review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants