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

Linked Assignment to Gradebook can show incorrect state

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.5, 20.0
    • Fix Version/s: 20.0
    • Component/s: Assignments
    • Labels:
      None
    • Test Plan:
      Hide
      1. Create a few assignments with different permutations of how the assignment is linked to the gradebook
        1. Assignment linked to gradebook via assignments (Case 1)
        2. Assignment linked to gradebook via existing gradebook item (Case 2)
      2. Import those assignments to a new site without importing the gradebook 
      3. Make sure, however, that the Gradebook NG tool is an available tool in the new site.
      4. Upon editing the newly imported assignment as a draft in the new site:
        1. the assignment gradebook link state should look correct, that is:
          1. Case 1: the "Add Assignment to Gradebook" configuration should be preserved 
          2. Case 2: all display to Gradebook options should be available
        2. posting the assignment should correctly link or create a gradebook item depending on the way it is linked
        3. Gradebook category selection should only be visible during "Add to Gradebook"
          1. It should not be possible to see the category selection for those assignments linked to an existing gradebook item
      Show
      Create a few assignments with different permutations of how the assignment is linked to the gradebook Assignment linked to gradebook via assignments (Case 1) Assignment linked to gradebook via existing gradebook item (Case 2) Import those assignments to a new site without importing the gradebook  Make sure, however, that the Gradebook NG tool is an available tool in the new site. Upon editing the newly imported assignment as a draft in the new site: the assignment gradebook link state should look correct, that is: Case 1: the "Add Assignment to Gradebook" configuration should be preserved  Case 2: all display to Gradebook options should be available posting the assignment should correctly link or create a gradebook item depending on the way it is linked Gradebook category selection should only be visible during "Add to Gradebook" It should not be possible to see the category selection for those assignments linked to an existing gradebook item

      Description

      In Assignments it is possible to have the assignment shown as linked in the gradebook, but when viewing the gradebook there is no matching gradebook item. This appears to happen more frequently for imported Assignments from another site.

      This is related insufficient state checks while rendering the "Add/Edit Assignment" form.

      During import it is because of some incorrect state that is set on the newly imported assignment.

      Also there appeared to be a regression from SAK-30287, where the category list was being shown after it was already associated. According to the code it was only ever supposed to be show during the addition of the assignment to the gradebook.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  drramsey Derek Ramsey
                  Reporter:
                  ern Earle R Nietzel
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration