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

Added UI panel for http header filters #1345

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Conversation

druminski
Copy link
Contributor

Added Http header filter panel in subscription view. The panel is displayed below Filter panel as in the attached image. By default Http header panel is disabled. It can be enabled by showHeadersFilter flag in Hermes console config. At the moment the panel dosen't support Debug mode and matching strategy, but they can be added in the future.

Zrzut ekranu 2021-06-2 o 15 53 18

@@ -20,7 +21,8 @@
FilterChainFactory filterChainFactory() {
List<SubscriptionMessageFilterCompiler> subscriptionFilterCompilers = Arrays.asList(
new AvroPathSubscriptionMessageFilterCompiler(),
new JsonPathSubscriptionMessageFilterCompiler()
new JsonPathSubscriptionMessageFilterCompiler(),
new HeaderSubscriptionMessageFilterCompiler()
Copy link
Member

Choose a reason for hiding this comment

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

As far as I remember, hermes-management is aware of the filters only because it has a logic related to the filters debugger. As the debugger doesn't currently support header filters, I think this change is not needed.

Copy link
Contributor Author

@druminski druminski Jun 7, 2021

Choose a reason for hiding this comment

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

You are right, this change is not needed. However I added it to simplify adding support for headers dubbuger in the future. Thanks to this line only changes on frontend side are needed now and next developer doesn't have to analyze backend side at all.

@druminski druminski merged commit 235567a into master Jun 7, 2021
@druminski druminski deleted the http-header-filters-ui branch June 7, 2021 12:32
@@ -29,8 +29,9 @@ console:
label: DAYS
subscription:
showHeadersFilter: true
showFixedHeaders: false
Copy link
Contributor

Choose a reason for hiding this comment

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

This should also be added to ConsoleProperties.

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.

4 participants