Skip to content

fix(search-osm-aliases): return no suggestions until an index is built - #727

Merged
Medformatik merged 1 commit into
mainfrom
fix/osm-aliases-unpublished-index
Oct 31, 2026
Merged

Medformatik merged 1 commit into
mainfrom
fix/osm-aliases-unpublished-index

Conversation

@Medformatik

Copy link
Copy Markdown
Collaborator

Summary

The OSM alias suggestion provider queried osm_search.index_state on every suggestion request, also on a server where the data-manager has never built that index. Without the index the osm_search schema does not exist, so every such request failed in Postgres (relation "osm_search.index_state" does not exist; logged three times on 31 Oct on the home server, where the index has never been built). Search was unaffected apart from that: the failure was dropped and alias suggestions were simply missing.

The provider now first checks that the table exists and returns no suggestions until it does, like the notable-places provider already does and this integration's own health check (which reports unconfigured).

Validation:

  • search-osm-aliases tests: pass, including a new one asserting that the provider returns nothing and reads nothing more when the index does not exist.
  • turbo run check-types --filter=@openmapx/api..., biome check, pnpm check-duplicates: pass.

Release and upgrade impact

Product impact: ordinary

The provider read osm_search.index_state on every request, so a server whose data-manager never built the OSM alias index failed each suggestion request in Postgres. Check that the table exists first, as the notable-places provider and this integration's health check do.
@Medformatik Medformatik added the integration New or changed provider, source or backend integration label Oct 31, 2026
@Medformatik Medformatik self-assigned this Oct 31, 2026
@Medformatik
Medformatik enabled auto-merge (squash) October 31, 2026 21:38
@Medformatik
Medformatik merged commit a92c165 into main Oct 31, 2026
24 checks passed
@Medformatik
Medformatik deleted the fix/osm-aliases-unpublished-index branch October 31, 2026 21:47
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

integration New or changed provider, source or backend integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant