Skip to content

PB-1253: stop external layers to never be ready#1314

Merged
ltkum merged 2 commits intodevelopfrom
fix-PB-1253-stop-forever-loading-layers
Apr 29, 2025
Merged

PB-1253: stop external layers to never be ready#1314
ltkum merged 2 commits intodevelopfrom
fix-PB-1253-stop-forever-loading-layers

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Apr 28, 2025

Issue : Whenever we loaded external layers with parameters in the base URL, we sometimes had issues where the base Url of the get Capabilities and the base URL of the layer were not the same, thus blocking the equality check that allowed the layer to update. This caused the layer to never show that it was ready, even when it was.
Fix : When we update the external layer through its capabilities, if there was a baseUrl before, we set the baseUrl of the updated layer to the original one, ensuring the layer will be updated.

Test link

@ltkum ltkum requested a review from pakb April 28, 2025 12:07
@github-actions github-actions bot added the bug label Apr 28, 2025
@cypress
Copy link

cypress bot commented Apr 28, 2025

web-mapviewer    Run #5167

Run Properties:  status check passed Passed #5167  •  git commit 23aa39a771: Merge pull request #1314 from geoadmin/fix-PB-1253-stop-forever-loading-layers
Project web-mapviewer
Branch Review develop
Run status status check passed Passed #5167
Run duration 01m 23s
Commit git commit 23aa39a771: Merge pull request #1314 from geoadmin/fix-PB-1253-stop-forever-loading-layers
Committer Martin Künzi
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 48
View all changes introduced in this branch ↗︎

@ltkum ltkum force-pushed the fix-PB-1253-stop-forever-loading-layers branch 2 times, most recently from 5da3917 to 3305c85 Compare April 28, 2025 13:45
Copy link
Contributor

@pakb pakb left a comment

Choose a reason for hiding this comment

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

Can you add a test to cover this ?

@ltkum
Copy link
Contributor Author

ltkum commented Apr 28, 2025

Can you add a test to cover this ?

yes

@ltkum ltkum requested a review from pakb April 28, 2025 15:43
ltkum added 2 commits April 29, 2025 15:59
Issue : Whenever we loaded external layers with parameters in the base URL, we sometimes had issues where the base Url of the get Capabilities and the base URL of the layer were not the same, thus blocking the equality check that allowed the layer to update. This caused the layer to never show that it was ready, even when it was.
Fix : When we update the external layer through its capabilities, if there was a baseUrl before, we set the baseUrl of the `updated` layer to the original one, ensuring the layer will be updated.
… ensure WMS supporting such a syntax are correctly supported in our viewer.
@ltkum ltkum force-pushed the fix-PB-1253-stop-forever-loading-layers branch from 4ab3c0c to 91f82d3 Compare April 29, 2025 13:59
@ltkum ltkum merged commit 23aa39a into develop Apr 29, 2025
6 checks passed
@ltkum ltkum deleted the fix-PB-1253-stop-forever-loading-layers branch April 29, 2025 14:18
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