CSC/ECE 517 Fall 2014/oss E1502 wwj: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==E1502: Questionnaire Controller Refactoring==") |
No edit summary |
||
Line 1: | Line 1: | ||
==E1502: Questionnaire Controller Refactoring== | ==E1502: Questionnaire Controller Refactoring== | ||
==Introduction to Expertiza== | |||
==Project Description== | |||
===What it does:=== Used on the admin side of Expertiza for creating/ editing questionnaires (rubrics, surveys and quizzes). It helps in add/removing questions, options, etc for a questionnaire. | |||
<li>Very big controller that handles a lot more than the name suggests. Functionalities need to be moved to appropriate controllers.</li> | |||
<li>Quiz methods are should be treated the same as any other type of questionnaire; differences between quiz questionnaires and other questionnaires should be implemented in the model class, quiz_questionnaire</li> | |||
<li>Turn the questionnaire into a “form object.” The ..._questions methods: save_new_questions, delete_questions, save_questions should be in a separate class.</li> | |||
===Other classes involved:=== | |||
<li>questionnaire.rb</li> | |||
<li>quiz_questionnaire.rb</li> | |||
<li>questions_controller.rb</li> | |||
===What needs to be done:=== | |||
<li>Move quiz related functions to quiz_questionnaire.rb.</li> | |||
<li>copy, update_quiz, valid_quiz methods, clone_questionnaire_details is too long.</li> | |||
<li>Debug output (print statements) should be removed.</li> | |||
<li>Understand the functions in the controller and comment them. Ensure that the code is understandable to the next programmer who works on it.</li> |
Revision as of 02:16, 18 March 2015
E1502: Questionnaire Controller Refactoring
Introduction to Expertiza
Project Description
===What it does:=== Used on the admin side of Expertiza for creating/ editing questionnaires (rubrics, surveys and quizzes). It helps in add/removing questions, options, etc for a questionnaire.