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 Kpi host UI to handle no data for charts #36424

Merged
merged 3 commits into from
May 10, 2019

Conversation

angorayc
Copy link
Contributor

@angorayc angorayc commented May 10, 2019

Summary

  • This PR is to adjust the UI for handling the case of no data for charts:
    Relevant PR: Kpi host #35065

Screenshot 2019-05-10 at 14 17 06

Screenshot 2019-05-10 at 14 17 06 copy

  • Displaying Chart Data Not Available to reflect what data returns:

Screenshot 2019-05-10 at 15 44 02

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [] Any text added follows EUI's writing guidelines, uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [ ] Documentation was added for features that require explanation or tutorials

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately
- [ ] This includes a feature addition or change that requires a release note and was labeled appropriately

@elasticmachine
Copy link
Contributor

Pinging @elastic/secops

@angorayc angorayc self-assigned this May 10, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

key: Float
key_as_string: String
count: Count
}

type KpiHostsData {
hosts: Float
hostsHistogram: [HistogramData]
hostsHistogram: [KpiHostHistogramData]
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI -> if you do [KpiHostHistorgramData!], it will change the type from (KpiHostHistogramData | null)[] | null;} to (KpiHostHistogramData)[] | null;} and I think that can simplify some of your logic.

Copy link
Contributor

@XavierM XavierM left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@angorayc angorayc merged commit 9e806bb into elastic:master May 10, 2019
angorayc added a commit to angorayc/kibana that referenced this pull request May 10, 2019
* update types for areachart and barchart

* handle no buckets returns for charts

* update data types for histogram data
angorayc added a commit that referenced this pull request May 10, 2019
* update types for areachart and barchart

* handle no buckets returns for charts

* update data types for histogram data
@spong spong added the release_note:skip Skip the PR/issue when compiling release notes label May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:SIEM v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants