feature: CCP-4997 Implement Offline Submission Queue and Sync - #1916
Merged
Conversation
gary-jipp
force-pushed
the
feature/CCP-4997-offline-form-submission
branch
2 times, most recently
from
June 25, 2026 03:30
13f7f49 to
d48a9e5
Compare
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
gary-jipp
force-pushed
the
feature/CCP-4997-offline-form-submission
branch
from
June 25, 2026 18:49
89d93ae to
8a26af3
Compare
This comment has been minimized.
This comment has been minimized.
gary-jipp
force-pushed
the
feature/CCP-4997-offline-form-submission
branch
4 times, most recently
from
July 23, 2026 18:48
7c045f1 to
17c53e7
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
gary-jipp
force-pushed
the
feature/CCP-4997-offline-form-submission
branch
from
August 4, 2026 22:35
772b4cf to
416d336
Compare
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
gary-jipp
force-pushed
the
feature/CCP-4997-offline-form-submission
branch
2 times, most recently
from
August 5, 2026 21:23
5fefbb2 to
c4c7e8a
Compare
This comment has been minimized.
This comment has been minimized.
…flaky cypress test
gary-jipp
force-pushed
the
feature/CCP-4997-offline-form-submission
branch
from
August 9, 2026 21:13
1790995 to
5ca4b69
Compare
Only honour queuedAt on a genuine offline replay (Dedup-Key + offline-enabled form), not from arbitrary request bodies
Abort offline edit when schema can't load so Save can't overwrite the queued entry with empty data
…st-response retries replay instead of duplicating
…oviders no longer forces it off)
…ble template print & multple drafts togglde when offline
gary-jipp
force-pushed
the
feature/CCP-4997-offline-form-submission
branch
from
August 18, 2026 21:37
eadeb9b to
78144b9
Compare
…thub.com/bcgov/common-hosted-form-service into feature/CCP-4997-offline-form-submission
This comment has been minimized.
This comment has been minimized.
|
|
Release b5de628 deployed at https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-1916 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Type of Change
feat (a new feature)
Checklist
Testing Offline Form Submissions
What you need
Limitations
Options for Turning "offline" on and off during testing
Firefox (recommended)
You do not need to unplug anything. Firefox blocks its own network traffic; the rest of your machine stays online.
Chrome / Edge
Chrome and Edge have an offline toggle inside DevTools:
Keep DevTools open the whole time you are testing; closing it turns the throttling off. Only network requests made by that browser tab are blocked, so the rest of your machine stays online.
Windows / Mac Network
If you would rather actually cut the network (useful if you want to test what happens when the whole machine loses connectivity):
Win + R, typencpa.cpl, press Enter. Right-click every active adapter (Wi-Fi, Ethernet) and choose Disable. Right-click > Enable to restore.Simply turning Wi-Fi off while an Ethernet cable is still plugged in is not enough for the machine-level approach; the browser still thinks it is online. Disable every active adapter.
The core scenarios
Please try each of these and note anything unexpected. There is a short checklist under each one.
1. Enable offline for a form (designer)
Check:
2. Submit while offline
Check:
3. Come back online and watch it sync
Check:
4. Queue multiple submissions, then sync them all
Check:
5. Edit a queued submission before it syncs
Check:
6. Discard a queued submission
Check:
7. Save a draft while offline
Only applies if the form has "Enable Draft" turned on.
Check:
8. Sign back in when your session has expired
This one is easiest to see if you leave the browser offline for a long time (an hour or so), or come back the next day.
Check:
8. Wait for your login session to expire, then sync
This scenario tests what happens when the queue tries to drain but your CHEFS login has expired in the background. Please do it in one sitting so the timing is deliberate.
How long to wait. Keycloak sessions in CHEFS typically expire after roughly 30 minutes of inactivity (the exact number depends on the environment; if you're unsure, ask a developer for the current session-idle timeout on the environment you're testing). Waiting longer than that is fine; waiting less will not exercise the code path.
What should happen next:
Test the "Not now" path first:
Check:
Now test the real Sign In path:
Check:
Bonus check (different user):
9. Log out attempt while offline
Check:
10. Start a new offline submission from the success page
Check:
Things to look out for
While running the scenarios, please flag anything like:
Testing Offline Form Submissions
What you need
Limitations
Toggling offline
Firefox: menu > File > Work Offline (untick to go back online).
Chrome / Edge: F12 > Network tab > throttling dropdown > Offline. Keep DevTools open! Set back to No throttling to go online.
Cut the machine's network (harder test): Windows
Win+R>ncpa.cpl> right-click each active adapter > Disable. Enable to restore. Mac: turn Wi-Fi off and unplug Ethernet.Scenarios
1. Enable offline on a form
Check:
2. Submit while offline
Check:
3. Come back online and watch it sync
Check:
4. Queue multiple, then sync all
Check:
5. Edit a queued submission before it syncs
Check:
5a. Sync while editing is blocked
Check:
6. Discard a queued submission
Check:
7. Save a draft while offline
Only if the form has "Enable Draft" turned on.
Check:
8. Sign back in after session expiry
Keycloak sessions expire after roughly 30 min idle (varies by environment; ask a dev if unsure).
Expected: within a few seconds the queue tries to drain, hits 401, and the "Sign in to send saved submissions" modal appears with Not now / Sign In.
Test Not now:
Test Sign In:
9. Logout blocked while offline
Check:
Things to flag