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

Search with groovy fails #4437

Closed
4 tasks done
HStoyanov-augglobal opened this issue Apr 25, 2024 · 9 comments
Closed
4 tasks done

Search with groovy fails #4437

HStoyanov-augglobal opened this issue Apr 25, 2024 · 9 comments
Labels
status/triage Issues pending maintainers triage type/bug Something isn't working

Comments

@HStoyanov-augglobal
Copy link

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running master-labeled docker image and the issue still persists there
  • 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 HStoyanov-augglobal added status/triage Issues pending maintainers triage type/bug Something isn't working labels Apr 25, 2024
Copy link

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
Copy link
Contributor

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
Copy link

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

@oxie
Copy link

oxie commented Jun 3, 2024

@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
Copy link
Author

HStoyanov-augglobal commented Jun 3, 2024

@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: 3dc4446#diff-bee1096f3c435f4f12a5bdda31ce9a16bdd2aa9463c3ad8e11ad97fb968bbec5R48

@oxie
Copy link

oxie commented Jun 5, 2024

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

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

@Haarolean
Copy link
Contributor

please put it in the documentation:

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

@abhineetsbhamra
Copy link

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

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

@oxie and @MatthiasGabriel can you plz guide what is the equivalent env var name for setting this flag? is it KAFKA_FILTERING_GROOVY_ENABLED?

@ll14m4n
Copy link

ll14m4n commented Nov 21, 2024

@abhineetsbhamra the env is FILTERING_GROOVY_ENABLED, not KAFKA_FILTERING_GROOVY_ENABLED. just checked myself, it works.

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/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants