Skip to content

fix(api): keep CSV children bound to their parent rows (#351) - #363

Merged
BadgerOps merged 1 commit into
masterfrom
fix/351-csv-parent-rows
Oct 31, 2026
Merged

BadgerOps merged 1 commit into
masterfrom
fix/351-csv-parent-rows

Conversation

@BadgerOps

Copy link
Copy Markdown
Owner

Closes #351. Supersedes #356.

This is the contributor's commit from #356 (bd03219, authorship preserved via cherry-pick) carried onto current master. #356 could not be merged as-is: it conflicted with the changelog after the 0.23.7 and 0.23.8 releases, and its fork CI runs needed approval.

What the fix does (unchanged from #356)

CSV pool import reserves every ID declared in the file for its source row. A child whose parent row fails validation, placement, or is skipped as a duplicate reports parent row N failed instead of silently attaching to an existing pool with the old ID. Rows follow their dependencies regardless of file order or numeric ID order, and references to existing parents still work when their IDs are absent from the CSV. Shared placement rejects an unresolved ParentRef even when a stale ParentID was supplied. Lock, overlap rules and transaction boundaries are unchanged. Tests cover twelve CSV shapes on the memory and SQLite stores, and the verify-pool-overlap skill notes are updated.

Changes made while carrying it forward

  • The changelog entry moves from the PR's 0.23.7 heading to a new ## [0.23.9] - 2026-10-31 section, since v0.23.7 and v0.23.8 are already tagged. Both Helm charts advertise appVersion 0.23.9. Merging tags v0.23.9.

Verification

go build ./..., go test ./internal/api/ (default and -tags sqlite), just openapi-validate, just lint, just helm-check: see the PR checks and the comment below for local results.

🤖 Generated with Claude Code

@BadgerOps

Copy link
Copy Markdown
Owner Author

Local validation on 8c7060e: go build ./..., go test ./internal/api/ (default and -tags sqlite), just openapi-validate, just lint (0 issues), just helm-check: all green.

@BadgerOps
BadgerOps merged commit 7f7df72 into master Oct 31, 2026
18 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.

CSV pool import: a child whose parent row failed falls back to an existing pool with the same id

2 participants