Use relative URLs in v7.6 manifest#143
Conversation
💚 Build Succeeded |
|
Not sure if I have this 100% right, so bear with me ;) The relative-path is from the root. If the client is configured to the manifest (which is
Unless we somehow bake this knowledge into Kibana/user-docs that the sub-path of the manifest is not the top-level (and imho, I think we actively want to avoid such a situation since this is the situation today to a certain extent). We could update the EMS-client it needs a double config: With the understanding on the back-end that EMS always needs to serve the manifest from Note that EMS diverges significantly from other geo-server products (e.g. ArcGIS Server, GeoServer, ...). Most of these platforms generate their manifests dynamically, based on user-config of the host. Mapbox-tile-spec are an example of this as well. Another approach would be more along the lines of organizing resources hierarchically. (e.g. https://sampleserver6.arcgisonline.com/arcgis/rest/services/). The above is counter to how EMS was designed (no duplication of files for efficient content etc...). Thoughts? |
ems-client already accepts a
I would prefer to keep the current convention to avoid duplicating vector files. Especially as we move to syncing EMS releases with the stack and also if we start to release higher resolution (much larger) datasets. |
One concern I have with this is handling breaking changes in future releases and functional tests downstream. For example, we might make a change to the v8.0 manifest while still in development that could require functional test changes in Kibana. The CI on the So perhaps it is better to hard-code the EMS version in the ems-client library instead and upgrade the ems-client dependency in Kibana after the API and client library are in sync. |
💚 Build Succeeded |
jsanz
left a comment
There was a problem hiding this comment.
Left a couple of comments, I don't see anything problematic here but I understand this has effects outside this code. Anything else I can take a look or test?
💚 Build Succeeded |
Fixes #141. To make it easier to reverse proxy and deploy locally, we are changing the URLs in the v7.6 manifest from absolute to relative. Additionally, the
?elastic_tile_service_tos=agreequery string is no longer hard-coded in the manfiest. Clients using the v7.6 API will need to accept the EMS Terms of Service by appending the querystring?elastic_tile_service_tos=agreeto all requests.