Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44591

T&Q: Editing published quiz and republishing after question has been added to pool in the draft version adds another random question to the pool

    XMLWordPrintable

    Details

    • Test Plan:
      Hide

      You will need a couple of instructors and a new site for each. Make sure at least one of the instructors has no existing question pools. You will need 2 different browsers and clear the cache before starting the tests.

      Instructor1 in browser1:

      1. Add Tests & Quizzes to your site
      2. Click on T&Q > Question Pools and import a pool (or use the attached xml)
      3. Create a new empty pool
      4. Create a quiz and add a T/F question
      5. Set the answer to True and add the question to the empty question pool, then Save
      6. Publish the quiz
      7. Verify the one question is listed in your new question pool
      8. Edit the published quiz
      9. Change the answer for the T/F question to false
      10. Republish the quiz
      11. Check the question pool - currently you will see a random question from the other question pool was added

      Instructor2 in browser2:

      1. Add Tests & Quizzes to your site
      2. Click on T&Q > Question Pools and import a pool (or use the attached xml)
      3. Create a new empty pool
      4. Create a quiz and add a T/F question
      5. Set the answer to True and add the question to the empty question pool, then Save
      6. Publish the quiz
      7. Verify the one question is listed in your new question pool
      8. Edit the published quiz
      9. Change the answer for the T/F question to false
      10. Republish the quiz
      11. Check the question pool - currently you will see a random question from the other instructor's question pool was added
      Show
      You will need a couple of instructors and a new site for each. Make sure at least one of the instructors has no existing question pools. You will need 2 different browsers and clear the cache before starting the tests. Instructor1 in browser1: Add Tests & Quizzes to your site Click on T&Q > Question Pools and import a pool (or use the attached xml) Create a new empty pool Create a quiz and add a T/F question Set the answer to True and add the question to the empty question pool, then Save Publish the quiz Verify the one question is listed in your new question pool Edit the published quiz Change the answer for the T/F question to false Republish the quiz Check the question pool - currently you will see a random question from the other question pool was added Instructor2 in browser2: Add Tests & Quizzes to your site Click on T&Q > Question Pools and import a pool (or use the attached xml) Create a new empty pool Create a quiz and add a T/F question Set the answer to True and add the question to the empty question pool, then Save Publish the quiz Verify the one question is listed in your new question pool Edit the published quiz Change the answer for the T/F question to false Republish the quiz Check the question pool - currently you will see a random question from the other instructor's question pool was added

      Description

      Not sure if this bug is from the SAK-43838 fix. I verified on 20x that even editing a T/F question in a published quiz results in the same stacktrace as a matching question, so used T/F (since it's quicker to add) for these tests.

      Instructor JD in Chrome imported a question pool before starting, then created an empty pool for the test. JD created the matching question and I'm seeing a problem on Chrome I did not see yesterday, so I abandoned this test (it will be a different Jira).

      Instructor MH (Edge) in a new site (no sites or question pools shared with JD) created an empty question pool, then created a quiz with a T/F question and published the quiz. At this point there is only the one T/F question in the question pool. MH edited the published quiz, set the answer to false, saved and republished the quiz. Now there are 2 questions in the question pool, one of which came from JD's imported pool. The video for 3_mh_quiz_trunk.mp4 shows the random question from another instructor's pool gets added as a published quiz is republished.

      Tested using an instructor and site created by the admin job (Firefox) and am seeing the same results.

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  fernando.alvarez1 Fernando Alvarez
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration