Skip to content

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Aug 26, 2025

ltkum added 2 commits August 26, 2025 14:37
Issue: When starting the mapviewer with an edit link for a KML that was deleted,
the drawing module is open and can't save to a new KML as the presence of the initial
admin ID is interfering with that function.

Fix: We now ignore the admin ID and display an error when someone is trying to
load a KML that was deleted.

Also: We altered the structure of messages a bit so that the same error given by
the same source is not shown, but the same error from a different source would be displayed

Also Also : We added some tests to check that the message equality function was working
correctly.

Also Also Also : We added an acknowledgement system which stops the same source from
sending the same errors multiple times
- Issue: With the extra parameters `isAcknowledged` and `sourceId` in the messages,
we could end up with disgracious instantiation with empty parameters just to add the last one.

- Fix: We Refactor the messages to accept objects as parameters
@github-actions github-actions bot added the bug label Aug 26, 2025
@cypress
Copy link

cypress bot commented Aug 26, 2025

web-mapviewer    Run #5595

Run Properties:  status check failed Failed #5595  •  git commit db8af5f0a7: PB-1895: bug corrections and test fixing
Project web-mapviewer
Branch Review fix-PB-1895-stop-editing-nonexistent-kmls
Run status status check failed Failed #5595
Run duration 06m 49s
Commit git commit db8af5f0a7: PB-1895: bug corrections and test fixing
Committer Martin Künzi
View all properties for this run ↗︎

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

Tests for review

Failed  tests/cypress/tests-e2e/drawing.cy.js • 1 failed test • e2e/chrome/mobile

View Output

Test Artifacts
Drawing module tests > KML management > manages the KML layer correctly if it comes attached with an adminId at startup Test Replay Screenshots

@ltkum ltkum force-pushed the fix-PB-1895-stop-editing-nonexistent-kmls branch 6 times, most recently from 0c80955 to f8dad09 Compare September 2, 2025 08:49
PB-1895: resolve issue with tests failing

- Issue: The updateLayers mutation was not present in the watched mutations.
for some reason, it worked fine outside of the test environments, but the test
environment was not pleased at all

- Fix : We added the mutation watcher where it belongs :)
@ltkum ltkum force-pushed the fix-PB-1895-stop-editing-nonexistent-kmls branch from 9af89cb to db8af5f Compare September 2, 2025 09:13
@ltkum ltkum requested review from pakb and schtibe September 2, 2025 09:34
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