-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Exceptions] - Initial updates to exceptions viewer UX #138770
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for tagging the docs team! The screenshots above look great, just a small edit suggested for the empty state text.
x-pack/plugins/security_solution/public/common/components/exceptions/viewer/translations.ts
Outdated
Show resolved
Hide resolved
208529c
to
3bb8970
Compare
@@ -123,6 +124,18 @@ describe('find_list_item_schema', () => { | |||
expect(message.schema).toEqual(expected); | |||
}); | |||
|
|||
test('it should validate with search missing', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-breaking change. It's a new field that is optional.
@@ -324,7 +322,7 @@ export { fetchExceptionListByIdWithValidation as fetchExceptionListById }; | |||
* @param http Kibana http service | |||
* @param listIds ExceptionList list_ids (not ID) | |||
* @param namespaceTypes ExceptionList namespace_types | |||
* @param filterOptions optional - filter by field or tags | |||
* @param filter optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit test updated here: x-pack/plugins/lists/public/exceptions/api.test.ts
cy.get(EXCEPTIONS_TAB).click(); | ||
}; | ||
|
||
export const editException = () => { | ||
cy.get(EXCEPTION_ITEM_ACTIONS_BUTTON).click({ force: true }); | ||
cy.get(EXCEPTION_ITEM_ACTIONS_BUTTON).eq(0).click({ force: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have more than one element now with the same locator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do, there's a test with multiple exception items in the items table. Updated to take an index.
...ins/security_solution/cypress/integration/exceptions/rule_details_flow/add_exception.spec.ts
Show resolved
Hide resolved
...ins/security_solution/cypress/integration/exceptions/rule_details_flow/add_exception.spec.ts
Show resolved
Hide resolved
...ns/security_solution/cypress/integration/exceptions/rule_details_flow/edit_exception.spec.ts
Show resolved
Hide resolved
...ns/security_solution/cypress/integration/exceptions/rule_details_flow/edit_exception.spec.ts
Show resolved
Hide resolved
...ns/security_solution/cypress/integration/exceptions/rule_details_flow/edit_exception.spec.ts
Show resolved
Hide resolved
...y_solution/cypress/integration/exceptions/rule_details_flow/edit_exception_data_view.spec.ts
Show resolved
Hide resolved
|
||
{ | ||
"type": "doc", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we strictly need 2 documents? If not, I would suggest extending the current document :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added 2 because I wanted to update the tests to more explicitly show that the matching alert is not created and the non matching one is. Let me know if you think that's not necessary and I can update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
security-engineering-productivity changes reviewed!!
Left some nit comments and improvements that do not block the PR to be merged (but would be niche to be addressed/taken into consideration) :)
@elasticmachine merge upstream |
Thanks @MadameSheema ! I'll be sure to follow up - with the size, I'd like to just get this in and follow up on any non-blocker feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alerts area changes LGTM
...ity_solution/public/detection_engine/rule_exceptions/components/exception_item_card/meta.tsx
Outdated
Show resolved
Hide resolved
A couple things:
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flakyFailed CI StepsTest Failures
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
miscellaneous assets size
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @yctercero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@kqualters-elastic @michaelolo24 @MadameSheema Thank you thank you for your feedback. I've opened a follow up PR addressing it here. |
…r UX (elastic#138770) ## Summary **API changes** - Adds API for determining the list-rule references. - Updates the exception items find api to include the `search` param which allows for simple search queries - used with the EUI search bar **UI updates** - Moved the exception components into new `rule_exceptions` folder per suggested folder structure updates listed [here](elastic#138600) - Updates the rule details tabs to split endpoint and rule exceptions into their own tabs - Updates the viewer utilities header now that these different exception types are split - Updates exception item UI to match new designs - Updates the UI for when there are no items - Removes `use_exception_list_items` hook as it is no longer in use - Flyouts (add/edit) remain untouched
Summary
This does not complete the planned rule details exceptions tab changes planned, but it is a shippable start:
API changes
search
param which allows for simple search queries - used with the EUI search barUI updates
rule_exceptions
folder per suggested folder structure updates listed hereuse_exception_list_items
hook as it is no longer in useThings to test
Addresses:
Changes to come:
Screenshots
Loading screen
No exceptions exist screen
No search results found screen
Search in progress screen
Error screen
Detections exceptions
Endpoint exceptions
Checklist