Skip to content

Use c2casgiutils route_prefix instead of tilecloud-chain's own - #3798

Merged
sbrunner merged 2 commits into
2.0from
use-c2casgiutils-route-prefix
Aug 21, 2026
Merged

Use c2casgiutils route_prefix instead of tilecloud-chain's own#3798
sbrunner merged 2 commits into
2.0from
use-c2casgiutils-route-prefix

Conversation

@sbrunner

Copy link
Copy Markdown
Member

Summary

Replace tilecloud-chain's own route_prefix setting with the one provided by c2casgiutils (C2C__ROUTE_PREFIX), eliminating duplicated configuration and validation logic.

Context

tilecloud-chain defined its own route_prefix setting (TILECLOUD_CHAIN__ROUTE_PREFIX, default /tiles/) with a custom validator, while c2casgiutils already provides an equivalent route_prefix setting (C2C__ROUTE_PREFIX, default /) with identical normalization logic. This PR removes the duplication.

Implementation Details

  • Removed _to_route_prefix validator, RoutePrefix type alias, and route_prefix field from tilecloud_chain.settings.Settings
  • Updated all references (main.py, server.py, views/admin.py) to use c2c_settings.route_prefix from c2casgiutils
  • Added ENV C2C__ROUTE_PREFIX=/tiles/ in the Dockerfile base-all stage to preserve the /tiles/ default for Docker-based deployments
  • Updated schema.json, USAGE.rst, and CHANGELOG.md documentation
  • Regenerated configuration.py and CONFIG.md via jsonschema-gentypes

Impact/Risks

  • Breaking change: the environment variable changes from TILECLOUD_CHAIN__ROUTE_PREFIX to C2C__ROUTE_PREFIX
  • Users installing outside Docker will need to set C2C__ROUTE_PREFIX=tiles to maintain the previous default behavior
  • Docker image users are unaffected (default remains /tiles/)

@sbrunner
sbrunner changed the base branch from master to 2.0 August 21, 2026 13:47
Replace TILECLOUD_CHAIN__ROUTE_PREFIX with C2C__ROUTE_PREFIX (from
c2casgiutils) for the route prefix environment variable. Remove the
duplicate _to_route_prefix validator and RoutePrefix type from
tilecloud_chain.settings. Add C2C__ROUTE_PREFIX=/tiles/ in the
Dockerfile to preserve the existing default behavior.
@sbrunner
sbrunner force-pushed the use-c2casgiutils-route-prefix branch from 150bdba to cbd5d3b Compare August 21, 2026 13:49
From the artifact of the previous workflow run
@sbrunner
sbrunner merged commit e0d3c53 into 2.0 Aug 21, 2026
9 checks passed
@sbrunner
sbrunner deleted the use-c2casgiutils-route-prefix branch August 21, 2026 14:08
@sbrunner sbrunner added the backport master Backport the pull request to the 'master' branch label Aug 21, 2026
@geo-ghci-int geo-ghci-int Bot removed the backport master Backport the pull request to the 'master' branch label Aug 21, 2026
@geo-ghci-int geo-ghci-int Bot added this to the 2.0.1 milestone Aug 21, 2026
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