kobotoolbox / kpi

kpi is the (frontend) server for KoboToolbox. It includes an API for users to access data and manage their forms, question library, sharing settings, create reports, and export data.
https://www.kobotoolbox.org
GNU Affero General Public License v3.0
126 stars 170 forks source link

Change HXL import header to instance::hxl #2581

Open tinok opened 4 years ago

tinok commented 4 years ago

Description

When kpi added support for importing HXL tags there was no support yet in pyxform. The column for importing then was required to be called hxl. Now there is support in pyxform using the column header instance::hxl. kpi should support this new header format.

It may be necessary to review how hxl tags are stored and sent along when deploying (as they are currently not included in the deployed form) given that pyxform supports this now.

Steps to Reproduce

  1. Import a form with instance::hxl tags
  2. Deploy form
  3. Collect data
  4. View in table or export to XLS

Expected behavior

HXL tags visible.

Actual behavior

HXL tags not included.

tinok commented 4 years ago

The main argument is compatibility since instance::hxl was promoted as a method by Martijn in 2018 on xlsform.org and may now be used by ODK users elsewhere.