Commit c4865cd
authored
## Summary
<!-- Use "Fixes" to automatically close issue upon PR merge. Use "Work
for" when UAT is required. -->
Fixes #6898
## Changes proposed
<!-- What was added, updated, or removed in this PR. -->
Add `_apply_pivot_object_transform` and associated `pivot_object`
transform type to XML transformation logic.
Add `FORM_XML_TRANSFORM_RULES` to sf424a form to test XML generation
integration.
Add tests to mirror real-world example.
## Context for reviewers
<!-- Technical or background context, more in-depth details of the
implementation, and anything else you'd like reviewers to know about
that will help them understand the changes in the PR. -->
Our JSON structure for `forecasted_cash_needs` and possibly others in
the future differs slightly from the expected XML format. In XML, we
need to pivot the JSON object to create the correct structure. Here we
add the ability to do that in the JSON transform.
It's possible the PR doesn't need us to add `FORM_XML_TRANSFORM_RULES`,
but I figured we will need it anyway and best to add it for now.
## Validation steps
<!-- Manual testing instructions, as well as any helpful references
(screenshots, GIF demos, code examples or output). -->
See new unit tests.
1 parent 83a5ef1 commit c4865cd
File tree
4 files changed
+782
-11
lines changed- api
- src
- form_schema/forms
- services/xml_generation
- tests/src/services/xml_generation
4 files changed
+782
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
776 | 836 | | |
777 | 837 | | |
778 | 838 | | |
| |||
Lines changed: 82 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
15 | 67 | | |
16 | 68 | | |
17 | 69 | | |
| |||
44 | 96 | | |
45 | 97 | | |
46 | 98 | | |
47 | | - | |
48 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
49 | 105 | | |
50 | 106 | | |
51 | 107 | | |
52 | 108 | | |
53 | 109 | | |
54 | | - | |
55 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
56 | 116 | | |
57 | 117 | | |
58 | 118 | | |
59 | 119 | | |
60 | 120 | | |
61 | | - | |
62 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
63 | 127 | | |
64 | 128 | | |
65 | 129 | | |
| |||
89 | 153 | | |
90 | 154 | | |
91 | 155 | | |
| 156 | + | |
92 | 157 | | |
93 | 158 | | |
94 | 159 | | |
| |||
110 | 175 | | |
111 | 176 | | |
112 | 177 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
117 | 185 | | |
118 | 186 | | |
119 | 187 | | |
| |||
128 | 196 | | |
129 | 197 | | |
130 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
131 | 202 | | |
132 | 203 | | |
133 | 204 | | |
| |||
0 commit comments