Commit a593cb7
authored
Refactor _rewrite_inner_scalar function for improved step reference handling (#2352)
- Adjust the order of replacement steps to ensure child step renames occur before parameter bindings, preserving parent step references in bindings.
- Update unit tests to reflect the new order and add a test for preserving parent step references in parameter bindings.1 parent e108b3d commit a593cb7
2 files changed
Lines changed: 26 additions & 18 deletions
File tree
- inference/core/workflows/execution_engine/v1/inner_workflow
- tests/workflows/unit_tests/execution_engine/inner_workflow
Lines changed: 14 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
293 | 295 | | |
294 | 296 | | |
295 | 297 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | 298 | | |
306 | | - | |
| 299 | + | |
307 | 300 | | |
308 | 301 | | |
309 | 302 | | |
310 | | - | |
| 303 | + | |
311 | 304 | | |
312 | 305 | | |
313 | 306 | | |
314 | 307 | | |
315 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
316 | 313 | | |
317 | 314 | | |
318 | 315 | | |
| |||
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
234 | 245 | | |
235 | 246 | | |
236 | 247 | | |
| |||
0 commit comments