View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17752 | Bug reports | RemoteControl | public | 2021-11-22 18:58 | 2022-07-05 15:30 |
Reporter | Mapache | Assigned To | gabrieljenik | ||
Priority | none | Severity | block | ||
Status | closed | Resolution | reopened | ||
Product Version | 5.2.x | ||||
Summary | 17752: list_questions JSON-RPC API method does not return subquestions or answers | ||||
Description | fetching questions via list_questions does not return subquestions (SQ) or answers. | ||||
Steps To Reproduce | Steps to reproducerun {"method": "list_questions", "params": ["TOKEN", "SURVEYID"], "id": 1} against the API Expected resultreturn all questions with ther corresponding subquestions or answers (like 3.X) Actual resultno subquestions or answers are returned | ||||
Tags | No tags attached. | ||||
Bug heat | 12 | ||||
Complete LimeSurvey version number (& build) | 5.2.2+211115 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MySQL 8.0 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.4.25 | ||||
related to | 17984 | closed | gabrieljenik | Using method="list_questions" does not give the subquestions |
quick check: no parent_qid other than "0" is returned |
|
My opinion :
|
|
LTS returns everything |
|
= in LS 3.xx LTS list_questions return all questions, subquestions and subanswers |
|
but it is fine this way – get_question_properties returns all subquestion and answers so we can close this and update the docs |
|
OK :) PS : https://github.com/LimeSurvey/LimeSurvey/commit/7238a601d3c04f2619c0c42a2f4040d9fc74dcee not related , not in current version. |
|
Not without broke API compatibility :) |
|
:) |
|
Hello @Mapache , since this is not a bug as pointed out by @DenisChenu , I will close the ticket and create a task to include this in the manual. |
|
@galads : since it's not the same result in 3.X : it's an issue, no ? |
|
@DenisChenu , personally I think the implementation should be as it is now. "list_questions" => list all the questions without sub-questions and answer options. And "get_question_properties" will list all questions with sub-questions and answers. However, users who use these functions more will know the use case better and can comment if the "list_questions", should also return the subquestions and answer options. |
|
:+1: |
|
I really think that it would be good to have a choice here. Default: show everything, including subquestions. This broke my program. With switch: leave away subquestions. This will need many more calls to the API (one for all questions + one for each question that has subquestions/answer options) making reporting much slower. |
|
And the documentation was not updated yet. |
|
This was already fixed in 17984. About documentation, not sure if changes are needed. |
|
Hi Tammo! As per the comments, will be closing the ticket. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2021-11-22 18:58 | Mapache | New Issue | |
2021-11-22 19:15 | Mapache | Note Added: 67482 | |
2021-11-22 19:15 | Mapache | Bug heat | 0 => 2 |
2021-11-23 08:13 | DenisChenu | Note Added: 67484 | |
2021-11-23 08:13 | DenisChenu | Bug heat | 2 => 4 |
2021-11-23 09:50 | Mapache | Note Added: 67486 | |
2021-11-23 10:00 | Mapache | Note Added: 67487 | |
2021-11-23 10:05 | Mapache | Note Added: 67488 | |
2021-11-23 10:05 | DenisChenu | Note Added: 67489 | |
2021-11-23 10:06 | DenisChenu | Note Edited: 67489 | |
2021-11-23 10:07 | DenisChenu | Note Added: 67490 | |
2021-11-23 10:12 | Mapache | Note Added: 67491 | |
2021-11-23 10:16 | galads | Note Added: 67492 | |
2021-11-23 10:16 | galads | Bug heat | 4 => 6 |
2021-11-23 10:16 | galads | Assigned To | => galads |
2021-11-23 10:16 | galads | Status | new => closed |
2021-11-23 10:16 | galads | Resolution | open => fixed |
2021-11-23 11:30 | DenisChenu | Status | closed => feedback |
2021-11-23 11:30 | DenisChenu | Resolution | fixed => reopened |
2021-11-23 11:30 | DenisChenu | Note Added: 67494 | |
2021-11-23 11:31 | DenisChenu | Steps to Reproduce Updated | |
2021-11-23 11:58 | galads | Note Added: 67497 | |
2021-11-23 12:42 | DenisChenu | Note Added: 67498 | |
2022-03-23 19:35 | JanE01 | Issue Monitored: JanE01 | |
2022-03-23 19:35 | JanE01 | Bug heat | 6 => 8 |
2022-03-23 19:40 | tammo | Note Added: 68787 | |
2022-03-23 19:40 | tammo | Bug heat | 8 => 10 |
2022-03-23 19:40 | tammo | Note Added: 68788 | |
2022-05-04 08:30 | galads | Assigned To | galads => gabrieljenik |
2022-05-04 08:30 | galads | Status | feedback => assigned |
2022-05-05 18:57 | gabrieljenik | Relationship added | related to 17984 |
2022-05-05 19:01 | gabrieljenik | Note Added: 69431 | |
2022-05-05 19:01 | gabrieljenik | Bug heat | 10 => 12 |
2022-05-05 19:01 | gabrieljenik | Status | assigned => feedback |
2022-07-05 15:30 | gabrieljenik | Status | feedback => closed |
2022-07-05 15:30 | gabrieljenik | Note Added: 70736 |