Skip to content

PB-1823: Extend the Service Worker deny list to all API calls#1387

Merged
pakb merged 2 commits intodevelopfrom
fix-PB-1823-extend-service-worker-deny-list
Aug 5, 2025
Merged

PB-1823: Extend the Service Worker deny list to all API calls#1387
pakb merged 2 commits intodevelopfrom
fix-PB-1823-extend-service-worker-deny-list

Conversation

@ltkum
Copy link
Contributor

@ltkum ltkum commented Aug 4, 2025

Issue: We currently don't have any unsolved issue, but using the service-worker tends to break api calls, as it already happened with the QRCode and the Print.

Fix: To be on the safe side, we extend the deny list to all API calls, excluding them from the caching system.

Test link

@ltkum ltkum requested a review from pakb August 4, 2025 09:50
@github-actions github-actions bot added the bug label Aug 4, 2025
@cypress
Copy link

cypress bot commented Aug 4, 2025

web-mapviewer    Run #5542

Run Properties:  status check passed Passed #5542  •  git commit 371524acc9: PB-1823: adding legacy embed endpoint to the exception list
Project web-mapviewer
Branch Review fix-PB-1823-extend-service-worker-deny-list
Run status status check passed Passed #5542
Run duration 04m 44s
Commit git commit 371524acc9: PB-1823: adding legacy embed endpoint to the exception list
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 20
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 260
View all changes introduced in this branch ↗︎

@ltkum ltkum force-pushed the fix-PB-1823-extend-service-worker-deny-list branch from f1de23b to 1a45ef9 Compare August 4, 2025 10:05
@ltkum ltkum force-pushed the fix-PB-1823-extend-service-worker-deny-list branch from 30d6560 to dac29ee Compare August 4, 2025 12:09
@ltkum ltkum requested a review from pakb August 4, 2025 12:11
@ltkum ltkum changed the base branch from develop to fix-PB-1750-dropdown-overflow-issue August 4, 2025 12:33
@ltkum ltkum force-pushed the fix-PB-1823-extend-service-worker-deny-list branch from dac29ee to 371524a Compare August 4, 2025 12:34
Base automatically changed from fix-PB-1750-dropdown-overflow-issue to develop August 5, 2025 09:46
ltkum added 2 commits August 5, 2025 11:47
Issue: We currently don't have any unsolved issue, but using the service-worker tends to break api calls, as it already happened with the QRCode and the Print.

Fix: To be on the safe side, we extend the deny list to all API calls, excluding them from the caching system.
Issue: When embedding an iframe with a legacy link, the service worker stops the redirection `hack` that allows us to have a clean embed route at the end, and so the legacy embed link is treated as a map link

Fix: no service-worker for legacy embed links
@pakb pakb force-pushed the fix-PB-1823-extend-service-worker-deny-list branch from 371524a to 2e0f8d7 Compare August 5, 2025 09:47
@pakb pakb merged commit 7adc470 into develop Aug 5, 2025
5 of 6 checks passed
@pakb pakb deleted the fix-PB-1823-extend-service-worker-deny-list branch August 5, 2025 10:22
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