caluma
caluma copied to clipboard
[RFC] Form Builder: Config Import / Export
A typical setup of a caluma installation involves multiple environments (e.g. dev, test, prod). To make form configuration more portable between different environments, it might make sense to offer some import/export functionality in the form builder. Some concrete ideas:
- export a question (including options etc.)
- export a form (including questions)
- export all forms (basically the entire
caluma_form
config)
During import, we might have to check if any of the slugs mentioned in the dump already exist in the database. If they do, I can see two options:
- remove everything associated with those slugs before the import ("hard" import)
- only create and update, no deletions (basically how
loaddata
works, "soft" import)
Example: I have question "foo" with options "a" and "b" in the database, and in the dump there is a question "foo" with options "b" and "c". The hard import would yield options "b" and "c", while the soft one would yield "a", "b" and "c".
cc @sbor23 @anehx @open-dynaMIX