Skip to content

Conversation

@jnm
Copy link
Member

@jnm jnm commented Dec 17, 2025

@coveralls
Copy link

Coverage Status

coverage: 86.72% (+0.05%) from 86.674%
when pulling eabc455 on refactor-subsequences-2025--DEV-1301-update-formpack
into f6d4792 on main.

jnm added a commit to kobotoolbox/kpi that referenced this pull request Dec 17, 2025
* update formpack requirement (see kobotoolbox/formpack#337)
* exclude qualitative analysis note (`qualNote`) questions from export columns
* restore `name` from earlier refactor work in `get_output_fields()`
* correct order of fields in `analysis_form_json`
* restore `pack.extend_survey()` during exports, missing after evil merge
@jnm jnm self-assigned this Dec 17, 2025
@jnm jnm marked this pull request as ready for review December 17, 2025 04:48
rgraber
rgraber previously approved these changes Dec 17, 2025
Copy link
Contributor

@rgraber rgraber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to my limited knowledge of formpack

except KeyError:
return ''

# sure would be nice if this were a dict with uuids as keys instead of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tell me about it

@rgraber rgraber self-requested a review December 17, 2025 16:10
@rgraber rgraber dismissed their stale review December 17, 2025 16:11

Premature

Copy link
Contributor

@rgraber rgraber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for real

@rgraber rgraber merged commit 4eb19e3 into main Dec 18, 2025
1 check passed
rgraber added a commit to kobotoolbox/kpi that referenced this pull request Dec 18, 2025
### 💭 Notes

* use `value` instead of `val` in qualitative analysis responses to
match rest of refactor
* update formpack requirement (see
kobotoolbox/formpack#337)
* match pre-refactor behavior by excluding qualitative analysis note
(`qualNote`) questions from export columns
* restore `name` from earlier refactor work in `get_output_fields()`
* correct order of fields in `analysis_form_json`
* restore `pack.extend_survey()` during exports, missing after evil
merge 👿

### 👀 Preview steps

1. Make sure your environment has been rebuilt or whatever's necessary
to pick up the new formpack requirement
2. Make a project with an audio question
3. Collect a submission
4. Add every kind of transcript, translation, and qualitative analysis
question (and response) to the audio response in that submission
* FYI I wrote notes in the description of DEV-1301 (internal
[link](https://linear.app/kobotoolbox/issue/DEV-1301/update-formpack-to-accept-new-shape-of-data))
about how to do this with `curl`
6. Run an XLSX export of the project
7. Make sure all the export includes the transcript, translation, and
all qualitative analysis responses
8. Make sure the export columns are in the proper order
9. Make sure nothing appears that shouldn't

---------

Co-authored-by: rgraber <becca.graber@kobotoolbox.org>
@jnm jnm deleted the refactor-subsequences-2025--DEV-1301-update-formpack branch December 19, 2025 04:31
rgraber added a commit to kobotoolbox/kpi that referenced this pull request Dec 24, 2025
* use `value` instead of `val` in qualitative analysis responses to
match rest of refactor
* update formpack requirement (see
kobotoolbox/formpack#337)
* match pre-refactor behavior by excluding qualitative analysis note
(`qualNote`) questions from export columns
* restore `name` from earlier refactor work in `get_output_fields()`
* correct order of fields in `analysis_form_json`
* restore `pack.extend_survey()` during exports, missing after evil
merge 👿

1. Make sure your environment has been rebuilt or whatever's necessary
to pick up the new formpack requirement
2. Make a project with an audio question
3. Collect a submission
4. Add every kind of transcript, translation, and qualitative analysis
question (and response) to the audio response in that submission
* FYI I wrote notes in the description of DEV-1301 (internal
[link](https://linear.app/kobotoolbox/issue/DEV-1301/update-formpack-to-accept-new-shape-of-data))
about how to do this with `curl`
6. Run an XLSX export of the project
7. Make sure all the export includes the transcript, translation, and
all qualitative analysis responses
8. Make sure the export columns are in the proper order
9. Make sure nothing appears that shouldn't

---------

Co-authored-by: rgraber <becca.graber@kobotoolbox.org>
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.

4 participants