(run: Run)
| 225 | } |
| 226 | |
| 227 | getParents(run: Run) { |
| 228 | const parents: Run[] = [] |
| 229 | let currentRun = run |
| 230 | while (currentRun.parent_run_id) { |
| 231 | const parent = this.runMap.get(currentRun.parent_run_id) |
| 232 | if (parent) { |
| 233 | parents.push(parent) |
| 234 | currentRun = parent |
| 235 | } else { |
| 236 | break |
| 237 | } |
| 238 | } |
| 239 | return parents |
| 240 | } |
| 241 | |
| 242 | getBreadcrumbs(run: Run) { |
| 243 | const parents = this.getParents(run).reverse() |