forked from expertiza/expertiza
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Topics tab data gets overwritten by Rubrics tab due to design flaw that was discovered during debugging session - Required complete re-design of the project and re-implementation - New Design: * Two additional columns are added into the Assignment table that determines whether Rubrics varies by either Round or Topic with default values False - vary_by_round - vary by_topic * update_assignment_questionnaires method is re-implemented - Having extra column in the QA table topic_id, no need for deleting all the data and re-writing it again every single time in the DB * The only varying value is questionnaire_id, the rest values may not change from Topics or Rubrics tabs, but can be added * There are 4 (four) possible cases for saving and updating data: - used_in_round = null and topic_id = null * Indicates that update is received from Rubrics tab and Rubric does not vary by round. Update/enter the value for the type of questionnaire specified in the data. Example: id = 1 questionnaire_id = 1 used_in_round = null topic_id = null - used_in_round = integer and topic_id = null * Indicates that update is received from Rubrics tab and Rubric varies by specified rounds. Update/enter questionnaire_id for each round specified in the data. Example: id = 2 questionnaire_id = 1 used_in_round = 1 topic_id = null id = 3 questionnaire_id = 1 used_in_round = 2 topic_id = null id = 4 questionnaire_id = 1 used_in_round = 3 topic_id = null - used_in_round = null and topic_id = integer * Indicates that update is received from Topics tab, but Rubrics does not vary by round. Update/enter questionnaire_id for each corresponding task specified in the data. Example: id = 5 questionnaire_id = 1 used_in_round = null topic_id = 1 id = 6 questionnaire_id = 1 used_in_round = null topic_id = 2 - used_in_round = integer and topic_id = integer * Indicates that update id received from Topics tab and rubrics varies by round as well. Update/enter questionnaire_id for each corresponding task and round specified in data. Example: id = 7 questionnaire_id = 1 used_in_round = 1 topic_id = 1 id = 8 questionnaire_id = 1 used_in_round = 2 topic_id = 1 id = 9 questionnaire_id = 1 used_in_round = 1 topic_id = 2 id = 10 questionnaire_id = 1 used_in_round = 2 topic_id = 2 - Described design simplifies currently convoluted implementation and is a lot easier. It also helps to retrieve the data for Topics and Rubrics tabs. TODO: - Fix all related Rspec Tests - All related Rspec Tests are Failing
- Loading branch information
1 parent
5da9def
commit 23ed2cc
Showing
34 changed files
with
312 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.