kafka-ui icon indicating copy to clipboard operation
kafka-ui copied to clipboard

Search with groovy fails

Open HStoyanov-augglobal opened this issue 10 months ago • 3 comments

Issue submitter TODO list

  • [X] I've looked up my issue in FAQ
  • [X] I've searched for an already existing issues here
  • [X] I've tried running master-labeled docker image and the issue still persists there
  • [X] I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

Even the simplest ones fail - keyAsText != null, as taken from actual example. It doesn't display errors, no progress is evident (i.e. messages being counted/consumed).

When i hit the Submit button, the only things that changes on the page are:

  • the Submit button turning to Cancel, then back to Submit;
  • there is a DONE message, it is displayed near the text showing how many messages were consumed, download size, timing. That DONE message changes to Polling partitions: [0, 1, 2], then back to DONE.

Both changes happen for less than a second on topics of any size.

Expected behavior

When i add a new filter, it should be obvious that is doing the search - count messages being consumed, count download size...

Your installation details

83b5a60 v0.7.2

Steps to reproduce

  1. Choose topic
  2. Click Add Filters button
  3. Use filter like keyAsText != null (from example) or just about anything else whose results you can verify
  4. It will start search automatically, but can also hit the Submit button, behavior is the same

Screenshots

No response

Logs

No response

Additional context

No response

HStoyanov-augglobal avatar Apr 25 '24 15:04 HStoyanov-augglobal

Hello there HStoyanov-augglobal! 👋

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. 👀

github-actions[bot] avatar Apr 25 '24 15:04 github-actions[bot]

Hey, this repo is not maintained (#4255), but we've replaced groovy with CEL (and fixed the related CVE) here: https://github.com/kafbat/kafka-ui . I'll be glad to answer your questions there if any.

Haarolean avatar Apr 25 '24 16:04 Haarolean

@HStoyanov-augglobal You can set the configuration property "filtering.groovy.enabled" to true to re-enable groovy filtering.

MatthiasGabriel avatar May 16 '24 06:05 MatthiasGabriel

@HStoyanov-augglobal You can set the configuration property "filtering.groovy.enabled" to true to re-enable groovy filtering.

mate can you give more info where we have to set it as i dont see this option on any of the chart values.yaml or documentations about this option

oxie avatar Jun 03 '24 14:06 oxie

@oxie just add it as an environmental var set to true and restart the application.

Here's the commit where they added it, haven't found other documentation about it: https://github.com/provectus/kafka-ui/commit/3dc4446321716016e4c2517be4e04a692cdee7a7#diff-bee1096f3c435f4f12a5bdda31ce9a16bdd2aa9463c3ad8e11ad97fb968bbec5R48

HStoyanov-augglobal avatar Jun 03 '24 14:06 HStoyanov-augglobal

yes seems this is the solution, please put it in the documentation:

  values:
    env: 
    - name: filtering.groovy.enabled
      value: "true"

oxie avatar Jun 05 '24 07:06 oxie

please put it in the documentation:

@oxie this repo is no longer maintained, see my comment above

Haarolean avatar Jun 05 '24 08:06 Haarolean