Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

Introduction: 

This document describes the design for Programs to integrate with Sunbird Portal and also discusses the ability of Programs to support and launch multiple programs for various adopters.

Overview: 

Currently, Programs are used by a single adopter to run a specific activity within a defined scope which uses minimum configuration. It is currently used to create a specific set of content types. (Example: QuestionSet creation). By and large it is used for creation purpose. 

Problem Definition: 

Program portal should be able to support to launch multiple programs configured for various adopters. A program can have more than one activity. Each activity can take its own configuration. An admin of the program adopter should be able to define the scope, actions, tools etc based on the activity/purpose. Programs on the portal should be able to handle multiple active programs at a time. 

Key Area to be analysed:

  1. Ability to load components dynamically based on configuration 
  2. Ability to load components dynamically on multiple levels based on configuration

Solution: 

Program configurations based on components

Since each tool (comprises of multiple components and tools can share the same components between each other) is going to solve the purpose of each activity in a program, the program can have its configurations based the input that each component in the tool is expecting. 

Say for example, if the purpose of the program is to just see the coverage of textbooks, then the tool that is used in the program would expect a scope to be defined i.e: Board, Class, Medium, Subject, Framework. This can be the program configuration and nothing else would be required by the admin to see the coverage. 

The expected config of a tool will reside as a manifest inside each high level components.

toolmanifest.json for the above example would be: 

{
  "Configuration": {
    "scope": {
      "classes":"",
      "subject":"",
      "board":"",
      "medium":"",
      "framework":""
    }
  }  
}

Let us take an example of a program whose purpose is to create content for different contentTypes such as PracticeSet, ExplanationExperientialCuriositySet, etc for each chapter in a given textbook. 

The workflow of the above mentioned program can be split into two parts

  1. Creation
  2. Review and Publish

Creation: 

In creation, a contributor with creator access visits the program and does the following

  1. Chooses a textbook of a particular class and subject
  2. Chooses a contentType of a particular chapter that is to be created
  3. Chooses a questionCategory if the contentType is either PracticeSets/CuriositySet
  4. Creates a content or assessment based on the chosen content type 
  5. Previews the created assessment or content and submits for preview

Review

  1. Chooses a textbook of a particular class and subject
  2. Chooses a content of a chapter that are up for review
  3. Sees the preview of the content before doing Accept/Reject and publishing
  4. If rejecting, leaves a the reason as a comment to reject. 

The above listed actions can more or less be broken down into the following components. 

  1. Collection Component Component
  2. ChapterList Component
  3. ContentCreation Component
  4. ContentUpload Component
  5. Preview Component

Each component will take its own configuration.

For example: The Collection component would expect CollectionType, Board, Class, Medium, Subject, Framework to list the textbook.

Similarly, ChapterList component would expect CollectionId and List of content types

If we put together all the component and its required configurations, actions and possible enhancements into a module/highlevel component the following would be the overall component hierarchy and configuration.



  {
  "pageAssemblyId":"",
  "board":"",
  "class":"",
  "subject":"",
  "medium":"",
  "framework":"",
  "collectionType":{
    "name": "Collection type",
    "type": "string",
    "enum": "Textbook, Course"  
  },
  "contentTypes": {
    "name": "List of contentTypes",
    "type": "List",
    "enum": ["PracticeQuestionSet", "Lessonplan", "ExperientialResource", "FocusSpot", "CuriosityQuestionSet", "ExplanationResource"]
  },
  "questionCategories":{
    "name": "List of AssessmentItem Categorys",
    "type": "List",
    "enum": ["VSA", "SA", "LA", "MCQ", "CuriosityQuestion"],
    "hints": "When PracticeQuestionSet is set for contentTypes AssessmentItem Categorys must be"
  },
  "ckEditorConfig": {}
}

With this basic set of configurations, a program can be created by an admin of the program. 

