Skip to content

Conversation

@lindsay-stevens
Copy link
Contributor

Closes #779
Addresses test coverage feedback in #776

Why is this the best possible solution? Were any other approaches considered?

In xls2json there are some code blocks that process specific question types, with a continue to the next row at the end of most blocks. But since the trigger processing code was placed after those blocks, it wasn't being done for question types with a block. Now the trigger processing is placed before those blocks. The issue resulted in the nested setvalue element not being added to the body control.

Also adds test coverage for parsing comma + space scenarios

What are the regression risks?

Fixes a regression. It's possible that external code is calling the builder class without providing processed trigger references, so for that scenario a check/error was added to avoid iterating the unprocessed string (as occurred for the #779 bug).

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No

Before submitting this PR, please make sure you have:

  • included test cases for core behavior and edge cases in tests
  • run python -m unittest and verified all tests pass
  • run ruff format pyxform tests and ruff check pyxform tests to lint code
  • verified that any code or assets from external sources are properly credited in comments

- in xls2json there are some code blocks that process specific question
  types, with a `continue` to the next row at the end of most blocks.
  But since the trigger processing code was placed after those blocks,
  it wasn't being done for question types with a block. Now the trigger
  processing is placed before those blocks. The issue resulted in the
  nested setvalue element not being added to the body control.
- also adds test coverage for parsing comma + space scenarios
Copy link
Contributor

@lognaturel lognaturel left a comment

Choose a reason for hiding this comment

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

Thank you!

@lognaturel lognaturel merged commit 093a058 into XLSForm:master Sep 16, 2025
13 checks passed
@lindsay-stevens lindsay-stevens deleted the pyxform-779 branch September 16, 2025 06:04
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.

Putting reference in trigger column leads to calculation being silently ignored

2 participants