Commit fe4e5e8
Fix import progress streaming and pass names on single-template import (#443)
Per-project import handlers now support NDJSON streaming when the client
sends Accept: application/x-ndjson, matching the unified endpoint. This
fixes the progress display (per-resource events) and the post-import
summary (the NDJSON done event uses the correct "imported" field name).
Also passes discovered names to executeImport even for the count===1
case, ensuring the import is scoped to the exact resource that was
discovered.
Co-authored-by: Scion Agent (template-import-selector-lead) <agent@scion.dev>1 parent 95fc666 commit fe4e5e8
2 files changed
Lines changed: 25 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10204 | 10204 | | |
10205 | 10205 | | |
10206 | 10206 | | |
10207 | | - | |
10208 | | - | |
10209 | | - | |
10210 | | - | |
| 10207 | + | |
| 10208 | + | |
| 10209 | + | |
| 10210 | + | |
10211 | 10211 | | |
10212 | | - | |
| 10212 | + | |
10213 | 10213 | | |
| 10214 | + | |
| 10215 | + | |
| 10216 | + | |
| 10217 | + | |
| 10218 | + | |
| 10219 | + | |
| 10220 | + | |
10214 | 10221 | | |
10215 | 10222 | | |
10216 | 10223 | | |
| |||
10296 | 10303 | | |
10297 | 10304 | | |
10298 | 10305 | | |
10299 | | - | |
10300 | | - | |
10301 | | - | |
10302 | | - | |
| 10306 | + | |
| 10307 | + | |
| 10308 | + | |
| 10309 | + | |
10303 | 10310 | | |
10304 | | - | |
| 10311 | + | |
10305 | 10312 | | |
| 10313 | + | |
| 10314 | + | |
| 10315 | + | |
| 10316 | + | |
| 10317 | + | |
| 10318 | + | |
| 10319 | + | |
10306 | 10320 | | |
10307 | 10321 | | |
10308 | 10322 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
0 commit comments