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

Student sees no results from /direct/lessons/site/{siteID}.json

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 12.0, 19.0, 20.0 [Tentative]
    • Fix Version/s: 12.7, 19.1, 20.0 [Tentative]
    • Component/s: Lessons
    • Labels:
      None
    • 19 status:
      Verified
    • 12 status:
      Verified
    • Previous Issue Keys:
      LSNBLDR-802
    • Test Plan:
      Hide
      • Create a site with lessons in it with a few lessons items
      • Login as a student in that site, verify they can see some items through the UI. Copy the long site id from the URL line to the clipboard.
      • Go to the URL
      /direct/lessons/site/ce55049a-d24b-472e-a515-bfa5593b066b.json
      
      • On the server you're on, where the value after /site/ is the site id (copied from the URL bar) of the site you were testing.

      It should show something like

      {"entityPrefix": "lessons", "lessons_collection": [
      {
        "contentsURL": "http:\/\/localhost:8080\/direct\/lessons\/lesson\/1",
        "gradebookPoints": null,
        "id": 1,
        "lessonTitle": "Lessons",
        "releaseDate": null,
        "hidden": false,
        "entityReference": "\/lessons\/1",
        "entityURL": "http:\/\/localhost:8080\/direct\/lessons\/1",
        "entityId": "1"
      }
      ]}
      

      Then copy and paste the take the contentsURL and add .json to it, for instance

      http:\/\/localhost:8080\/direct\/lessons\/lesson\/1.json
      

      This should show the items in the site that student can access.

      Ideally test that there are some things the student can't see in the UI but the instructor can (like grouped items). The instructor should be able to see all these items, as should users in the correct groups, but not users in incorrect groups.

      Show
      Create a site with lessons in it with a few lessons items Login as a student in that site, verify they can see some items through the UI. Copy the long site id from the URL line to the clipboard. Go to the URL /direct/lessons/site/ce55049a-d24b-472e-a515-bfa5593b066b.json On the server you're on, where the value after /site/ is the site id (copied from the URL bar) of the site you were testing. It should show something like { "entityPrefix" : "lessons" , "lessons_collection" : [ { "contentsURL" : "http:\/\/localhost:8080\/direct\/lessons\/lesson\/1" , "gradebookPoints" : null , "id" : 1, "lessonTitle" : "Lessons" , "releaseDate" : null , "hidden" : false , "entityReference" : "\/lessons\/1" , "entityURL" : "http:\/\/localhost:8080\/direct\/lessons\/1" , "entityId" : "1" } ]} Then copy and paste the take the contentsURL and add .json to it, for instance http:\/\/localhost:8080\/direct\/lessons\/lesson\/1.json This should show the items in the site that student can access. Ideally test that there are some things the student can't see in the UI but the instructor can (like grouped items). The instructor should be able to see all these items, as should users in the correct groups, but not users in incorrect groups.

      Description

      student users (ie, people without "lessons.update" permission) dont see any results when calling /direct/lessons/site/

      {siteID}

      .json what they should see is a list of lessons tools that they have access to, ie, released lessons which are not hidden.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  adamm Adam Marshall
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code