finos/perspective

Perspective Viewer not updating when group by and filter is applied

yuj2i0 opened this issue · 4 comments

Steps to Reproduce:

I happened to come across, when I group by an column then apply an additional filter, the upgrades aren't coming through.
Checking the console logs this seems to be related to the recent binary encoding that has happened from 2.10.1 -> 3.0.0
image

It seems like once the number of character exceed 12, the encoding error appears.
Filter values works
ABCDEFGHIJKL

Filter values fails
ABCDEFGHIJKLM
AAAAAAAAAAAAA

Expected Result:

The viewer should not hang and encounter this error

Actual Result:

Refer to screenshot

Environment:

Perspective Version 3.0.3

Additional Context:

The API changed from 2.x to 3.x so it is likely due to you not properly upgrading your code.

If you can post a reproducible example that would allow us to help, otherwise there is not enough info here to go on. Does this reproduce on the editable example?

The API changed from 2.x to 3.x so it is likely due to you not properly upgrading your code.

If you can post a reproducible example that would allow us to help, otherwise there is not enough info here to go on. Does this reproduce on the editable example?

image
Thanks for the quick reply, Yes this is reproduced in the editable example aswell, select one of the option in customer name where number of characters exceed 12
For example Adam Hart work

Yes, I can reproduce this by choosing "Adam Bellavance" in the example, ("Adam Hart" is not 12 characters long). Thanks for the repro!

Ah my bad for the confusion, my point was the filtering works for Adam Hart!

I think this encoding error is also causing problems when the filter is applied and the update aren't coming through to the client
You can replicate this by applying updates to Adam Bellavance when filtered on him

This encoding errors seems only appears when running in client-server replicate mode of perspective