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
jsonLogic expression loading issue with some-in #1005
Comments
I experienced the same problem during regression testing after migration from v5 to v6. For more context, there is a warning in a console during importing json logic: Looks like there is a mismatch between handling for 'some-in' operator here:
and here:
because for the simplest config with only 2 operators select_any_in/select_not_any_in conv.operators has following value:
where opk equals "some-in/1" and that's "if" block below is called:
|
I have the same issue. When is it going to be fixed? is there any urgent fix that I can use in my code for now? |
Issue description
It seems to be an issue when loading a jsonLogic expression that includes some-in operator.
The same expression generated from the component itself cannot be loaded back.
Having an expression like the following:
We cannot load it using
loadFromJsonLogic
Steps to reproduce
Working sample can be found here https://stackblitz.com/edit/react-rdkejr?file=src%2FApp.js
These are the key parts:
A custom type to include reduced widgets and operators list:
A field definition that uses that custom type. We need an operator that allows multiple items typed by user,
select_any_in
produces our expected jsonLogic expression format:Expected behavior
We can generate the following expression that matches our needs (based on how data is structured):
But we cannot load it back:
Following the same steps with
equals
operator, all works as expected.The text was updated successfully, but these errors were encountered: