eduNEXT / xblock-limesurvey

LimeSurvey XBlock for Open edX
GNU Affero General Public License v3.0
1 stars 0 forks source link

feat: add anonymous surveys support #28

Closed mariajgrimaldi closed 1 year ago

mariajgrimaldi commented 1 year ago

Description

This PR supports anonymous surveys by ignoring the participants' table when configured as is. So now, if a survey is configured as anonymous, the user is not added to the participant table, and the token associated with the student is not generated. When configured as not anonymous survey, those things should happen.

How to test

  1. Configure a survey as anonymous in LimeSurvey: Select your survey > Participant settings > Anonymized responses
  2. Configure your xblock as containing anonymous surveys
  3. Check your survey in the LMS, then the iframe URL should have only the limesurvey URL without a token
  4. When configuring a survey as not anonymous, it should work just as before.