Skip to content

Comments

[Security Solution] Updates rules table tooling#76719

Merged
dplumlee merged 12 commits intoelastic:masterfrom
dplumlee:rules-table-enhancements
Sep 10, 2020
Merged

[Security Solution] Updates rules table tooling#76719
dplumlee merged 12 commits intoelastic:masterfrom
dplumlee:rules-table-enhancements

Conversation

@dplumlee
Copy link
Contributor

@dplumlee dplumlee commented Sep 3, 2020

Summary

Addresses:

  • Changes Tags filter to be an OR instead of an AND
  • Removes unneeded ellipses
  • Adds an updated_by and version column
  • Allows for sorting on name and updated_at column

Screenshots

Sort by rule name
Screen Shot 2020-09-03 at 7 32 20 PM
Sort by last updated
Screen Shot 2020-09-03 at 7 32 32 PM
Filter is now an OR
Screen Shot 2020-09-03 at 7 37 05 PM
Tags filter search
Screen Shot 2020-09-03 at 7 37 18 PM

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@dplumlee dplumlee self-assigned this Sep 3, 2020
@dplumlee dplumlee force-pushed the rules-table-enhancements branch from fe37c50 to 5f34783 Compare September 4, 2020 16:53
@dplumlee dplumlee marked this pull request as ready for review September 4, 2020 19:44
@dplumlee dplumlee requested review from a team as code owners September 4, 2020 19:44
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@dplumlee dplumlee force-pushed the rules-table-enhancements branch from 824de28 to 747c45c Compare September 8, 2020 22:39
Copy link
Contributor

@rylnd rylnd left a comment

Choose a reason for hiding this comment

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

These are great UX improvements, thank you!

I had a few nits about naming/refactoring, take or leave them. I also saw a UI bug when only one tag fits in the column, but I believe that was pre-existing:
Detections_-_Kibana

LGTM!

sort_field: filterOptions.sortField,
sort_field:
filterOptions.sortField === 'name'
? `${filterOptions.sortField}.keyword`
Copy link
Contributor

Choose a reason for hiding this comment

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

This could maybe be a separate function encapsulating this mapping, e.g. getFieldNameForSortField

[filterOptions.sortOrder]
(): SortingType => ({
sort: {
field: filterOptions.sortField as RulesSortingFields,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we narrow the type of FilterOptions['sortField'] instead of a type assertion here?

@dplumlee
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
securitySolution 10.0MB +3.9KB 10.0MB

History

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

@dplumlee dplumlee merged commit c85a1b2 into elastic:master Sep 10, 2020
@dplumlee dplumlee deleted the rules-table-enhancements branch September 10, 2020 17:02
dplumlee added a commit to dplumlee/kibana that referenced this pull request Sep 10, 2020
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:enhancement Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants