ui icon indicating copy to clipboard operation
ui copied to clipboard

ScopeBuilder must support load/save

Open mkrecek234 opened this issue 3 years ago • 5 comments

demo https://dev.agiletoolkit.org/demos/form-control/scope-builder.php

Currently it outputs Unexpected non-scalar value on Save.

mkrecek234 avatar Aug 31 '22 07:08 mkrecek234

The problem is https://github.com/atk4/ui/pull/1730. How much is this important to you?

Previously, it used php serialization, which is a security problem, thus the ScopeBuilder save support was removed until it will be fixed.

mvorisek avatar Aug 31 '22 08:08 mvorisek

@mvorisek Sorry for opening a duplicate before and thanks for removing.

I played with scopebuilder and have submitted a fix for at least making scopebuilder and its demo work. We can insert a security warning in the demo or in the ScopeBuilder class to make people aware. Please see commit https://github.com/atk4/ui/tree/fix_scopebuilder

mkrecek234 avatar Mar 21 '24 08:03 mkrecek234

I am not interested to pursue ScopeBuilder as it does not align my interests. If you will, make your fix passing CI.

mvorisek avatar Mar 21 '24 09:03 mvorisek

@mvorisek CI except Behat test passes, still trying to get Behat adjusted to the improved demo which shows an example of real filtering on a crud. If you have a hint on how to move the Scope Builder behat test to the filter modal which first has to be open, rather than looking for the form control on the main page, very welcome.

mkrecek234 avatar Mar 21 '24 10:03 mkrecek234

Split that into 2 PRs. One to fix this issue with #1730 uncommented - you can reuse that PR if you want (restore branch and reopen it).

Once fixed, then let's add the filter incl. Behat.

mvorisek avatar Mar 21 '24 10:03 mvorisek