Skip to content

Conversation

@patrykkopycinski
Copy link
Contributor

@patrykkopycinski patrykkopycinski commented Sep 5, 2020

Summary

When we were adding QueryBar to the Timeline there was no draft state in SearchBar, so we had to create our own implementation of that. As we have it available already in SearchBar
https://github.com/elastic/kibana/blob/master/src/plugins/data/public/ui/search_bar/search_bar.tsx#L154
there is no need to maintain the custom one, so this PR removes the logic from
https://github.com/elastic/kibana/pull/76833/files#diff-21f7cc5af76326207d231aa24c766e21L62
as well as from the redux store
https://github.com/elastic/kibana/pull/76833/files#diff-257fe3901ca369e1edcaea6720307addL193
Also took advantage of that refactor and migrated StatefulSearchOrFilter to SearchOrFilter with hooks.

Checklist

@patrykkopycinski patrykkopycinski added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Sep 5, 2020
@patrykkopycinski patrykkopycinski self-assigned this Sep 5, 2020
@patrykkopycinski patrykkopycinski changed the title WIP [Security Solution] Remove filterQueryDraft in favor of SearchBar internal draft state Sep 8, 2020
…query-bar

# Conflicts:
#	x-pack/plugins/security_solution/public/common/components/query_bar/index.test.tsx
#	x-pack/plugins/security_solution/public/detections/components/alerts_table/actions.test.tsx
#	x-pack/plugins/security_solution/public/timelines/components/timeline/header/index.tsx
#	x-pack/plugins/security_solution/public/timelines/components/timeline/search_or_filter/index.tsx
#	x-pack/plugins/security_solution/public/timelines/components/timeline/search_or_filter/pick_events.tsx
#	x-pack/plugins/security_solution/public/timelines/components/timeline/search_or_filter/search_or_filter.tsx
#	x-pack/plugins/security_solution/public/timelines/components/timeline/timeline.tsx
#	x-pack/plugins/security_solution/public/timelines/store/timeline/helpers.ts
#	x-pack/plugins/security_solution/public/timelines/store/timeline/model.ts
#	x-pack/plugins/security_solution/public/timelines/store/timeline/reducer.test.ts
@patrykkopycinski patrykkopycinski marked this pull request as ready for review October 12, 2020 08:30
@patrykkopycinski patrykkopycinski requested review from a team as code owners October 12, 2020 08:30
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@patrykkopycinski patrykkopycinski added bug Fixes for quality problems that affect the customer experience v7.11.0 and removed v7.10.0 labels Oct 12, 2020
@patrykkopycinski patrykkopycinski removed the bug Fixes for quality problems that affect the customer experience label Oct 20, 2020
…query-bar

# Conflicts:
#	x-pack/plugins/security_solution/public/timelines/components/timeline/query_bar/index.test.tsx
#	x-pack/plugins/security_solution/public/timelines/components/timeline/query_bar/index.tsx
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
securitySolution 2058 2055 -3

async chunks size

id before after diff
securitySolution 8.1MB 8.1MB -12.6KB

page load bundle size

id before after diff
securitySolution 262.3KB 262.1KB -183.0B

History

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

@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Oct 27, 2020
@patrykkopycinski
Copy link
Contributor Author

Implemented in #83378

@patrykkopycinski patrykkopycinski deleted the fix/security-query-bar branch December 3, 2020 13:20
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: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.11.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants