rokwire / surveys-building-block

Building Block that manages surveys in the Rokwire Platform.
Apache License 2.0
0 stars 1 forks source link

[BUG] User survey responses not accessible #78

Open mihail-varbanov opened 1 month ago

mihail-varbanov commented 1 month ago

Right after successful submission of completed survey loading user survey responses succeeds but returns "null"

POST https://api.rokwire.illinois.edu/surveys/api/survey-responses => 200
{
  "id":"d810a39b-7796-4705-9b1e-64067935a1ba",
  "data":{...},
  "type":"admin",
  "scored":true,
  "title":"Skills Self-Evaluation",
  "more_info":"",
  "default_data_key":"how_well",
  "default_data_key_rule":null,
  "result_rules":"...",
  "result_json":"...",
  "response_keys":null,
  "constants":{
    "low_score":0.33,
    "medium_score":0.66
  },
  "strings":{...},
  "sub_rules":{

  },
  "date_created":"2022-12-19T23:10:26.513Z",
  "date_updated":"2024-09-09T14:45:32.403Z",
  "stats":{...},
  "calendar_event_id":""
}

Then

GET https://api.rokwire.illinois.edu/surveys/api/survey-responses?survey_types=bessi&limit=10 => 200
null

Source: https://github.com/rokwire/illinois-app/issues/4330