From e6ba7036857e8417f730b911e431b2e23641325a Mon Sep 17 00:00:00 2001 From: Dave Eargle Date: Wed, 19 May 2021 22:28:48 -0600 Subject: [PATCH] Feature: live and sandbox quals (#505); simplify backwards compat logic * allow separate qualifications for sandbox and live mode * simplify backwards compat logic `prefer_this` if set, should override the value of `over_this`, and the code should usually access the `over_this` key. --- CHANGELOG.md | 4 + doc/settings.rst | 98 +++++++++++++++++++ psiturk/amt_services_wrapper.py | 13 ++- .../default_configs/local_config_defaults.txt | 70 ++++++++++++- psiturk/example/config.txt.sample | 68 ++++++++++++- psiturk/experiment.py | 2 +- psiturk/psiturk_config.py | 55 +++++++++-- 7 files changed, 288 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aca80824..ead7ca96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] +### Added +- Separate config settings for mturk qualifications for `live` and `sandbox` modes (#505) + ## [3.2.0] ### Added - Add custom MTurk qualification support (#493) diff --git a/doc/settings.rst b/doc/settings.rst index 5ca3a46c..d541382d 100644 --- a/doc/settings.rst +++ b/doc/settings.rst @@ -209,6 +209,8 @@ Note that this option does not affect the behavior when a participant starts the experiment but the quits or refreshes the page. In those cases, they will still be locked out, regardless of the setting of `allow_repeats`. + + .. _require_quals: require_quals @@ -219,6 +221,10 @@ perform your task. :Type: comma-delimited ``string`` +If set, applies in both ``live`` and ``sandbox`` modes. Overrides ``require_quals_live`` and ``require_quals_sandbox``. + +Deprecated. Use ``require_quals_live`` and ``require_quals_sandbox`` instead. + You may need to ensure that workers have some requisite skill or pass some previous screening factors, such as language proficiency or having already completed one of your tasks. AMT uses custom qualification types to perform @@ -233,6 +239,29 @@ and `Best practices for managing workers in follow-up surveys