magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
493 stars 93 forks source link

Make the region mapping served by search api configurable #3543

Closed t83714 closed 2 weeks ago

t83714 commented 2 weeks ago

Make the region mapping served by search api configurable

The region mapping data (used by frontend region filter map) that served by Search API is not configurable at this moment.

A hardcoded file here: https://github.com/magda-io/magda/blob/d1b28cbe77d400f8b0a05369dd1ad38c0ad71831/magda-search-api/src/main/resources/regionMapping.json will always be served at this moment.

This ticket is about making the region mapping data configurable via Search API helm chart, appConfig.regionMapping key.

The config value should be valid YAML equivalent to the default region mapping json data.

When the config is not provided, the hardcoded default region mapping file will still be served.

t83714 commented 2 weeks ago

closed via PR: https://github.com/magda-io/magda/pull/3542