Repository navigation
Commit 9b05476
committed
fix(ingest): correct --write-mode to the real load-mode vocabulary
The --write-mode flag hardcoded value_parser = ["replace", "upsert"], which
contradicted what the CLI itself shows and what the service accepts:
- `ingest sources fields <family>` renders the server-reported per-family
write_modes (e.g. filesystem: replace, append), so the CLI advertised
`append` while the create flag rejected it with 'invalid value append'.
- The real service-wide load-mode vocabulary is replace/append (keyless) plus
the key-based upsert/update/delete (confirmed against the OpenAPI spec and
the dlt worker, which maps upsert -> dlt merge/upsert). The old pair both
omitted valid modes (append, update, delete) and offered `upsert` as if
universal, though it is key-gated.
Correct the enum to the full set so clap still catches typos up front while
accepting every mode a family may advertise; per-family/per-table support is
still enforced by the service. Fix the SKILL.md note likewise (it wrongly said
upsert needs a continuous bucket ingest; it needs a declared key).
Closes #2781 parent 261848e commit 9b05476
2 files changed
Lines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
0 commit comments