provectus / kafka-ui

Open-Source Web UI for Apache Kafka Management
Apache License 2.0
9.58k stars 1.17k forks source link

Search with groovy fails #4437

Closed HStoyanov-augglobal closed 4 months ago

HStoyanov-augglobal commented 5 months ago

Issue submitter TODO list

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:

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

github-actions[bot] commented 5 months ago

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. πŸ‘€

Haarolean commented 5 months ago

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.

MatthiasGabriel commented 4 months ago

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

oxie commented 4 months ago

@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

HStoyanov-augglobal commented 4 months ago

@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

oxie commented 3 months ago

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

  values:
    env: 
    - name: filtering.groovy.enabled
      value: "true"
Haarolean commented 3 months ago

please put it in the documentation:

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