Skip to content

Comments

fix: bug where one missing address column would fail geocoding, even when other columns exist#329

Merged
joaquimds merged 2 commits intomainfrom
fix/geocode-when-one-address-column-missing
Feb 19, 2026
Merged

fix: bug where one missing address column would fail geocoding, even when other columns exist#329
joaquimds merged 2 commits intomainfrom
fix/geocode-when-one-address-column-missing

Conversation

@joaquimds
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the geocoding logic where the presence of all address columns was required, even though the system can construct an address from any subset of available columns. The fix also improves the UI by allowing users to remove previously selected columns that no longer exist in the data source.

Changes:

  • Modified address column validation to check for at least one column instead of requiring all columns
  • Updated UI to include previously selected columns in the dropdown options for removal

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/server/mapping/geocode.ts Changed validation logic from requiring all address columns to requiring at least one, enabling geocoding with partial address data
src/app/(private)/data-sources/[id]/components/GeocodingConfigFields.tsx Added logic to merge current column definitions with previously selected columns so users can remove stale column selections

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@joaquimds joaquimds merged commit be19e22 into main Feb 19, 2026
1 check passed
@joaquimds joaquimds deleted the fix/geocode-when-one-address-column-missing branch February 19, 2026 14:40
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