Skip to content

make geonames search param configurable#3198

Merged
petrjasek merged 2 commits intosuperdesk:release/2.11from
petrjasek:fix-geonames-search-param
Apr 14, 2026
Merged

make geonames search param configurable#3198
petrjasek merged 2 commits intosuperdesk:release/2.11from
petrjasek:fix-geonames-search-param

Conversation

@petrjasek
Copy link
Copy Markdown
Member

so we can change it to name_startsWith for ANSA
to restore previous behaviour.

SDANSA-582

Purpose

What has changed

Steps to test

Resolves: #[issue-number]

so we can change it to `name_startsWith` for ANSA
to restore previous behaviour.

SDANSA-582
Copilot AI review requested due to automatic review settings April 14, 2026 09:38
Copy link
Copy Markdown
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

Adds configurability for the GeoNames search query parameter so deployments (e.g., ANSA) can switch from name to name_startsWith and restore prior autocomplete behavior.

Changes:

  • Introduces GEONAMES_SEARCH_PARAM setting (env-configurable) with default name.
  • Updates places autocomplete to use the configured GeoNames search parameter when calling the GeoNames search endpoint.

Reviewed changes

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

File Description
superdesk/places/places_autocomplete.py Uses configurable GeoNames query param key when constructing search request parameters.
superdesk/default_settings.py Adds GEONAMES_SEARCH_PARAM default setting and documentation comment.

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

@petrjasek petrjasek merged commit 3f43892 into superdesk:release/2.11 Apr 14, 2026
14 of 16 checks passed
@petrjasek petrjasek deleted the fix-geonames-search-param branch April 14, 2026 12:28
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.

3 participants