-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fixes neighborhood assignment infinite loop #1169
Conversation
To recreate the endless loop, get the latest db dump and then log in as the same turker who had the endless loop. That's how I debugged the issue. Use the following URL: localhost:9000/?referrer=mturk&hitId=&workerId=<enter_the_HITID_of_that_worker>&assignmentId=test1 This way you don't have to audit the neighborhood yourself, but use the audits already done by the turker. So basically you are skipping the first two steps. The rest remains the rest but would be a lot faster to test. P.S. Yes, messaging from the flight :D. Terrible internet. |
"You will probably have to truncate the region_completion table and reload the audit page". I had to do this before starting testing on this branch. Seems to be working. Code looks good. |
|
Hmm, you probably needed to truncate the table once in the beginning possibly? If the table was out of sync to begin with, then it wouldn’t work.
Sorry for the imprecise instructions... so you get the dump, truncate the table, then do the testing as you said above.
|
Also, just making sure that you merged develop into this branch as well.
|
Will try testing again tomorrow
… On Oct 28, 2017, at 9:08 PM, Mikey Saugstad ***@***.***> wrote:
Also, just making sure that you merged develop into this branch as well.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#1169 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ADagpQ13myut6VYuJF80R1TqWGkz_ehFks5sw8_8gaJpZM4QJt6r>.
|
As mentioned in issue #1158, there are some discrepancies between the
street_edge_assignment_count
table and the entries in theaudit_task
table. This caused a problem since we were calculating neighborhood completion percentage based on the entries in theaudit_task
table, but we were looking for new tasks to audit by looking at thestreet_edge_assignment_count
table.In fact, 76 entries were missing from the
street_edge_assignment_count
table, which led to the infinite loop. We knew that the region was not complete, yet we were not finding any unaudited streets to assign because of the missing values in that table.To remedy the situation, I have removed all use of the
street_edge_assignment_count
table for now. I have also added the missing entries to that table via an evolutions file. So the table will continue to be updated as normal, we are just not using it right now, partially because there is at least one other bug in the table (see #1135).Testing:
One way to test this would be to
region_completion
table and reload the audit page, but it should say 100% at that point.Resolves #1158