Extend Mneme (Test Center) Entity Broker Feed with dates

Description

The /direct/mneme/site EntityBroker feed developed in https://sakaiproject.atlassian.net/browse/UMICH-1100#icft=UMICH-1100 provides minimal information regarding each test/module defined in a site:

{"entityPrefix": "mneme", "mneme_collection": [
{
"gradebookItemExternalId": null,
"gradebookItemId": null,
"id": "398",
"published": true,
"title": "Pop Quiz"
}
...

We need to extend this to include the following attributes (must have):

  • open date

  • close date

  • allow until date

  • context, for example:
    "context": {
    "contextId": "SITE-ID",
    "contextTitle": "Test Project for Beth",
    "contextUrl": "https:\/\/ctqa.dsc.umich.edu\/portal\/site\/SITE-ID",
    "directToolUrl": "https://<server-url>/site/<site-id>/page/<page-id- to test-center-too>"
    }

/direct/mneme/site feed is restricted to people that have "mneme.manage" permission.

New "/direct/mneme/my" EntityBroker feed returns all the tests/modules for the current user for every site they're a member of (should have). This new "my" feed should be able to return corresponding data associated with that particular user and should not be restricted to admin user. Note: For students "my" feed should not be pulling gradebook info as that info is restricted to students.

The direct url to a test/or assessment( how ever you call it) is not currently addressed in this jira and is part of UMICH-1188

Activity

Show:

Beth Kirschner October 23, 2015 at 3:11 PM

Verified on ctdev 10/15

Gonzalo Silverio October 19, 2015 at 9:24 AM

Nice overall - but 2 anomalies (maybe) - see below. At issue is that as a student am seeing things in the feed that I would not see in the UI.

1. Items with a close date in the past show up:

{
"allowUntillDate":1445227140000,
"allowUntillDateString":"10-18-2015 23:59:00",
"closeDate":1445227140000,
"closeDateString":"10-18-2015 23:59:00",
"context":{
"contextId":"5b51496c-e800-43b3-b0e9-eddbed382e22",
"contextTitle":"mne test 100 001 F15",
"contextUrl":"https:\/\/ctdev.dsc.umich.edu\/portal\/site\/5b51496c-e800-43b3-b0e9-eddbed382e22",
"directToolUrl":"https:\/\/ctdev.dsc.umich.edu\/portal\/site\/5b51496c-e800-43b3-b0e9-eddbed382e22\/page\/f4fbd7fa-7e72-413a-bd86-f8ee14fad43b"
},
"gradebookItemExternalId":null,
"gradebookItemId":null,
"id":"1098",
"openDate":1444996800000,
"openDateString":"10-16-2015 08:00:00",
"published":true,
"title":"Closed - past due",
"entityReference":"\/mneme\/1098",
"entityURL":"https:\/\/ctdev.dsc.umich.edu\/direct\/mneme\/1098",
"entityId":"1098",
"entityTitle":"Closed - past due"
},

2. Items that are unpublished show up

{
"allowUntillDate":null,
"allowUntillDateString":null,
"closeDate":null,
"closeDateString":null,
"context":{
"contextId":"5b51496c-e800-43b3-b0e9-eddbed382e22",
"contextTitle":"mne test 100 001 F15",
"contextUrl":"https:\/\/ctdev.dsc.umich.edu\/portal\/site\/5b51496c-e800-43b3-b0e9-eddbed382e22",
"directToolUrl":"https:\/\/ctdev.dsc.umich.edu\/portal\/site\/5b51496c-e800-43b3-b0e9-eddbed382e22\/page\/f4fbd7fa-7e72-413a-bd86-f8ee14fad43b"
},
"gradebookItemExternalId":null,
"gradebookItemId":null,
"id":"1099",
"openDate":null,
"openDateString":null,
"published":false,
"title":"Unpublished",
"entityReference":"\/mneme\/1099",
"entityURL":"https:\/\/ctdev.dsc.umich.edu\/direct\/mneme\/1099",
"entityId":"1099",
"entityTitle":"Unpublished"
},

Pushyami Gundala September 25, 2015 at 7:15 AM

Ready for testing on Ctdev

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created September 4, 2015 at 11:17 AM
Updated October 23, 2015 at 3:11 PM
Resolved October 14, 2015 at 2:07 PM

Flag notifications