Quiz Questions API is returning null for position
Summary:
The Quiz Questions API used to provide the position of the question. Within the last month, this has changed to always returning null.
Steps to reproduce:
- Create quiz and add a new question using
+ New Questionbutton - Make request to
GET /api/v1/courses/:course_id/quizzes/:quiz_id/questions - Observe value in
positionfield
Expected behavior:
API returns relative position of question in quiz. The question created in step 1 above should have "position": 1
Actual behavior:
"position": null
Hi there! I’m a first-time contributor and was hoping to help out with this issue. I noticed nobody was assigned to it, but if there’s already a solution in progress I’m happy to try helping out elsewhere. Thanks!
Hi, as far as I know there's no solution in progress. You may want to check on the Canvas beta environment to make sure it hasn't already been fixed.
@hmesander Thanks for taking a look at this issue @bootstraponline I confirmed in our Beta instance that this is still an issue.
@iorabi I will work on a solution for this issue today.
Sorry, but I’ve had to drop this issue from my to-do list. I won’t be able to submit a pull request in a timely manner and don’t want to hold up progress. Hopefully someone else will be able to pick this up!
Hm, kind of surprising to see that this is still an issue. Is there going to be a fix at some point?
To my surprise, it seems that the position of the question value in Quiz Questions API response had not been fixed today. Is it not used so much by everyone...?
This problem is becoming a problem for me...
I would have definitely used it. I'm afraid the canvas developers are too focused on the new quizzing engine. I'm doubtful that we'll see much developed for the old engine.