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

Further StoreAction for type operations #205

Open
elbakerino opened this issue Oct 14, 2022 · 0 comments
Open

Further StoreAction for type operations #205

elbakerino opened this issue Oct 14, 2022 · 0 comments
Labels
core enhancement New feature or request
Projects

Comments

@elbakerino
Copy link
Member

elbakerino commented Oct 14, 2022

Arrays provide further options, which are currently handled directly inside of a widget, that should be moved to StoreActions, to be able to intercept them and e.g. implement SelectMulti array updating other than set or update.

Check for further type specific actions which - which are commonly supported by NoSQL/SQL engines.

All actions could, because of their nature, be in conflict with keyword default, as they don't rely on the data in the schema but must rely on data of "store.value or external system".

  • array
    • list-delete-value to remove all occurences of the given value from the array
    • list-add-value to add the given value from the array if not exists
    • ? sortResult as new boolean option on each list-item- action to specify if it should be sorted afterwards
  • int|number
    • number-incr for increasing the value by 1 (or arbitrary?)
    • number-decr for decreasing the value by 1 (or arbitrary?)
  • boolean
    • boolean-toggle for changing true to false and vise versa, thus defaulting to true on first set (default conflict)
  • ?
@elbakerino elbakerino added enhancement New feature or request core labels Oct 14, 2022
@elbakerino elbakerino added this to To do in ui-schema via automation Oct 14, 2022
@elbakerino elbakerino changed the title Further array StoreAction Further StoreAction for type operations Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
ui-schema
  
To do
Development

No branches or pull requests

1 participant