What's changed
Bug Fixes (2)
-
attachments: accept media questions from every version a submission spans (#7567)
Files attached to a submission are no longer dropped when the form's
question was renamed while the form was open.Attaching a file to a form that was renamed or reorganised in the
meantime used to lose that file. The submission went through, the
filename stayed in the data, but the file itself was gone with no error
shown anywhere. It happened whenever the question moved between the
moment the form was loaded and the moment the record reached the server:
a form edited and redeployed in another tab, or a record filled in
offline and sent days later.Those files are kept now. A submission is matched against every version
of the form it has been through, not only against the one deployed
today. -
exports: drop legacy _notes and _tags columns (#7587)
Data exports no longer include the
_notesand_tagscolumns.Notes and tags on submissions came from the legacy KoboCAT API, which is
gone, so nobody can fill them in anymore. Exports kept the two columns
anyway, which was confusing. They are removed from CSV, XLSX and SPSS
labels exports, along with the_submission__notesand
_submission__tagscolumns on repeat group sheets.
Performance (1)
- attachments: parse form media xpaths with ElementTree (#7579)
Submitting to a large project is faster, and a malformed form no longer
fails the submission it was carrying.Every submission that arrives has its form read to find out which
questions can hold a file. That reading was rebuilding the whole form
each time, work that was thrown away immediately afterwards. It now
reads only what it needs, which takes about a tenth of the time on a big
project.
Continous Integration (2)
Chores (1)
- pull transifex translations for 2.026.33b (dacfeb3)
Full Changelog: https://github.com/kobotoolbox/kpi/compare/2.026.33a..2.026.33b