{
  "programId": "217bddc0-df59-11e9-8d82-2b7f2cdfa2fd",
  "description": C"Test Prep program",
  "name": "Test Prep",
  "slug": "sunbird",
  "startDate": "2019-09-25T12:50:30.000Z",
  "endDate": null,
  "status": null,
  "type": "private",
  "roles": {
    "value": [],
    "enum": ["CONTRIBUTOR", "REVIEWER", "PUBLISHER"]
  },
  "defaultRoles": ["CONTRIBUTOR"],
  "config": {
    "onBoardForm": {
      "templateName": "onBoardingForm",
      "action": "onboard",
      "fields": [
        {
          "code": "school",
          "dataType": "text",
          "name": "School",
          "label": "School",
          "description": "School",
          "inputType": "select",
          "required": false,
          "displayProperty": "Editable",
          "visible": true,
          "range": [
            {
              "identifier": "my_school",
              "code": "my_school",
              "name": "My School",
              "description": "My School",
              "index": 1,
              "category": "school",
              "status": "Live"
            }
          ],
          "index": 1
        }
      ]
    },
  "framework": "NCF",
  "Board": "AP",
  "Medium": "English",
  "filterCategory": [
    {
      "code": "class",
      "range": [
        "Class 6", "Class 7", "Class 8"
      ],
      "label": "Class",
      "multiselect": false
    },
    {
      "code": "subject",
      "range": [
        "English", "Maths"
      ],
      "label": "Subject",
      "multiselect": false
    }
  ],
  "groupBy": {
    "value": "Subject",
    "defaultValue": "Class",
    "enum": ["Class", "Subject", "Board", "Medium"]
  },
  "contentTypes": {
    "name": "List of contentTypes",
    "type": "List",
    "value": [{
      "name": "Explanation",
      "contentType": "ExplanationResource",
      "mimeType": ["application/pdf"],
      "thumbnail": "",
      "description": "description",
      "marks": 5,
      "resourceType": "",
      "Audience": "",
      "formConfiguration": [
        {
          "code": "LearningOutcome",
          "range": [],
          "label": "Learning Outcome",
          "multiselect": true
        },
        {
          "code": "bloomslevel",
          "range": [],
          "label": "Learning Level",
          "multiselect": true
        }
      ],
      "filesConfig": {
        "accepted": "pdf",
        "size": "50"
      }
    }, {
      "name": "Experimental",
      "contentType": "ExperientialResource",
      "mimeType": ["video/mp4", "video/webm", "video/x-youtube"],
      "thumbnail": "",
      "description": "description",
      "marks": 5,
      "resourceType": "",
      "Audience": "",
      "formConfiguration": [
        {
          "code": "LearningOutcome",
          "range": [],
          "label": "Learning Outcome",
          "multiselect": true
        },
        {
          "code": "bloomslevel",
          "range": [],
          "label": "Learning Level",
          "multiselect": true
        }],
      "filesConfig": {
        "accepted": "mp4, webm, youtube",
        "size": "50"
      }
    }, {
      "name": "Practice Sets",
      "contentType": "PracticeQuestionSet",
      "mimeType": ["application/vnd.ekstep.ecml-archive"],
      "questionCategories": ["vsa", "sa", "la", "mcq"],
      "thumbnail": "",
      "description": "description",
      "marks": 5,
      "resourceType": "",
      "Audience": "",
      "formConfiguration": [
        {
          "code": "LearningOutcome",
          "range": [],
          "label": "Learning Outcome",
          "multiselect": true
        },
        {
          "code": "bloomslevel",
          "range": [],
          "label": "Learning Level",
          "multiselect": true
        }]
    }, {
      "name": "Curiosity",
      "contentType": "CuriosityQuestionSet",
      "mimeType": ["application/vnd.ekstep.ecml-archive"],
      "questionCategories": ["curiosity"],
      "thumbnail": "",
      "description": "description",
      "marks": 5,
      "resourceType": "",
      "Audience": "",
      "formConfiguration": [
        {
          "code": "LearningOutcome",
          "range": [],
          "label": "Learning Outcome",
          "multiselect": true
        },
        {
          "code": "bloomslevel",
          "range": [],
          "label": "Learning Level",
          "multiselect": true
        }
      ]
    }],
    "defaultValue": [{
      "name": "Practice Sets",
      "contentType": "PracticeQuestionSet",
      "mimeType": ["application/vnd.ekstep.ecml-archive"],
      "questionCategories": ["vsa", "sa", "la", "mcq"],
      "thumbnail": "",
      "description": "description",
      "marks": 2,
      "resourceType": "",
      "Audience": "",
      "formConfiguration": [
        {
          "code": "LearningOutcome",
          "range": [],
          "label": "Learning Outcome",
          "multiselect": false
        },
        {
          "code": "bloomslevel",
          "range": [],
          "label": "Learning Level",
          "multiselect": true
        }
      ]
    }],
    "enum": [
      "PracticeQuestionSet",
      "Lessonplan",
      "ExperientialResource",
      "FocusSpot",
      "CuriosityQuestionSet",
      "ExplanationResource"
    ]
  },
  "questionLimit": {
    "value": "",
    "defaultValue": ""
  },
  "optionsLimit": {
    "value": "",
    "defaultValue": ""
  }
  }
}


  • No labels