Added initial model design. git-svn-id: http://soc.googlecode.com/svn/wiki@3193 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/GHOPImplementationDesign.wiki b/GHOPImplementationDesign.wiki index fb10f85..d9bdc02 100644 --- a/GHOPImplementationDesign.wiki +++ b/GHOPImplementationDesign.wiki
@@ -104,11 +104,91 @@ * (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. += What should Side bar contain for each roles? = + +== Program Admin == + + +== Org Admin == + + +== Mentor == + + +== Student == + + +== Public == + = Model Design = -This section is very rough and vague. It will be updated soon. + +Reference: [http://code.google.com/p/soc/wiki/MelangeModuleArchitecture Melange Module Architecture] + +*Legend* + # The heading specifies the model name and the bulleted items specify the properties to be stored in the model. + # Reference properties in the model are italicized. + == Task == - We will be storing a reference to User property which is mandatory and an optional reference to a Student property. So when a particular student claims his first task we just attach the User property to it. However once he completes the task, before it is set to be completed we will enforce to fill in his student profile so we don't lose track of it. This also helps us to show if the task is taken up by a new student. +We will be storing a reference to User property which is mandatory and an optional reference to a Student property. So when a particular student claims his first task we just attach the User property to it. However once he completes the task, before it is set to be completed we will enforce to fill in his student profile so we don't lose track of it. This also helps us to show if the task is taken up by a new student. + + * _user_ + * _student_ + * _organization_ + * title + * description + * difficulty (Question: pre-defined or arbitrary?) + * time_to_complete + * state + * type + * date_of_creation + * date_last_modified + +== TaskHistory == +Lennie: This is what I meant by "snapshot of the task at particular instance of time". It can be handled in one of the 2 ways, either store all the property values as it at the moment when one or more values change or just store the value of the property that changes at that time instance before the value was changed and along with that store the timestamp. +You had suggested to store a single change is single property and parse the property value to retrive that history. + +I had a small discussion with Sverre about Datastore storage space consumption on the kind of model I am proposing. The logs are here: +[http://www.thousandparsec.com/~irc/logm/%23melange.2009-05-15.log.html#t2009-05-15T08:38:33 start] +[http://www.thousandparsec.com/~irc/logm/%23melange.2009-05-15.log.html#t2009-05-15T08:52:14 end] + + * _task_ + * _user_ + * _student_ + * _organization_ + * title + * description + * difficulty (Question: pre-defined or arbitrary?) + * time_to_complete + * state + * type + * date_of_creation + * date_last_modified + * timestamp + +The following models are shared models with GSoC with different OOP. Look at Module Architecture. +== Organization == + + * task_quota_limit +(Question: Since orgs task_quota_limit can be changed during the program, is it necessary to store the history of the changes in this quota limits? Is it necessary for reports) + +== Student == + + +== Program == + * student_min_age + * number_of_simultaneous_tasks + * Winner Prize + * Runner-up Prize + +== Mentor == + + +== OrgAdmin == + + +== Timeline == + = Task States = @@ -120,23 +200,23 @@ = Schedule = - # Community Bonding - ( Current - May 22nd ) + 1. Community Bonding - ( Current - May 22nd ) Refine requirements. Document design decisions and implementation. Write unit tests(ATM I am writing tests for Organization and Program logic and views). - # Coding Phase I (May 22th – June 2nd ) + 2. Coding Phase I (May 22th – June 2nd ) Implement all the models. - # Coding Phase II (June 3rd – June 20th ) + 3. Coding Phase II (June 3rd – June 20th ) Implement * **Program Admin roles's views:** Program Configuration View, Task Quota Limits * **Organization Admin:** Add/Edit/Delete New Tasks View, Tasks Approval View, List of "Tasks with Action Needed" View. * **Mentor:** Add New Tasks View, List "Tasks Added by Me" View, Edit Tasks View * Notification System and options to (un)subscribe to tasks. - # Testing Phase I (June 21st – June 25th ) + 4. Testing Phase I (June 21st – June 25th ) Write Unit tests for the above implemented views and logic. - # Coding Phase III (June 26th – July 21st ) + 5. Coding Phase III (June 26th – July 21st ) Implement * **Student:** Task Description View, In-progress Task View, Completed Tasks View. * **Public:** Task Description View. @@ -147,17 +227,17 @@ ** Check for minimum age limit on the student sign up page. * All the filters will be implemented. - # Testing Phase II (July 22th – July 27th ) + 6. Testing Phase II (July 22th – July 27th ) Writing unit tests for all the above views and logic. - # Requesting for community wide Reviews, testing and evaluation + 7. Requesting for community wide Reviews, testing and evaluation (July 28th – August 2nd ) Final phase of testing of the overall project, obtaining and consolidating the results and evaluation of the results. Requesting community to help me in final testing and closely working with testers. - # Scrubbing Code, Wrap-Up, Documentation + 8. Scrubbing Code, Wrap-Up, Documentation (August 3rd – August 10th ) Fixing major and minor bugs if any and merging the project with the Melange hg repository. Writing User and Developer