Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit empty group labels when generating XML #227

Merged
merged 1 commit into from Mar 10, 2021

Conversation

jnm
Copy link
Member

@jnm jnm commented Dec 3, 2020

Goal: make formpack-to-XML conversion behave the same way as
formpack-to-XLSForm-to-XML conversion. The better those match, the
better KPI's previews will match its deployed forms.

In this particular case, pyxform discarded empty cells when loading from
XLSForm, but formpack was preserving empty strings when sending Python
structures to pyxform for conversion to XML. One consequence of this was
empty translated labels being shown for groups in KPI previews, i.e.
kobotoolbox/kpi#2707.

Goal: make formpack-to-XML conversion behave the same way as
formpack-to-XLSForm-to-XML conversion. The better those match, the
better KPI's previews will match its deployed forms.

In this particular case, pyxform discarded empty cells when loading from
XLSForm, but formpack was preserving empty strings when sending Python
structures to pyxform for conversion to XML. One consequence of this was
empty translated labels being shown for groups in KPI previews, i.e.
kobotoolbox/kpi#2707.
@jnm jnm requested a review from dorey December 3, 2020 08:07
@jnm jnm assigned dorey Dec 3, 2020
@coveralls
Copy link

coveralls commented Dec 3, 2020

Coverage Status

Coverage increased (+0.3%) to 84.133% when pulling 2af00be on kobotoolbox/kpi#2707-omit-empty-group-labels into 2d68ce0 on master.

@dorey
Copy link
Contributor

dorey commented Mar 10, 2021

I tested this branch and it looks good and behaves as it should. 👍

@dorey dorey merged commit b52d29b into master Mar 10, 2021
@jnm
Copy link
Member Author

jnm commented Mar 16, 2021

thanks!

@jnm jnm deleted the kobotoolbox/kpi#2707-omit-empty-group-labels branch February 24, 2022 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants