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

Odd Error that hangs the UI #2868

Closed
yuj2i0 opened this issue Dec 4, 2024 · 3 comments · Fixed by #2882
Closed

Odd Error that hangs the UI #2868

yuj2i0 opened this issue Dec 4, 2024 · 3 comments · Fixed by #2882
Labels
bug Concrete, reproducible bugs

Comments

@yuj2i0
Copy link

yuj2i0 commented Dec 4, 2024

image

Copy and paste the JSON Config below to the Editable Perspective Example

{ "version": "3.1.3", "plugin": "Datagrid", "plugin_config": { "columns": {}, "edit_mode": "EDIT", "scroll_lock": false }, "columns_config": {}, "settings": true, "theme": "Pro Light", "title": null, "group_by": [ "Country", "State", "City", "Category" ], "split_by": [], "columns": [ "Profit", "Sales" ], "filter": [ [ "Customer Name", "in", "Aaron Bergman" ], [ "Product Name", "in", [ "\"\"While you Were Out\"\" Message Book", "One Form per Page" ] ], [ "Region", "==", "East" ], [ "Category", "==", "" ] ], "sort": [], "expressions": {}, "aggregates": {} }

https://perspective.finos.org/blocks/editable/index.html

Choose Category as Furniture
Then backspace so it's empty, the UI hangs
image

@texodus texodus added the bug Concrete, reproducible bugs label Dec 4, 2024
@colin-langan
Copy link

Same (similar?) error when filtering on multiple values.

"filter": [
[
"Name",
"in",
"Fred"
]
]

is ok, but

"filter": [
[
"Name",
"in",
[ "Fred", "Harry" ]
]
]

causes the UI to hang with the error posted by yuj2i0.

@yuj2i0
Copy link
Author

yuj2i0 commented Dec 4, 2024

Same (similar?) error when filtering on multiple values.

"filter": [ [ "Name", "in", "Fred" ] ]

is ok, but

"filter": [ [ "Name", "in", [ "Fred", "Harry" ] ] ]

causes the UI to hang with the error posted by yuj2i0.

How I found this issue was the same use as above for my own application.
This issue seems to happen in above 3.1.3 and 3.1.8 of perspective
The condition to replicate doesn’t seem to have a consistent pattern, took me a while to find an example on the editable version

@finos finos deleted a comment from rob-tay Dec 18, 2024
@finos finos locked as off-topic and limited conversation to collaborators Dec 18, 2024
@texodus
Copy link
Member

texodus commented Dec 18, 2024

Locking as the comments have devolved. We are aware there is a serialization issue with filter strings in some cases.

@texodus texodus linked a pull request Dec 20, 2024 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants