Closed Emily-ejag closed 1 month ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
🔵 | Lines | 0.95% | 73 / 7645 |
🔵 | Statements | 0.9% | 74 / 8140 |
🔵 | Functions | 0.68% | 14 / 2032 |
🔵 | Branches | 0.46% | 20 / 4277 |
Visit the preview URL for this PR (updated for commit 1890740):
https://roar-staging--pr766-fix-tos-popping-out-guic1w3b.web.app
(expires Thu, 05 Sep 2024 00:52:21 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 2631e9c58fd0104ecbfddd72a62245ddac467460
Passed #5446
•
1890740fe6: Tests for PR 766 "FIX legal doc popping up" from commit "1890740fe6446c7c7936dad...
Project |
roar-dashboard-e2e
|
Branch Review |
fix/tos-popping-out
|
Run status |
Passed #5446
|
Run duration | 02m 46s |
Commit |
1890740fe6: Tests for PR 766 "FIX legal doc popping up" from commit "1890740fe6446c7c7936dad...
|
Committer | emily-ejag |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
32
|
View all changes introduced in this branch ↗︎ |
Getting this when selecting an administration which uses the ROAR Clinic Consent pdf:
Not sure if it's related to this specific PR.
It seems that the first time a new user logs in and accepts a consent form for the first time, it does not properly update the consent status on the client side.
It will update properly on the back end, but on the front end the legal status doesn't update. So the user ends up accepting a second consent form, and then the legal status properly updates on the client side. The result is two consent forms both on the front end and the back end.
Then we are no longer prompted for consent, so something is or is not happening on that first legal document acceptance,
I think the solution might be to make sure that the front end ref which stores the legal information is properly being updated whtin the logic, or it may involve re-fetching the legal data from Firestore after accepting the consent.
Getting this when selecting an administration which uses the ROAR Clinic Consent pdf:
Not sure if it's related to this specific PR.
Yes, the adobesign one will be different. It is listed but not used currently until de adobe sign PR gets merged
It seems that the first time a new user logs in and accepts a consent form for the first time, it does not properly update the consent status on the client side.
It will update properly on the back end, but on the front end the legal status doesn't update. So the user ends up accepting a second consent form, and then the legal status properly updates on the client side. The result is two consent forms both on the front end and the back end.
Then we are no longer prompted for consent, so something is or is not happening on that first legal document acceptance,
I think the solution might be to make sure that the front end ref which stores the legal information is properly being updated whtin the logic, or it may involve re-fetching the legal data from Firestore after accepting the consent.
Interesting, so is it popping twice?
It seems that the first time a new user logs in and accepts a consent form for the first time, it does not properly update the consent status on the client side. It will update properly on the back end, but on the front end the legal status doesn't update. So the user ends up accepting a second consent form, and then the legal status properly updates on the client side. The result is two consent forms both on the front end and the back end. Then we are no longer prompted for consent, so something is or is not happening on that first legal document acceptance, I think the solution might be to make sure that the front end ref which stores the legal information is properly being updated whtin the logic, or it may involve re-fetching the legal data from Firestore after accepting the consent.
Interesting, so is it popping twice?
Yes, the consent is popping up twice.
Log in -> accept consent form -> select a different administration -> accept consent again -> select different administration -> no consent form shows
So it is not properly saving the state of the user's legal information the first time the consent form is accepted. It takes two accepts in order for the client side to update the legal information properly.
ent admin
Oh probably I need to checkout the updateConsent! probably it is not updating right away. Thanks for checking this @ksmontville !
This pull request was deployed and Sentry observed the following issues:
checkConsent(src/pages/HomeParticipant)
View IssuecheckConsent(src/pages/HomeParticipant)
View IssuecheckConsent(src/pages/HomeSelector)
View IssuecheckConsent(src/pages/HomeParticipant)
View IssuecheckConsent(src/pages/HomeParticipant)
View IssueDid you find this useful? React with a 👍 or 👎
Proposed changes
Please link this PR with the Firekit PR: https://github.com/yeatmanlab/roar-firekit/pull/143
Types of changes
What types of changes does this pull request introduce?
Checklist
Justification of missing checklist items
Further comments