kafka-ui
kafka-ui copied to clipboard
Smart filters stream issues
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 Can you please assign this to me ?
@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.
@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 :).
@Haarolean this should be closed. It seems that everything works as expected. Sorry for taking your time.
@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.