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

Fixed bug in the filters of flyouts #2935

Conversation

CPAlejandro
Copy link
Contributor

Hello team, we have resolved a bug that did not allow us to use filters in both Miter flyouts and Regulatory Compliance tables.
Closes. #2895.

@CPAlejandro CPAlejandro added the type/bug Bug issue label Feb 4, 2021
@CPAlejandro CPAlejandro added this to the Sprint 124 - WUI milestone Feb 4, 2021
@CPAlejandro CPAlejandro self-assigned this Feb 4, 2021
@CPAlejandro CPAlejandro linked an issue Feb 4, 2021 that may be closed by this pull request
Copy link
Contributor

@gabiwassan gabiwassan left a comment

Choose a reason for hiding this comment

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

LGTM!
Checked works properly

@@ -108,7 +108,7 @@ export const Discover = compose(
constructor(props) {
super(props);
this.KibanaServices = getDataPlugin();
this.filterManager = props.shareFilterManager ? this.KibanaServices.query.filterManager : new FilterManager(getUiSettings);
this.filterManager = props.shareFilterManager ? this.KibanaServices.query.filterManager : this.KibanaServices.query.filterManager;
Copy link
Member

Choose a reason for hiding this comment

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

Here, this.filterManager always has the same value, don't?

Why not, simplify to:

this.filterManager = this.Kibanaservices.query.filerManager

@Desvelao
Copy link
Member

Desvelao commented Feb 4, 2021

I tested the PR and it is working!

Copy link
Contributor

@frankeros frankeros left a comment

Choose a reason for hiding this comment

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

I tested it the filters are applied but are using the same Filter manager instance that the kibana discover search bar, it is not expected behavior.
I proceed to change it.

@frankeros frankeros merged commit e3a1a78 into 4.1-7.10 Feb 4, 2021
@frankeros frankeros deleted the Features/Fixed-bug-filters-in-floyouts-in-Regulatory-Compliance-and-Mitre branch February 4, 2021 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mitre detailed view: filters don't work at all
4 participants