Commit 7a87efe
committed
Skip redundant LoadAttributes in convert layer when batch-loaded
ToActionWorkflowRun and ToActionTask both call LoadAttributes
unconditionally, which re-queries repos and loads unused task steps
even when the list handler has already batch-loaded everything.
Guard both with a nil check on the already-populated field: skip
LoadAttributes when TriggerUser (runs) or Job (tasks) is set.1 parent 43d2ace commit 7a87efe
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
251 | | - | |
252 | | - | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
0 commit comments