-
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
Remove indexPatterns dependency from filter service #47471
Remove indexPatterns dependency from filter service #47471
Conversation
Pinging @elastic/kibana-app-arch (Team:AppArch) |
💔 Build Failed
|
💔 Build Failed
|
…atterns by generating the filter disaplyName in the relevant components.
a2fef81
to
a3bb287
Compare
…rs/remove-index-patterns-2
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
💔 Build Failed |
💔 Build Failed |
retest |
💚 Build Succeeded |
…rs/remove-index-patterns-2
💚 Build Succeeded |
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.
code LGTM
…rs/remove-index-patterns-2
💚 Build Succeeded |
…rs/remove-index-patterns-2
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
* Get rid of addFiltersAndChangeTimeFilter * ts fix * remove timefilter dependency from filter manager * code review change * Fixed bug in tests * changeTimeFilter * Refactored mappers and filter service to have no dependency on indexPatterns by generating the filter disaplyName in the relevant components. * Fix map and flatten test * Fixed filter state manager test * Remove async from addFIlters and setFilters * Fixed saved objects test - removed (display)value from url * Make removeAll sync * defer setFilters and removeAll in dashboard controller - temp hack * fixed translation in filter view * update strings * Fixed range rendering * map range converter
* Get rid of addFiltersAndChangeTimeFilter * ts fix * remove timefilter dependency from filter manager * code review change * Fixed bug in tests * changeTimeFilter * Refactored mappers and filter service to have no dependency on indexPatterns by generating the filter disaplyName in the relevant components. * Fix map and flatten test * Fixed filter state manager test * Remove async from addFIlters and setFilters * Fixed saved objects test - removed (display)value from url * Make removeAll sync * defer setFilters and removeAll in dashboard controller - temp hack * fixed translation in filter view * update strings * Fixed range rendering * map range converter
There are some stackoverflow issues which were causing failures in master/7.x. Looking to revert this PR here in the meantime. |
@tylersmalley @chrisdavies |
Summary
Part of #44377
Refactored mappers and filter service to have no dependency on
indexPatterns
by generating and using the filter disaplyName only in the relevant components (FilterItem
,FilterView
,ApplyFiltersPopover
).indexPatterns
intoFilterManager
code.filter.meta.value
can now either be a string or a function that receives a formatter. I wanted to rename it todisplayValue
, but wasn't sure if this would't require further changes.setFilters
,addFilters
andremoveAll
synchronousChecklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers