Hi, is there any way to link the designer with github, should be nice to track all changes made to the questionnaire up to the final version.
Iâm really interested in the answer to this great questionâparticularly, if the dev team sees a more elegant way or something more akin to a CI/CD pipleine.
I do see a crude way of doing this:
- Export the questionnaire in JSON format. This comes when you export data from your data collection server with metadata.
- Post the questionnaire to GitHub, since JSON is simply a plain text document
- Rinse and repeat as the questionnaire evolves.
The short answer is no - all data, including questionnaire documents are stored in a database (not always in a âsingle documentâ format but distributed/normalized based on the application need).
Manual way, as @arthurshaw2002 suggested is possible, just as a coincidence I was thinking exactly the same question yesterday, (export) and then accumulate questionnaire versions as versioned files.
If you think of âjustâ storing files, git/github doesnât have any special advantage over onedrive/dropbox etc files storage. If the offline backup is the main goal, periodically dumping the questionnaire package, (naming it appropriately) and storing somewhere would work.
But if you really want to take advantage of visualizing the differences between versions, then unfortunately (or at least in my opinion) json doesnât serve you well, it is to verbose - you move one question (and can see this in the Designer history as âquestion movedâ) and in json diff you will be presented that a section is missing in one part of the (large) file and new section is added in the other. To get the same conclusion that question was moved you will have to make bigger mental effort looking at the raw json.
Iâd think that having âbetterâ history inside the Designer would be helpful to me - when I add/modify validation expression, instead of seeing âquestion was updatedâ it would be great to see the change in the validation string, same applies when I change type, question text, etc etc. As Designer application âknowsâ at the moment of registering the change what exactly was affected. Recovering the same meaning from json files, although possible, would be too much hassle to do outsideâŚ
Good point, @zurab , about JSON being so verbose and the diffs probably difficultly to interpret.
If âbetterâ history in Designer is of interest, hereâs an old feature request. Hopefully better ideas will previal than my modest suggestions.
thanks @zurab and @arthurshaw2002, this is field with potential to work in the future. Now, that I see you are currently working in Designer. I wonder if there are courses to improve my skills in this tool?