Fix column mapping for tree polygons and enhance tests for geometry h… - #125
Conversation
|
Warning Review limit reached
Next review available in: 3 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughUpdates pipeline CSV fetching so geometry and column mappings can both be applied to ChangesAdditive column/geometry mapping
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@request-processor/src/application/core/workflow.py`:
- Line 318: The return type of `fetch_pipeline_csvs()` is inconsistent because
`not_mapped_columns` is initialized as a dict instead of a list, so paths that
skip `add_extra_column_mappings()` return `{}`. Update the `not_mapped_columns`
initializer in `workflow.py` to a list and keep the `fetch_pipeline_csvs()`
return path stable; verify the related logic around
`add_extra_column_mappings()` and the final return so `not_mapped_columns` is
always a list.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6121f7e9-9f8e-447e-8ee3-012548dc372e
📒 Files selected for processing (2)
request-processor/src/application/core/workflow.pyrequest-processor/tests/unit/src/application/core/test_workflow.py
2c826ca to
16fd1d1
Compare
What type of PR is this? (check all applicable)
Description
Fixes column mapping handling for tree polygon check URL workflows. Previously, when
column_mappingwas supplied, the workflow returned before applying thegeom_typemapping. This prevented the tree polygonWKT -> geometrymapping from being added.This change makes geometry mapping and explicit column mappings additive:
geom_typemapping is applied first, then any suppliedcolumn_mappingis appended afterwards. It also avoids returning early so the remaining pipeline CSVs continue to download.Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Run:
Confirmed the workflow now keeps
WKT -> geometryfor tree polygon data while also applying explicit column mappings such asna -> IGNORE.Added/updated tests?
[optional] Are there any post deployment tasks we need to perform?
None.
[optional] Are there any dependencies on other PRs or Work?
None.
Summary by CodeRabbit
column.csvoutput for pipeline downloads.