canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Quiz Questions API is returning null for position

Open iorabi opened this issue 7 years ago • 8 comments

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:

  1. Create quiz and add a new question using + New Question button
  2. Make request to GET /api/v1/courses/:course_id/quizzes/:quiz_id/questions
  3. Observe value in position field

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

iorabi avatar Jun 08 '18 15:06 iorabi

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!

hmesander avatar Sep 01 '18 13:09 hmesander

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.

bootstraponline avatar Sep 01 '18 13:09 bootstraponline

@hmesander Thanks for taking a look at this issue @bootstraponline I confirmed in our Beta instance that this is still an issue.

iorabi avatar Sep 04 '18 14:09 iorabi

@iorabi I will work on a solution for this issue today.

hmesander avatar Sep 04 '18 19:09 hmesander

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!

hmesander avatar Sep 05 '18 05:09 hmesander

Hm, kind of surprising to see that this is still an issue. Is there going to be a fix at some point?

acbart avatar Mar 06 '19 07:03 acbart

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...

3arrows avatar May 15 '20 05:05 3arrows

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.

acbart avatar May 15 '20 06:05 acbart