Use c2casgiutils route_prefix instead of tilecloud-chain's own - #3798
Merged
Conversation
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
force-pushed
the
use-c2casgiutils-route-prefix
branch
from
August 21, 2026 13:49
150bdba to
cbd5d3b
Compare
From the artifact of the previous workflow run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replace tilecloud-chain's own
route_prefixsetting with the one provided by c2casgiutils (C2C__ROUTE_PREFIX), eliminating duplicated configuration and validation logic.Context
tilecloud-chain defined its own
route_prefixsetting (TILECLOUD_CHAIN__ROUTE_PREFIX, default/tiles/) with a custom validator, while c2casgiutils already provides an equivalentroute_prefixsetting (C2C__ROUTE_PREFIX, default/) with identical normalization logic. This PR removes the duplication.Implementation Details
_to_route_prefixvalidator,RoutePrefixtype alias, androute_prefixfield fromtilecloud_chain.settings.Settingsmain.py,server.py,views/admin.py) to usec2c_settings.route_prefixfrom c2casgiutilsENV C2C__ROUTE_PREFIX=/tiles/in the Dockerfilebase-allstage to preserve the/tiles/default for Docker-based deploymentsschema.json,USAGE.rst, andCHANGELOG.mddocumentationconfiguration.pyandCONFIG.mdvia jsonschema-gentypesImpact/Risks
TILECLOUD_CHAIN__ROUTE_PREFIXtoC2C__ROUTE_PREFIXC2C__ROUTE_PREFIX=tilesto maintain the previous default behavior/tiles/)