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

Exceptions List component #140985

Conversation

WafaaNasr
Copy link
Contributor

@WafaaNasr WafaaNasr commented Sep 19, 2022

Summary

  • Created a new Package called @kbn/securitysolution-exception-list-components to hold all the Exception-List components
  • Adjusted List components to be more generic and accept props so they can be placed on any of the Exception pages
  • Used @emotion/css, @emotion/react to comply with the kbn-x-packages
  • used RTL instead of Enzyme

Checklist

@WafaaNasr WafaaNasr added release_note:feature Makes this part of the condensed release notes ci:cloud-deploy Create or update a Cloud deployment labels Sep 19, 2022
@WafaaNasr WafaaNasr self-assigned this Sep 19, 2022
@WafaaNasr WafaaNasr requested a review from a team as a code owner September 19, 2022 17:13
@WafaaNasr WafaaNasr requested a review from a team as a code owner September 20, 2022 10:41
@WafaaNasr
Copy link
Contributor Author

@elasticmachine merge upstream

@WafaaNasr WafaaNasr force-pushed the refactor/exception-list-common-component-basic-skeleton branch from 6a5dd70 to ae2dba2 Compare September 20, 2022 12:24
@WafaaNasr WafaaNasr requested a review from a team as a code owner September 20, 2022 13:33
@WafaaNasr WafaaNasr requested a review from maximpn September 20, 2022 13:33
@WafaaNasr WafaaNasr force-pushed the refactor/exception-list-common-component-basic-skeleton branch from 231c0de to fa679db Compare September 20, 2022 14:40
Copy link
Contributor

@yctercero yctercero left a comment

Choose a reason for hiding this comment

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

This is really awesome and making these components generic will clean up a lot of the exceptions code. Now that we're past 8.5 FF, I think it'd be great to move these into a package. Any potential issues with the package, we have plenty of time to address - but also feel free not to do that in this PR if you want to keep things moving.

Thanks so much for all of this. I'm gonna pull down to play around with it, but none of my comments were anything that would block this from going in.

@WafaaNasr WafaaNasr force-pushed the refactor/exception-list-common-component-basic-skeleton branch from fa0f310 to 2102337 Compare September 22, 2022 07:49
@WafaaNasr WafaaNasr marked this pull request as draft September 22, 2022 09:48
@WafaaNasr
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@maximpn maximpn left a comment

Choose a reason for hiding this comment

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

@WafaaNasr changes look good but I left some comments related to better typing and simplification which worth to check out.

@WafaaNasr
Copy link
Contributor Author

@WafaaNasr changes look good but I left some comments related to better typing and simplification which worth to check out.

@maximpn Thanks for the review, Definitely will work on them once I finish moving all the components into a new Package.
As the idea of this PR is to make some existing components generic so we can use them in multiple places as well as apply the new Pattern (separate logic/UI)

@WafaaNasr WafaaNasr added Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Security Solution Platform Security Solution Platform Team and removed ci:cloud-deploy Create or update a Cloud deployment labels Sep 27, 2022
@WafaaNasr WafaaNasr marked this pull request as ready for review September 28, 2022 05:58
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@WafaaNasr
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/securitysolution-exception-list-components - 67 +67

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
@kbn/securitysolution-exception-list-components - 1 +1
Unknown metric groups

API count

id before after diff
@kbn/securitysolution-exception-list-components - 76 +76

ESLint disabled line counts

id before after diff
@kbn/securitysolution-exception-list-components - 2 +2

Total ESLint disabled count

id before after diff
@kbn/securitysolution-exception-list-components - 2 +2

History

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

cc @WafaaNasr

Copy link
Contributor

@yctercero yctercero left a comment

Choose a reason for hiding this comment

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

Thanks for addressing my previous comments. This looks really great, and so much cleaner! LGTM 🚀

There's a few TODOs that I can address with some upcoming changes once this is in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:feature Makes this part of the condensed release notes Team:Security Solution Platform Security Solution Platform Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants