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

Smart filters stream issues

Open Haarolean opened this issue 3 years ago • 5 comments

If I do :

def animals = value.animals
return animals.any(x -> x.name == 'monkey')

I get zero results.

And of course if I do this in a class:

class ParseJson {

    static void main(String[] args) {
        def jsonSlurper = new JsonSlurper()
        def value = jsonSlurper.parseText('''
{
  "animals": [
    {
      "name": "monkey"
    }
  ]
}
''')

        def animals = value.animals
        boolean  x = animals.any(x -> x.name == 'monkey')
        println(x)
    }

}

it works.

Originally posted by @wind57 in https://github.com/provectus/kafka-ui/discussions/2581#discussioncomment-3647051

Haarolean avatar Sep 15 '22 10:09 Haarolean

@Haarolean Can you please assign this to me ?

shubhwip avatar Sep 16 '22 09:09 shubhwip

@shubhwip this does work properly. Though, we have a few other problems with smart filters, like not displaying errors on frontend in case of filter failures. I'll describe in details if you're still interested.

Haarolean avatar Sep 16 '22 13:09 Haarolean

@shubhwip this does work properly. Though, we have a few other problems with smart filters, like not displaying errors on frontend in case of filter failures. I'll describe in details if you're still interested.

Sure please describe then I will check further :).

shubhwip avatar Sep 16 '22 13:09 shubhwip

@Haarolean this should be closed. It seems that everything works as expected. Sorry for taking your time.

wind57 avatar Sep 17 '22 11:09 wind57

@Haarolean this should be closed. It seems that everything works as expected. Sorry for taking your time.

no worries, that's fine. There are still a few issues we're gonna address here.

Haarolean avatar Sep 18 '22 10:09 Haarolean