Skip to content

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Nov 17, 2025

Issue: When trying to access the app, if there were external layers, they wouldn't be taken into account and not loaded.

Fix: We remove a check that bypassed the addition of layers to the store at startup.

Test link

@ltkum ltkum requested a review from pakb November 17, 2025 09:54
@github-actions github-actions bot added the bug label Nov 17, 2025
@ltkum ltkum force-pushed the fix-PB-1383-external-layers-in-url branch from 4e1969e to 9c90d98 Compare November 17, 2025 15:58
@ltkum ltkum requested a review from pakb November 17, 2025 15:58
@cypress
Copy link

cypress bot commented Nov 17, 2025

web-mapviewer    Run #6029

Run Properties:  status check failed Failed #6029  •  git commit 6824f36df0: PB-1383: External layers not loaded at startup
Project web-mapviewer
Branch Review fix-PB-1383-external-layers-in-url
Run status status check failed Failed #6029
Run duration 11m 41s
Commit git commit 6824f36df0: PB-1383: External layers not loaded at startup
Committer Martin Künzi
View all properties for this run ↗︎

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

Tests for review

Failed  drawing.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  timeSlider.cy.ts • 3 failed tests • e2e/chrome/mobile

View Output

Test Artifacts
Cypress tests covering the time slider, its functionalities and its URL parameter > checking the time slider behavior, both on startup and during use > checks that the time slider is functional and behave correctly part 1 Test Replay Screenshots
Cypress tests covering the time slider, its functionalities and its URL parameter > checking the time slider behavior, both on startup and during use > checks that the time slider is functional and behave correctly with the timeSlider param at startup Test Replay Screenshots
Cypress tests covering the time slider, its functionalities and its URL parameter > checking the time slider behavior, both on startup and during use > behaves correctly when years are being entered in the input Test Replay Screenshots
Failed  layers.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  3d/layers.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots
Failed  legacyParamImport.cy.ts • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay Screenshots

The first 5 failed specs are shown, see all 26 specs in Cypress Cloud.

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 also check a small bug I've seen while testing:

If you change the opacity of an external layer, then reload, the opacity is correctly applied only before the layer loads. It looks like the "after-load" actions are overwriting the opacity in the URL and set it back to the default value

@ltkum
Copy link
Contributor Author

ltkum commented Nov 18, 2025

Can you also check a small bug I've seen while testing:

If you change the opacity of an external layer, then reload, the opacity is correctly applied only before the layer loads. It looks like the "after-load" actions are overwriting the opacity in the URL and set it back to the default value

This should be done with the following PR, I encountered the same bug while trying to fix the layers e2e tests. #1509

Issue: When trying to access the app, if there were external layers, they wouldn't be taken into account and not loaded.

Fix: We remove a check that bypassed the addition of layers to the store at startup.
@ltkum ltkum force-pushed the fix-PB-1383-external-layers-in-url branch from 9c90d98 to 6824f36 Compare November 18, 2025 10:18
@ltkum ltkum merged commit 1c54adb into feat-PB-1383-pinia-store Nov 18, 2025
3 of 4 checks passed
@ltkum ltkum deleted the fix-PB-1383-external-layers-in-url branch November 18, 2025 10:23
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.

3 participants