blob: 94bfc7597d58d75f58810de90d4dbadfffbc5e06 [file]
#summary Designs for implementing Task-based work flow(GHOP)
#labels Phase-Design,Contents-Draft,Importance-Details
<wiki:toc max_depth="3" />
= Introduction =
This document covers detailed explanation of how we are going to implement Task-based work flow for running GHOP. A more detailed discussion containing requirements for implementing GHOP features in Melange is documented [http://code.google.com/p/soc/wiki/GHOP here].
= Details =
The entire work flow is divided into 5 roles, namely
* Program Admin (PA/LH)
* Organization Admin (OA)
* Mentor
* Student
* Public - This role indicates a general user who has not registered with Melange to access specific views.
== Program Admin ==
* Program Creation View - Already exists (same as GSoC).
* Program Configuration View - Will have options to create new task types and new task states, specify lower age limit, timeline for the program and the maximum number of tasks that the student can work simultaneously during the program. None of these fields will be mandatory, so PA can fill it up whenever she has the relevant details.
* Organization Applications Review View - (Same as GSoC)
* Task Quota Limits - PA will be able to assign tasks-limit quotas to Organizations and will be able tune it whenever required. (GSoC slot allocation interfaces can be re-used?)
== Organization Admin ==
* Add/Edit/Delete New Tasks View - Fields to provide task title, task description are provided. OA will be able to select one of the task types and task states which are defined by PA. There will be a text box to provide arbitrary tags, a field to set the time required to complete the the task(which takes values in hours). A comment box will be provided. The view will also have an option to set the difficulty level(Open question: Should difficulty level be a text box or be selected from a drop down menu containing pre-defined difficulty levels. If it is latter, where and to whom should we provide the option of defining the difficulty levels?). A field to assign mentors to the task will also be provided. If a student has claimed the task, in the edit View there will be an option to either accept or reject the request. Will have an optional button to extend the deadline by 24 hrs for the student who have not completed the work.
* Tasks Approval View - If mentors add/delete tasks, all such actions will be listed in this view. Bulk Acceptance option will be provided as a check box for each task listed and approve all the selected tasks.
* List of "Tasks with Action Needed" View - This view lists all the tasks that are requested by students to claim, list of tasks for which students have submitted their work. Clicking upon the corresponding task will take him to the edit view of that task.
*(NTH) Bulk Add Tasks View - This view will have a file box which provides the (??CSV??) file containing the set of tasks to be uploaded in bulk.
== Mentor ==
* Add New Tasks View - All the options will be same as the one provided for OA, but to add or delete tasks OA should approve the action(Should OAs approve Editing too?). The person who creates the task will be assigned as the mentor automatically. The URL used for this will be the same as the one used by OA.
* List "Tasks Added by Me" View - Mentors will be able to view the list of tasks added by himself.
* Edit Tasks View - Mentors will be able edit the tasks without approval from OA(see question below). URL is same as the one used for OA.
== Student ==
* Task Description View - All the fields set by OA/Mentors will be displayed. A button to "request to claim" the task will be provided. If the student has already requested to claim this task, we replace the "I request this task" button by "I withdraw".
* In-progress Task View - The contents are exactly the same as the previous view, including "I withdraw" button, with few additions. Firsly it is provided just to give easy access to the task the student is working on. He will be able to submit his work here as a file(Should we allow upload of single file only so student can archive if he has multiple files and upload or should we allow upload multiple files, GMail-attachment style?). It is not yet confirmed that work submissions will be accepted in Melange. It depends on what LH tells us after discussing with the legal team. An additional text box will be provided to specify links to the work done for this task. After the task is completed, the student should be able to change the task state to "NeedReview" which will trigger a notification.
* Completed Tasks View - Provides a list of all the tasks completed by the particular student.
In all the above 3 views, student will be able to add comments to that specific task.
== Public ==
* Task Description View - All the fields mentioned above for student will be visible, but they will be read only. However an option to post comments will be provided.
== Actions common to multiple roles ==
* List Tasks View - This view will be available to all roles. By default all the tasks will be listed. Following filters will be provided to narrow down on the list of tasks. Filter by
# Organization.
# Difficulty level.
# Type of Task.
# State of Task.
# Time required for completing it.
# Newly Added.
# Students (LH should get permission from legal team).
Each task listed will be linked to the specific task description page setup by OA/Mentors.
* All roles will have an option to subscribe to a specific task.
* All the roles except Public role will have a view for signing up.
== Automagic ==
* Whenever something changes on the task page, every one subscribed to the task should get a notification.
* Student will be allowed to work on at most the number of tasks specified by PA in the program configuration. If he ever tries to request a second task while he has requested another task, the system will raise an error. The student will be allowed to request the next task only when the mentor/OA for that task sets the tasks state to "Closed".
* Once the student requests a task, that task will be locked down, so there will be no button for subsequent students to claim it, until it is reopened.
* (NTH) Once the task is assigned to the student, the student and the mentor should get remainders at specific intervals about the deadline.
* In the student sign up page, Birth Date will be a mandatory field and the provided Birthday is checked with the lower age limit provided by PA in Program Configuration page, if it violates the student will not be allowed to sign up.
= Questions =
* Should mentors get approval from OAs to edit tasks?
* Should mentor be allowed to edit any task or just the tasks he created.
* Should mentors be allowed to delete any task, tasks created by himself, tasks created by him but not yet approved?
* Lennie suggested that for viewing individual task description, we will have a common URL to all the roles, i.e students/mentors/OA and then display the forms with specific actions they want to do and the edit page allows to edit the contents of the task. However my initial thought was to have a common Individual Task Description/Edit View for Mentors/OA where they can either edit the contents of the task as well perform actions like changing states, adding deadlines and relevant things and have a different URL for students to view the task description, request to claim it and upload the work after the work is complete. This is an open question. If you have something else other than these 2 please add them.