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

[Discover][Unified Search][Alerting] Configurable filter menu options #6

Conversation

jughosta
Copy link

@jughosta jughosta commented May 10, 2022

Closes elastic#131813

Summary

This PR allows to configure which filter options should be hidden from panels. For Alerting we would like to hide pinning functionality.

Default behaviour:
May-10-2022 16-18-32

"Pinning" is hidden for Alerts in Discover page flyout:
May-10-2022 16-19-38

@@ -63,6 +63,8 @@ const withDebounce = debounce((execute: () => void) => execute(), 500, {
trailing: true,
});

const HIDDEN_FILTER_PANEL_OPTIONS: SearchBarProps['hiddenFilterPanelOptions'] = ['pinFilter'];
Copy link

Choose a reason for hiding this comment

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

@jughosta I think it's fine to create a PR to main excluding this file. seems just tests are missing. So we'd also get CI feedback.

@jughosta
Copy link
Author

Closing in favor of elastic#132037

@jughosta jughosta closed this May 11, 2022
@jughosta jughosta deleted the 131813-configuration-for-pinning branch May 11, 2022 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants