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

Add easier searching by header value #4384

Open
2 tasks done
xkamil opened this issue Feb 19, 2024 · 1 comment
Open
2 tasks done

Add easier searching by header value #4384

xkamil opened this issue Feb 19, 2024 · 1 comment
Labels
status/triage Issues pending maintainers triage type/feature A new feature

Comments

@xkamil
Copy link

xkamil commented Feb 19, 2024

Issue submitter TODO list

  • I've searched for an already existing issues here
  • I'm running a supported version of the application which is listed here and the feature is not present there

Is your proposal related to a problem?

I'm often searching messages by headers and so lot of ppl in my company. The issue is that I always have to remember to write this groovy code. For example: headers.someheader.contains('some-value').
This is frustrating when I do it often

Describe the feature you're interested in

Make search input not only search messages by body containing this search input but also headers values

Describe alternatives you've considered

No response

Version you're running

0.7.1

Additional context

I already did some update in codebase locally and I'm using it.

com.provectus.kafka.ui.emitter.MessageFilters
static Predicate<TopicMessageDTO> containsStringFilter(String string) { return msg -> StringUtils.contains(msg.getKey(), string) || StringUtils.contains(msg.getContent(), string) || msg.getHeaders().values().stream().anyMatch(h -> StringUtils.contains(h, string)); }

@xkamil xkamil added status/triage Issues pending maintainers triage type/feature A new feature labels Feb 19, 2024
Copy link

Hello there xkamil! 👋

Thank you and congratulations 🎉 for opening your very first issue in this project! 💖

In case you want to claim this issue, please comment down below! We will try to get back to you as soon as we can. 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Issues pending maintainers triage type/feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant