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

User is told research enrollment succeeded when it failed #1057

Open
barbeau opened this issue Dec 4, 2020 · 2 comments
Open

User is told research enrollment succeeded when it failed #1057

barbeau opened this issue Dec 4, 2020 · 2 comments
Labels
Milestone

Comments

@barbeau
Copy link
Member

barbeau commented Dec 4, 2020

Summary:

We had a performance issue with the Google script powering the participant enrollment that it was timing out, and therefore not successfully enrolling participants. However, the Toast shown to the user said they had successfully enrolled, but then they were prompted to enroll again when re-opening the app.

We should tell the user when enrollment failed so it's not confusing if they are prompted to enroll again later.

Also, to reduce the impact of future failures, we should only prompt for enrollment every X number of starts, instead of every start (after initial start).

Steps to reproduce:

  1. Try to enroll in the study when prompted and have the Google Script time out server-side

Expected behavior:

Tell the user enrollment failed and they will need to try again later

Observed behavior:

User is told that enrollment was successful

Device and Android version:

Confirmed via Samsung Galaxy S8+ w/ Android 9

@barbeau barbeau added the bug label Dec 4, 2020
@barbeau barbeau added this to the v2.6 milestone Dec 4, 2020
@barbeau
Copy link
Member Author

barbeau commented Feb 10, 2021

Looking at this further, even when changing the URL for user registration to an invalid URL and within saveEmailAddress() an IOException is thrown, onSuccess() is still triggered within TravelBehaviorManager on line 293. So looks like an issue with the Futures callback.

@barbeau
Copy link
Member Author

barbeau commented Feb 23, 2021

Some initial testing here - https://github.com/OneBusAway/onebusaway-android/tree/fix-register-users. So far unsuccessful - same issue remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant