gideongoldin / TurkGate

TurkGate: Grouping and Access Tools for External surveys (for use with Amazon Mechanical Turk)
http://gideongoldin.github.com/TurkGate
27 stars 5 forks source link

SEND_ID_TO_SURVEY creates unique URL for each worker in survey list #92

Closed jeff-hughes closed 9 years ago

jeff-hughes commented 9 years ago

When SEND_ID_TO_SURVEY is set to TRUE, the worker IDs get added to the survey URL. This means when it gets added to the database, each worker now has a unique URL -- which makes for a long list of survey URLs in the group on the Generate a HIT page. Instead of one survey URL in the group, now there is one URL for each worker.

This should be a fairly simple matter of differentiating in gateway.php between the URL workers get sent to and the URL that gets saved in the database. I would be happy to work on it and submit a pull request if you would prefer. Would love to be able to contribute to the project, my department has really appreciated TurkGate!

jeffzemla commented 9 years ago

This sounds like a great idea Jeff. I hadn't even realized that the URLs were stored this way when this option is enabled. We definitely encourage you to contribute and send any pull requests that will improve TurkGate.

Please note that the back-end code for this feature recently changed when we exposed the option to send the worker id to the survey in the UI. If you pull the latest commit, you'll see this feature is in webTemplate.html instead of gateway.php. The problem you mention still needs to be fixed, though-- and if you'd like to implement a fix, that would be great!

On Wed, Mar 25, 2015 at 8:22 PM, Jeff Hughes notifications@github.com wrote:

When SEND_ID_TO_SURVEY is set to TRUE, the worker IDs get added to the survey URL. This means when it gets added to the database, each worker now has a unique URL -- which makes for a long list of survey URLs in the group on the Generate a HIT page. Instead of one survey URL in the group, now there is one URL for each worker.

This should be a fairly simple matter of differentiating in gateway.php between the URL workers get sent to and the URL that gets saved in the database. I would be happy to work on it and submit a pull request if you would prefer. Would love to be able to contribute to the project, my department has really appreciated TurkGate!

— Reply to this email directly or view it on GitHub https://github.com/gideongoldin/TurkGate/issues/92.