Skip to content

Defer user logout on HIT submission#81

Open
mizzao wants to merge 3 commits into
masterfrom
hit-submission-fix
Open

Defer user logout on HIT submission#81
mizzao wants to merge 3 commits into
masterfrom
hit-submission-fix

Conversation

@mizzao

@mizzao mizzao commented Jul 1, 2016

Copy link
Copy Markdown
Member

This fixes (maybe) one of the potential issues described in #28, where there is a race condition on the client between the browser logging itself out and the HIT submitting to MTurk. In the case where the former happens first, the MTurk submit form doesn't work properly and the user sees an error.

This is not a reliable bug to reproduce, but we've seen it enough that if this works in most cases it may be better than what we have so far.

@mizzao

mizzao commented Jul 14, 2016

Copy link
Copy Markdown
Member Author

One reason this approach might cause issues is that it will log a user out right after accepting a new HIT, because of the delay. This would not work for apps that allow users to do a sequence of HITs.

@mizzao mizzao force-pushed the master branch 2 times, most recently from 02a0a3e to b9ea3c0 Compare December 22, 2016 00:03
@mizzao mizzao force-pushed the master branch 2 times, most recently from 457c6fe to c3d5913 Compare September 8, 2017 20:42
@mizzao

mizzao commented Nov 10, 2019

Copy link
Copy Markdown
Member Author

TODO: rebase this on the JS version of the file.

@mizzao mizzao force-pushed the hit-submission-fix branch from 7508a87 to 3d8b88d Compare November 14, 2019 20:47
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.

1 participant