Skip to content

fix(lists): import CSVs without dispatching enrichment - #5

Merged
msanvarov merged 1 commit into
mainfrom
fix/lists-import-no-enrichment
Nov 12, 2026
Merged

msanvarov merged 1 commit into
mainfrom
fix/lists-import-no-enrichment

Conversation

@msanvarov

Copy link
Copy Markdown
Member

cleanlist lists import (and enrich csv, which imports first) failed on every run in 0.2.0 with 422 enrichment_type is required when dispatch_enrichment=True: the API's CSV import defaults dispatch_enrichment to true and the CLI never sent it. The import is documented as free with no enrichment, so it now sends dispatch_enrichment: false.

Checked against staging with the built CLI: a 3-row CSV → rows_imported: 3, exit 0 (before: exit 2 with the 422). Found in the Central Toolset v1 QA re-run (2026-11-12). Tests not run, per the team's runtime-only rule.

`cleanlist lists import` and `enrich csv` failed on every run with 422
'enrichment_type is required when dispatch_enrichment=True': the CSV import
route dispatches enrichment unless told not to, and the CLI never said. The
import is documented as free with no enrichment (enrich csv quotes and runs
enrichment itself), so it now sends dispatch_enrichment: false.

Found in the Central Toolset v1 QA re-run, 2026-11-12. Checked against
staging: a 3-row CSV imports 3 rows, exit 0.
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Import Behavior
    • CSV imports no longer dispatch enrichment for imported data chunks. Enrichment remains available through the separate CSV enrichment flow.

CSV-import requests now set dispatch_enrichment to false. Comments describe the API behavior when enrichment dispatch is enabled without an enrichment_type.

Changes: CSV Import

Layer / File(s) Summary
CSV import request behavior
src/commands/lists.ts
Each CSV-import request sets dispatch_enrichment to false. Comments describe the API's dispatch behavior and its 422 response when enrichment_type is missing.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Merge Risk: Minimal · up to 849b0

This change stops CSV import from triggering enrichment, which was causing a 422 error. The author reports a successful staging run. No concrete merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: CSV import in lists no longer dispatches enrichment. The raw summary confirms that importCsv now sends dispatch_enrichment: false, so the title matches the single main chan…
Description check Passed The description explains the failure (a 422 from dispatch_enrichment defaulting to true) and the fix of sending dispatch_enrichment: false. It also records the staging check and the reason tests were …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: CSV import in lists no longer dispatches enrichment. The raw summary confirms that importCsv now sends dispatch_enrichment: false, so the title matches the single main change.

Full details: Description check

Explanation

The description explains the failure (a 422 from dispatch_enrichment defaulting to true) and the fix of sending dispatch_enrichment: false. It also records the staging check and the reason tests were not run. It relates directly to the changeset.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 4b2fb15b-003b-4175-8a03-0bde2ff723a1
Commits

Reviewing files that changed from the base of the PR and between 085d73d and 849b026.

Files selected for processing: 1

  • src/commands/lists.ts

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@msanvarov
msanvarov merged commit 016904d into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant