Describe the issue
It's possible to upload a form without the prefix in its internalId:
contact forms -> contact: + form name
training cards form -> training: + form name.
To reproduce:
Create an xls form with some questions.
In xls file's settings sheet, add my_new_form in the form_id column.
Convert and upload the form using cht-conf.
Find the form in CouchDB.
Note that internalId doesn't have the prefix.
Additional information
Keep in mind that a form's properties.json file can override the internalId property in the form's CouchDB document.
This still should have the correct prefix for the form type.
Example:
Describe the issue It's possible to upload a form without the prefix in its
internalId
:contact:
+ form nametraining:
+ form name.To reproduce:
my_new_form
in theform_id
column.internalId
doesn't have the prefix.Additional information Keep in mind that a form's
properties.json
file can override theinternalId
property in the form's CouchDB document. This still should have the correct prefix for the form type. Example:Describe alternatives you've considered
internalId
_id
instead ofinternalID
for internal processes. But this one needs further exploration of the pros and cons.