Skip to content

[SIEM] Histogram enhancement#54544

Merged
angorayc merged 35 commits intoelastic:masterfrom
angorayc:histogram-enhancement-2
Jan 14, 2020
Merged

[SIEM] Histogram enhancement#54544
angorayc merged 35 commits intoelastic:masterfrom
angorayc:histogram-enhancement-2

Conversation

@angorayc
Copy link
Copy Markdown
Contributor

@angorayc angorayc commented Jan 12, 2020

Summary

This is part of https://github.com/elastic/siem-team/issues/484

matrixHistogramEnhancement

  • Support legend Position: MatrixHistogram now takes legendPosition, we can apply Position enum from @elastic/charts to change it.

  • Support stackByOptions for dropdown list, example options:

[
  {
    text: i18n.ALERTS_STACK_BY_MODULE,
    value: 'event.module',
  },
]

Checklist

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

For maintainers

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/siem (Team:SIEM)

@angorayc
Copy link
Copy Markdown
Contributor Author

jenkins test this please

@angorayc
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@angorayc
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Comment thread x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.tsx Outdated
Comment thread x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.tsx Outdated
Comment thread x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.tsx Outdated
Comment thread x-pack/legacy/plugins/siem/public/components/matrix_histogram/index.tsx Outdated
Comment thread x-pack/legacy/plugins/siem/public/components/alerts_viewer/index.tsx Outdated
Comment thread x-pack/legacy/plugins/siem/public/components/alerts_viewer/translations.ts Outdated
Comment thread x-pack/legacy/plugins/siem/public/components/alerts_viewer/translations.ts Outdated
Comment thread x-pack/legacy/plugins/siem/public/containers/matrix_histogram/translations.ts Outdated
Comment thread x-pack/legacy/plugins/siem/public/containers/matrix_histogram/utils.ts Outdated
>
): variable is GetNetworkDnsQuery.Variables => {
return (
variable.isHistogram !== undefined &&
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

would the addition of a dns type that enabled a simple variable.isDNS be useful here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added a prop isDNSHistogram but haven't changed this part successfully, as couldn't make typescript happy... Will put that as todos in my next PR.

Comment thread x-pack/legacy/plugins/siem/public/containers/matrix_histogram/utils.ts Outdated
Comment thread x-pack/legacy/plugins/siem/public/containers/matrix_histogram/utils.ts Outdated
@angorayc
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@angorayc
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@andrew-goldstein andrew-goldstein left a comment

Choose a reason for hiding this comment

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

Thanks @angorayc , this is exactly what we needed for the Overview! 🙏
Works great locally
LGTM 🚀

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@angorayc angorayc merged commit f6890d4 into elastic:master Jan 14, 2020
angorayc added a commit to angorayc/kibana that referenced this pull request Jan 14, 2020
* generic histogram container

* generic histogram container

* rename params

* fix inspect

* fix update with timerange

* clean up props

* send stackByField to server side

* fix inspect button

* helper node xavier

* fix DNS histogram

* fix DNS query params

* move utils for fetch data into containers

* cleanup graphql template on client side

* rename grqphql data

* i18n

* fix type

* fix i18n

* fix i18n

* fix subtitle

* fix subtitle

* fix i18n

* fix for reviews

* fix types

* remove unused test

* fix integration

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
angorayc added a commit that referenced this pull request Jan 14, 2020
* generic histogram container

* generic histogram container

* rename params

* fix inspect

* fix update with timerange

* clean up props

* send stackByField to server side

* fix inspect button

* helper node xavier

* fix DNS histogram

* fix DNS query params

* move utils for fetch data into containers

* cleanup graphql template on client side

* rename grqphql data

* i18n

* fix type

* fix i18n

* fix i18n

* fix subtitle

* fix subtitle

* fix i18n

* fix for reviews

* fix types

* remove unused test

* fix integration

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
jkelastic pushed a commit to jkelastic/kibana that referenced this pull request Jan 17, 2020
* generic histogram container

* generic histogram container

* rename params

* fix inspect

* fix update with timerange

* clean up props

* send stackByField to server side

* fix inspect button

* helper node xavier

* fix DNS histogram

* fix DNS query params

* move utils for fetch data into containers

* cleanup graphql template on client side

* rename grqphql data

* i18n

* fix type

* fix i18n

* fix i18n

* fix subtitle

* fix subtitle

* fix i18n

* fix for reviews

* fix types

* remove unused test

* fix integration

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants