Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix quest1 complete survey bug #890

Merged
merged 2 commits into from
Jan 7, 2025
Merged

Conversation

JoeArmani
Copy link
Collaborator

Related: episphere/connect#1183

Fix missing COMPLETED value on Quest 1 survey submission.

location.reload();
const formData = {
[fieldMapping[moduleName].statusFlag]: fieldMapping.moduleStatus.submitted,
[fieldMapping[moduleName].completeTs]: data["COMPLETED_TS"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if we should take Quest out of the equation when it comes to this? Just set the status flag as submitted and the complete ts as the current time within the PWA?

Then that makes me wonder if we just only have Quest send a COMPLETED flag to signal as such.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be cleaner and I like it.

I still haven't figured out why Quest 1 is currently failing to send the COMPLETED flag in certain cases, which makes me think we need to catch that TS until migration to Quest 2 is complete.

I'll keep this on my radar for testing and cleanup as we refine Quest 2.

Copy link
Collaborator

@amber-emmes amber-emmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Approved.

@JoeArmani JoeArmani merged commit 0076eb4 into dev Jan 7, 2025
2 checks passed
@anthonypetersen anthonypetersen deleted the hotfix-quest1-complete-survey-bug branch January 29, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prod issue: Survey flag not setting upon survey submission in some instances
3 participants