pushkin-consortium / pushkin

A customizable, scalable ecosystem for massive online psychological experiments
https://pushkin-consortium.github.io/pushkin/
MIT License
24 stars 10 forks source link

Add modes to `rm exp` to pause/unpause data collection #305

Closed jessestorbeck closed 6 months ago

jessestorbeck commented 6 months ago

Users can now pause and unpause data collection for specific experiments using remove experiment (or rm exp). Like with the other modes for rm exp, you can specify (un)pause in the command like pushkin rm exp --mode pause-data. No data will be logged from a paused experiment (not just for the experiment's _stimulusResponse table but also the users and userResults tables). There are notes inserted before and after a paused experiment informing potential participants that data collection is paused.

I tested this by adding one experiment from each template, first checking that they work and log data, then pausing them and checking that they don't log data, then finally unpausing them and checking that data were again being logged.

NB: when testing this, you'll need to install exp templates from path, since the changes are in both the CLI and the exp templates.

changeset-bot[bot] commented 6 months ago

🦋 Changeset detected

Latest commit: ffba8bbbb62d901d271655d71453f95648d5f5aa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages | Name | Type | | ---------------------------------------------- | ----- | | pushkin-cli | Minor | | @pushkin-templates/exp-basic | Minor | | @pushkin-templates/exp-grammaticality-judgment | Minor | | @pushkin-templates/exp-lexical-decision | Minor | | @pushkin-templates/exp-self-paced-reading | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR