You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation doesn't suggest that the two are mutually exclusive. Furthermore if you try to make a request where both are present, you get an error message:
Both a survey list (survey_id_list) and a prompt list (prompt_id_list) must be given.
It looks like it doesn't allow both to be passed in, but that's the opposite of what the error message says. I'm not familiar with the internals of Ohmage, but it doesn't seem reasonable to make this restriction. We have a case where we want to get all responses to a given question in a given survey, and we are forced to pass in only the prompt_id_list. This isn't a huge deal since all our surveys have unique prompt ids, but I can see this being a problem for others who have the same prompt ids in different surveys.
Please either remove the restriction, or make the error message and documentation consistent with the behavior.
The text was updated successfully, but these errors were encountered:
The documentation doesn't suggest that the two are mutually exclusive. Furthermore if you try to make a request where both are present, you get an error message:
Going by the code here:
server/src/org/ohmage/request/survey/SurveyResponseRequest.java
Line 288 in 4a0d739
It looks like it doesn't allow both to be passed in, but that's the opposite of what the error message says. I'm not familiar with the internals of Ohmage, but it doesn't seem reasonable to make this restriction. We have a case where we want to get all responses to a given question in a given survey, and we are forced to pass in only the prompt_id_list. This isn't a huge deal since all our surveys have unique prompt ids, but I can see this being a problem for others who have the same prompt ids in different surveys.
Please either remove the restriction, or make the error message and documentation consistent with the behavior.
The text was updated successfully, but these errors were encountered: