Skip to content

PB-102: Fix legacy external layers with coma in layer tilte#681

Merged
ltshb merged 4 commits intodevelopfrom
bug-PB-102-legacy-external-layer
Mar 4, 2024
Merged

PB-102: Fix legacy external layers with coma in layer tilte#681
ltshb merged 4 commits intodevelopfrom
bug-PB-102-legacy-external-layer

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Mar 1, 2024

In the legacy viewer the layer title was part of the URL and some layer
could contain a coma in its title which broke the layers parsing as the layers
in URL are separated by coma.

Test link

@ltshb ltshb requested a review from ltkum March 1, 2024 16:38
@github-actions github-actions bot added the bug label Mar 1, 2024
@cypress
Copy link

cypress bot commented Mar 1, 2024

Passing run #852 ↗︎

0 167 22 0 Flakiness 0

Details:

PB-102: Added unit-test for WMS base layer
Project: web-mapviewer Commit: 04d0ec7396
Status: Passed Duration: 04:32 💡
Started: Mar 4, 2024 12:35 PM Ended: Mar 4, 2024 12:40 PM

Review all test suite changes for PR #681 ↗︎

@ltshb ltshb force-pushed the bug-PB-102-legacy-external-layer branch from 8f844f5 to 2d1cdf6 Compare March 4, 2024 07:17
ltshb added 3 commits March 4, 2024 12:27
In the legacy viewer the layer title was part of the URL and some layer
could contain a coma in its title which broke the layers parsing as the layers
in URL are separated by coma.
In the WMS we can add a group of layer form the base of the capabilities.
Legacy external WMS layer name could contain comma, therefore added a comma
to the unit tests.

On the other hand new url don't contains anymore the layer name in the url.

Also the legacy WMTS url did not contain the layer name therefore remove it from
the test
@ltshb ltshb force-pushed the bug-PB-102-legacy-external-layer branch from 2d1cdf6 to 770fdb4 Compare March 4, 2024 11:27
The base layer was not parsed, so added a unit test to cover this.
@ltshb ltshb force-pushed the bug-PB-102-legacy-external-layer branch from 770fdb4 to 04d0ec7 Compare March 4, 2024 12:32
Copy link
Contributor

@ltkum ltkum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took the time to test it quickly, and it looks like it's working fine. Good work 👍

@ltshb ltshb merged commit 8ecf2f3 into develop Mar 4, 2024
@ltshb ltshb deleted the bug-PB-102-legacy-external-layer branch March 4, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants