Commit 493cb18
committed
Fix collection job state not preserved during history export/import
Fixes #20450
Two issues were causing collection job_state_summary to be lost:
1. Export filtering: Collections with state != "ok" were skipped during export
due to using `break` instead of `continue`. This prevented error-state
collections from being exported entirely.
2. Job association: During import, when restoring jobs with output collections,
the HDCA's job reference was not being set. The job_state_summary property
relies on this relationship to aggregate job states.
Changes:
- Remove state filter that skipped non-ok collections during export
- Set HDCA.job during job import to restore the job state link1 parent 8f35e5a commit 493cb18
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1821 | 1821 | | |
1822 | 1822 | | |
1823 | 1823 | | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
1824 | 1827 | | |
1825 | 1828 | | |
1826 | 1829 | | |
| |||
2240 | 2243 | | |
2241 | 2244 | | |
2242 | 2245 | | |
2243 | | - | |
| 2246 | + | |
| 2247 | + | |
2244 | 2248 | | |
2245 | | - | |
2246 | | - | |
2247 | | - | |
2248 | | - | |
| 2249 | + | |
2249 | 2250 | | |
2250 | 2251 | | |
2251 | 2252 | | |
| |||
0 commit comments