Commit 0589e03
authored
feat: fix/enforce/address mappers nil handling (#7434)
<!-- Describe what has changed in this PR -->
**What changed?**
This:
- Adds some changes to make mappers nilsafe
- enforces nilaway in lint
<!-- Tell your future self why have you made these changes -->
**Why?**
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
**How did you test it?**
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
**Potential risks**
This is making a few mappers return nil to values which would previously
of paniced. This is probably not the right solution and they probably
should be changed to return an error. However, thats a larger set of
changes because the risks seem fairly minimal (register domain
specifically)
<!-- Is it notable for release? e.g. schema updates, configuration or
data migration required? If so, please mention it, and also update
CHANGELOG.md -->
**Release notes**
<!-- Is there any documentation updates should be made for config,
https://cadenceworkflow.io/docs/operation-guide/setup/ ? If so, please
open an PR in https://github.com/cadence-workflow/cadence-docs -->
**Documentation Changes**
---------
Signed-off-by: David Porter <[email protected]>1 parent b2826a8 commit 0589e03
4 files changed
+96
-51
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1194 | 1194 | | |
1195 | 1195 | | |
1196 | 1196 | | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1197 | 1202 | | |
1198 | 1203 | | |
1199 | | - | |
1200 | | - | |
| 1204 | + | |
| 1205 | + | |
1201 | 1206 | | |
1202 | 1207 | | |
1203 | 1208 | | |
| |||
2610 | 2615 | | |
2611 | 2616 | | |
2612 | 2617 | | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
2613 | 2622 | | |
2614 | 2623 | | |
2615 | 2624 | | |
2616 | 2625 | | |
2617 | | - | |
| 2626 | + | |
2618 | 2627 | | |
2619 | 2628 | | |
2620 | 2629 | | |
| |||
4102 | 4111 | | |
4103 | 4112 | | |
4104 | 4113 | | |
| 4114 | + | |
| 4115 | + | |
| 4116 | + | |
4105 | 4117 | | |
4106 | 4118 | | |
4107 | 4119 | | |
4108 | 4120 | | |
4109 | 4121 | | |
4110 | 4122 | | |
4111 | 4123 | | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
4112 | 4127 | | |
4113 | 4128 | | |
4114 | 4129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
115 | 123 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
126 | | - | |
127 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
128 | 135 | | |
129 | 136 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| |||
146 | 155 | | |
147 | 156 | | |
148 | 157 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
152 | 163 | | |
153 | 164 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
158 | 171 | | |
159 | 172 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
163 | 178 | | |
164 | 179 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
174 | 191 | | |
175 | 192 | | |
176 | 193 | | |
| |||
188 | 205 | | |
189 | 206 | | |
190 | 207 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
195 | 214 | | |
196 | 215 | | |
197 | 216 | | |
| |||
201 | 220 | | |
202 | 221 | | |
203 | 222 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
208 | 229 | | |
209 | 230 | | |
210 | | - | |
211 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
212 | 235 | | |
213 | 236 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
220 | 245 | | |
221 | 246 | | |
222 | 247 | | |
| |||
226 | 251 | | |
227 | 252 | | |
228 | 253 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
232 | 259 | | |
233 | 260 | | |
234 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6118 | 6118 | | |
6119 | 6119 | | |
6120 | 6120 | | |
| 6121 | + | |
| 6122 | + | |
| 6123 | + | |
6121 | 6124 | | |
6122 | 6125 | | |
6123 | 6126 | | |
| |||
0 commit comments