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

FIO-9508: includeAll flag now works with nested components #212

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

brendanbond
Copy link
Contributor

@brendanbond brendanbond commented Jan 10, 2025

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-9508

Description

We added an includeAll flag to the eachComponentData family of functions to ensure that even when there is no submission data associated with a component you could opt in to iterating over it. However, this was not taking into account components nested in an e.g. data grid. This PR fixes that issue, commits a small formatting change, and adds an unrelated utility function for use in our other libraries.

Breaking Changes / Backwards Compatibility

n/a

Dependencies

n/a

How has this PR been tested?

Automated / manual testing

Checklist:

  • I have completed the above PR template
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • My changes include tests that prove my fix is effective (or that my feature works as intended)
  • New and existing unit/integration tests pass locally with my changes
  • Any dependent changes have corresponding PRs that are listed above

2. Added a check for "includeAll" in eachComponentData when dealing w/ nested components (e.g. data grid) that will iterate over children regardless of whether there's data
3. Added a "getStringFromComponentPath" utility method
Copy link
Contributor

@mikekotikov mikekotikov left a comment

Choose a reason for hiding this comment

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

LGTM

@mikekotikov mikekotikov mentioned this pull request Jan 13, 2025
7 tasks
@travist
Copy link
Member

travist commented Jan 13, 2025

+1

@lane-formio lane-formio merged commit f014928 into master Jan 13, 2025
8 checks passed
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