E1936 Specialized Rubrics REVISION: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 146: Line 146:
As we have concrete understanding of the problem and proposed solution, we would like break this problem into multiple more manageable sub-problems with specific tasks and well-defined solutions to these tasks. Generally, each sub-problem requires modification of one or more files. We would like to propose our Design Strategy as follows:
As we have concrete understanding of the problem and proposed solution, we would like break this problem into multiple more manageable sub-problems with specific tasks and well-defined solutions to these tasks. Generally, each sub-problem requires modification of one or more files. We would like to propose our Design Strategy as follows:


* Rubrics tab: create "''Vary rubric by topic''" checkbox
== Preparation ==
** File: ''app/views/assignments/edit/_rubrics.html.erb''
** PROBLEM: There is no way for the user to indicate that rubrics should vary by topic
** SOLUTION: Add a new checkbox in the rubric tab to indicate whether rubrics vary by topic or not


* Topics tab: Preparation
* Clean up code that our implementation will use
** File: ''app/views/assignments/edit.html.erb''
** PROBLEM: We need to add/change content to the edit assignment Topics tab, but unlike other tabs in the views, it does not have its own partial view to work with
** PROBLEM: We need to add/change content to the Topics tab, but unlike other tabs in the views, it does not have its own partial view to work with
*** SOLUTION: Refactor and move the code dealing with topics into separate ''app/views/assignments/edit/_topics.html.erb'' file
** SOLUTION: Refactor and move the code dealing with topics into separate ''app/views/assignments/edit/_topics.html.erb'' file
*** File: ''app/views/assignments/edit.html.erb''
** PROBLEM: In a section below, we discuss the need to modify existing methods to also accept an optional argument ''topic_id''.  In many cases these existing method use confusing variable names or lack sufficient comments.
*** SOLUTION: Clean up methods that we plan to modify
*** FILE: (many)


* Topics tab: Add "''Questionnaire''" column and review dropdown content
== Implementation ==
** File: ''app/views/assignments/edit/_topics.html.erb''
 
** PROBLEM: There is no way for the user to select rubric(s) for a particular topic
* Allow an instructor to indicate that rubric should vary by topic
** SOLUTION: Add a new column in the topics table for choosing rubric(s)
** PROBLEM: There is no way for an instructor to indicate that an assignments' rubric should vary by topic
*** New column only visible if rubrics vary by topic, per Rubrics tab
*** SOLUTION: Add a new checkbox in the edit assignment Rubric tab to indicate this preference
*** New column has multiple rounds per topic only if rubrics vary by round, per Rubrics tab
*** FILE: ''app/views/assignments/edit/_rubrics.html.erb''
*** Default value for any rubric is that rubric which is shown on Rubrics tab
 
*** Rubric(s) in the dropdown list is/are only those that were created by the currently logged in instructor
* Allow an instructor to choose different rubrics for different topics
** PROBLEM: There is no way for an instructor to choose different rubrics for different topics
*** SOLUTION: Add a new column in the edit assignment Topics tab for choosing rubric(s)
**** New column only visible if rubrics vary by topic, per Rubrics tab
**** New column has multiple rounds per topic only if rubrics vary by round, per Rubrics tab
**** Default value for any rubric is that rubric which is shown on Rubrics tab
**** Rubric(s) in the dropdown list is/are only those that were created by the currently logged in instructor
*** FILE: ''app/views/assignments/edit/_topics.html.erb''
** PROBLEM: The code in ''app/views/assignments/edit/_rubrics.html.erb'' includes dropdowns like the ones we need to add for topics, but that code is way too complex for its functionality (too heavy for a view, uses JavaScript)
** PROBLEM: The code in ''app/views/assignments/edit/_rubrics.html.erb'' includes dropdowns like the ones we need to add for topics, but that code is way too complex for its functionality (too heavy for a view, uses JavaScript)
** SOLUTION: Use the code in ''app/views/assignments/edit/_rubrics.html.erb'' for inspiration only
*** SOLUTION: Use the code in ''app/views/assignments/edit/_rubrics.html.erb'' for inspiration only
*** Refactor and move as much actual work as possible out into helper methods that are simply called from this view
**** Refactor and move as much actual work as possible out into helper methods that are simply called from this view
*** Views are not intended to do heavy lifting
**** Views are not intended to do heavy lifting
*** Use as little JavaScript as possible, since this is a Ruby On Rails project, not a JS project
**** Use as little JavaScript as possible, since this is a Ruby On Rails project, not a JS project
*** FILE: ''app/views/assignments/edit/_topics.html.erb''


* <s>Create relationship between topics and rubrics
* Support the ability of the database to link rubrics to topics
** File: ''db/migrate''
** PROBLEM: There is no relationship in the database that can link together rubrics with topics
** PROBLEM: Questionnaires (of which rubrics are one type) are not linked to assignment topics
*** SOLUTION: Add a new migration that adds topic_id field to existing assignment_questionnaires table
** SOLUTION: Create a new migration to link rubrics to topics
**** This new field will reference the id field in the sign_up_topics table
*** Create a new table named topic_questionnaire with the following fields:
*** FILE: ''db\migrate\[timestamp]_add_topic_id_to_assignment_questionnaires_table.rb''
**** ''id''
** PROBLEM: The AssignmentQuestionnaire model does not have any knowledge of topics
**** ''topic_id''
*** SOLUTION: Add a new belongs_to reference in the model, to sign_up_topic
**** ''questionnaire_id''
*** FILE: ''app\models\assignment_questionnaire.rb''
**** ''used_in_round''
*** This new table links ''sign_up_topics'' and ''questionnaires'' table through ''topic_questionnaire''</s>


* <s>Support new topic_questionnaire table with a model
* React to an instructor saving an assignment after altering the rubrics-vary-by-topic checkbox
** File: ''/app/models/topic_questionnaire.rb''
** PROBLEM: There is nothing in place to remember when an instructor chooses to vary rubrics by topic, or chooses to not vary rubrics by topic
** PROBLEM: New table will not have any real support in the code after migration alone
*** SOLUTION: Upon assignment save, remove all records in the assignment_questionnaires table that relate to this assignment, for which the value of ''topic_id'' no longer makes sense
** SOLUTION: Create a model for the new table
**** If we now want to vary by topic, we need to remove all records for which ''topic_id'' is nil
*** Implement validations in the model file
**** If we no longer want to vary by topic, we need to remove all records for which ''topic_id'' is not nil
*** Implement any needed methods in the model file</s>
**** Such records are no longer valid, and the instructor will need to specify which rubric to use for which topic
*** FILE: None!
**** Upon assignment save, all records related to this assignment will be removed, and replaced with records that represent the information entered in the ''assignment_form'' displayed in the assignment edit view. 
**** This action is taken by the ''update_assignment_questionnaires'' method in the file ''app\models\assignment_form.rb''.


* Add topic_id field to existing assignment_questionnaires table
* Support the ability to find the correct rubric for a particular topic
** File: ''db/migrate''
** PROBLEM: The existing methods allow us to find the correct rubric for a particular round, but not a particular topic
** PROBLEM: We need to link Questionnaires (of which rubrics are one type) to assignment topics. We also need the ability to locate a questionnaire given any combination of the following: assignment, topic, round.
*** SOLUTION: Modify the existing method questionnaire(assignment, type, round_number) to also accept an optional argument ''topic_id''
** SOLUTION: Create a new migration which adds a topic_id field (which will reference the id field in the sign_up_topics table) to the existing assignment_questionnaires table.
*** FILE: ''app\helpers\assignment_helper.rb''
*** SOLUTION: Modify the existing method assignment_questionnaire(assignment, type, number) to also accept an optional argument ''topic_id''
*** FILE: ''app\helpers\assignment_helper.rb''
*** SOLUTION: Modify the existing method questionnaire(round = nil) to also accept an optional argument ''topic_id''
*** FILE: ''app\models\review_response_map.rb''
*** SOLUTION: Modify the existing method questionnaire(round) to also accept an optional argument ''topic_id''
*** FILE: ''app\models\self_review_response_map.rb''
*** SOLUTION: Modify the existing method review_questionnaire_id(round = nil) to also accept an optional argument ''topic_id''
*** FILE: ''app\models\assignment.rb''


* React to change in "''Vary rubric by topic''" checkbox
* Use the correct rubric for a particular topic
** File: ''/app/models/topic_questionnaire.rb'' and ''app/helpers/assignment_helper.rb''
** PROBLEM: When finding rubrics to display, save results from, calculate scores from, etc. round may be used but topic is not
** PROBLEM: A checkbox without any action taken when it is checked / unchecked is not useful
*** SOLUTION: Examine all callers of methods modified in the previous section and pass in ''topic_id'' where appropriate to grab the correct rubric
** SOLUTION: Create method(s) in the topic_questionnaire model to react to this checkbox
*** FILE: (many)
*** Call new method(s) from the view ''app/views/assignments/edit/_topics.html.erb''
**** ''app/views/assignments/edit/_rubrics.html.erb'' reacts to the ''Review rubric varies by round?'' checkbox and so has code that is similar to what we'll need
**** As noted previously, we will use the code in ''app/views/assignments/edit/_rubrics.html.erb'' for inspiration only
*** When the user clicks 'Save' with the checkbox selected:
**** [TBD]
*** When the user clicks 'Save' with the checkbox un-selected:
**** [TBD]
*** Q & A
**** Q: What will happen if an assignment's rubrics vary by topic, then later this is changed so that the rubrics do not vary by topic?
**** A: [TBD]
**** Q: What will happen if an assignment's rubrics vary by round, then later this is changed so that the rubrics do not vary by round?
**** A: [TBD]


* Find questionnaire for a given assignment/round/topic
* Support the ability to determine if an assignment has rubrics that vary by topic
** File: ''app/helpers/assignment_helper.rb''
** PROBLEM: There is no handy method to call that can tell us if an assignment has rubrics that vary by topic
** PROBLEM: The ''assignment_questionnaire'' method finds a questionnaire for a given assignment/round, and would be a great place to include code to find a questionnaire for a given assignment/round/topic, however the method is not easy to work with
*** SOLUTION: Add a new method ''varying_rubrics_by_topic?'' based on the existing method ''varying_rubrics_by_round?''
** SOLUTION: Improve readability of the ''assignment_questionnaire'' method
*** FILE: ''app/models/assignment.rb''
*** Add comment block at the top describing the purpose and basic strategy of the method
*** Rename 'number' parameter to clarify the purpose of the parameter
** SOLUTION: Expand functionality of the ''assignment_questionnaire'' method
*** Add ability to get assignment questionnaires by topic as well as by round
*** Like round, topic parameter should be optional


* Check if given assignment has rubric that varies by topic
== Testing ==
** File: ''app/models/assignment.rb''
** PROBLEM: The assignment model has a method to check if rubric varies by round, but no such method for topic
** SOLUTION: Add a new method ''varying_rubrics_by_topic?'' based on the existing method ''varying_rubrics_by_round?''


* Test all of the affected helpers
* Test all of the affected helpers

Revision as of 19:21, 14 April 2019

This wiki page describes the work and goals that have been completed and achieved while implementing Expertiza Project "E1936. Specialized Rubrics for Different Topic Types (e.g., Servo project, refactoring project)" for the CSC/ECE 517 "Object-Oriented Design and Development" class, in the Spring semester of the 2019.

Introduction

This Wiki page is created per CSC/ECE 517: "Object-Oriented Design and Development", Expertiza Project requirements (Spring, 2019).

Our team was assigned the project "E1936. Specialized rubrics for different topic types (e.g., Servo project, refactoring project)". This is an Expertiza project.

In this wiki page we describe the problem to be solved, how we solve that problem, and how we test our solution. We also provide helpful links and contact information for our team.

Project Description

In this section, we discuss the problem we need to solve, the Expertiza feature this problem is related to, what needs to be done to solve the problem (at a high level), and the previous attempt to solve this problem.

Problem Statement

This problem statement summarizes the problem as described in the project description "E1936. Specialized rubrics for different topic types (e.g., Servo project, refactoring project)".

In CSC/ECE 517, there are several types of topics that could be covered in a single class assignment.

  • Code base
    • Expertiza
    • Mozilla
    • etc.
  • Goal
    • Refactoring
    • Testing
    • etc.

However, currently we can only specify one kind of rubric for an assignment. This means that teams working on different topics will be evaluated using the same rubric. With this setup, it's not possible to fine-tune rubrics for different topics - rubrics tend to be overly general.

Feature Description

The Expertiza project already has a feature that allows rubrics to vary by project phase or "round". The feature we will add in this project is a feature to allow rubrics to vary not only by round, but also by topic. This allows more flexibility to the instructor when setting up an assignment, so that they can use rubrics better suited to the tasks that students are performing in an assignment.

When this feature is complete, the following scenarios will be possible, and the instructor will be the judge of which scenario is the best fit to the assignment:

  • Rubric does not vary by round or by topic.
  • Rubric varies by round, but not by topic.
  • Rubric varies by topic, but not by round.
  • Rubric varies by both round and topic.

What Needs to be Done

This section summarizes the work as described in the project description "E1936. Specialized rubrics for different topic types (e.g., Servo project, refactoring project)".

  • In assignment#edit page "Rubrics" tab, add a checkbox to specify whether rubric should vary by topic.
  • In assignment#edit page "Topics" tab, add dropdown(s) next to each topic to specify which rubric(s) are associated with the topic.
    • The dropdown(s) should appear only if rubric should vary by topic, per the Rubrics tab.
    • The topic should have a multiple dropdowns (one for each round) only if rubrics vary by round, per the Rubrics tab.
    • By default, the rubric(s) for each course project will be the one(s) specified in “Rubrics” tab.
    • The dropdown value can overwrite the default rubric.
  • Be careful when making changes to the code
    • The signup_sheet_controller should have as little to do as possible with the selection of rubrics.
    • Anything not germane to selecting topics should be in another controller or (more probably) a helper.
  • Create a DB migration to allow rubric to vary by topic as well as by round.

Screenshots

Current screenshot of Rubrics tab for an Assignment (need to add a checkbox to indicate that rubric should vary by topic)


Current screenshot of Topics tab for an Assignment (need to add a way to select rubrics for particular topics)


Proposed screenshot of Rubrics tab for an Assignment


Proposed screenshot of Topics tab for an Assignment

(drop down shown for only one topic here, but final product will have one for each topic)

Previous Work

There was previous attempt to implement this project in the Fall of 2018 semester by different team, but it was rejected due to several reasons. Our team was provided with all relevant information and materials about the design and implementation of the previously attempted project. We would like to acknowledge that we use previous implementation and design as reference and our starting point for our own implementation. The following is the list of links with the relevant materials that we have used for better project understanding, determining pros and cons of previously proposed changes, and establishing our design strategy and implementation:

  1. Wiki
  2. Pull Request
  3. Video Demo

After reviewing all relevant materials above, we concluded that the project implementation was incomplete and proposed design had significant flaw. We identified main drawbacks and flaw as follows:

  • Establishing incorrect many-to-one relationship between sign_up_topics and questionnaires tables:
    • Creating a DB migration to add questionnaire_id in the sign_up_topics table to store the dropdown data presumes one-to-one or many-to-one relationship between sign_up_topics and questionnaires tables
    • Correct relationship between sign_up_topics and questionnaires tables is many-to-many. For example, each project topic may have various rubrics depending on the round it is used (e.g., for round 1, topic may have one rubric; but for round 2, the same topic may have different rubric)
    • Proposed previous migration changes would break DB design and would not allow to store correctly topic and its associated rubric per different round.
  • Per project requirement specifications, "The dropdown box should appear only if 'Vary rubric by topic' is selected in the Rubrics tab." This requirement was not met and Vary rubric by topic checkbox in the Rubrics tab was not implemented. Therefore, dropdown box with the list of rubrics appears regardless of whether "Vary rubric by topic" is selected or not.
  • The dropdown box includes the list of all possible rubrics including default value. However, this condition can be improved. The dropdown box should list the rubrics that were created by the current user (professor who is logged in). This would allow to shorten the list of possible rubrics dramatically and help to avoid any misunderstanding and confusion while user selects desired rubric for the course project.

We found no further issues with the rest implementation and in other project materials. Wiki page is very useful for understanding design of proposed changes, finding drawbacks and the flaw. Considering all the pros and cons, and taking into account drawbacks of the proposed changes, our team evolved different approach that should successfully solve the problem stated for the project without without creating additional issues. Please see our Project Implementation for more details.

Previous Project Requirements

The project requirements originally specified how to alter the databases to support varying rubrics by topic.

Create a new table named topic_questionnaires with field:

  • id
  • topic_id
  • questionnaire_id
  • used_in_round

However, the E1936 team successfully petitioned for this requirement to change to give us more freedom in the implementation. The original suggestion had a flaw. There is already an existing table in the Expertiza project called assignment_questionnaires, which has columns including assignment_id, questionnaire_id, and used_in_round. It is this table that maintains the knowledge of which rubric is used in which round of an assignment. If we were to add a new table to maintains the knowledge of which rubric is used in which topic of an assignment as originally suggested, then we would have a big problem. Knowledge of round-rubric relationship is duplicated. This would lead (best case scenario) to extra work, and (worst case scenario) to lots of bugs caused by inconsistencies in how these tables are handled with CRUD operations throughout the code. In other words, this is not a DRY solution.

Project Implementation

In this section, we propose our solution to the problem, discuss implementation techniques and details, and list the goals we achieved.

We start by analyzing Entity Relationship Diagram where we state the solution to the problem. Further we discuss design strategy by breaking project problem into multiple staged sub-problems and provide solutions for each of these sub-problems. We also discuss some implementation details and provide the list of involved files. Finally, we demonstrate how the implemented feature can be used by providing a How To sub-section.

Entity Relationship Diagram

Our solution is best introduced by first discussing how the database will be modified. This modification will be done with a new database migration.

The sections of the diagram highlighted in yellow show newly introduced items. That is, we are adding a new column called topic_id to assignment_questionnaires, in order to link assignment_questionnaires to sign_up_topics.

Any assignment, topic, or questionnaire may be represented by multiple records within assignment_questionnaires, but each record within assignment_questionnaires refers to just one assignment, topic, or questionnaire. It is the ability to have an assignment represented by multiple records, and the new relationship to sign_up_topics, that allows us to support all of the required scenarios:

  • Rubric does not vary by round or by topic.
  • Rubric varies by round, but not by topic.
  • Rubric varies by topic, but not by round.
  • Rubric varies by both round and topic.

This table illustrates the possibilities we now have.

  • Assignment 1 does not vary by round or by topic.
  • Assignment 2 varies by round, but not by topic.
  • Assignment 3 varies by topic, but not by round.
  • Assignment 4 varies by both round and topic.

Design Strategy

As we have concrete understanding of the problem and proposed solution, we would like break this problem into multiple more manageable sub-problems with specific tasks and well-defined solutions to these tasks. Generally, each sub-problem requires modification of one or more files. We would like to propose our Design Strategy as follows:

Preparation

  • Clean up code that our implementation will use
    • PROBLEM: We need to add/change content to the edit assignment Topics tab, but unlike other tabs in the views, it does not have its own partial view to work with
      • SOLUTION: Refactor and move the code dealing with topics into separate app/views/assignments/edit/_topics.html.erb file
      • File: app/views/assignments/edit.html.erb
    • PROBLEM: In a section below, we discuss the need to modify existing methods to also accept an optional argument topic_id. In many cases these existing method use confusing variable names or lack sufficient comments.
      • SOLUTION: Clean up methods that we plan to modify
      • FILE: (many)

Implementation

  • Allow an instructor to indicate that rubric should vary by topic
    • PROBLEM: There is no way for an instructor to indicate that an assignments' rubric should vary by topic
      • SOLUTION: Add a new checkbox in the edit assignment Rubric tab to indicate this preference
      • FILE: app/views/assignments/edit/_rubrics.html.erb
  • Allow an instructor to choose different rubrics for different topics
    • PROBLEM: There is no way for an instructor to choose different rubrics for different topics
      • SOLUTION: Add a new column in the edit assignment Topics tab for choosing rubric(s)
        • New column only visible if rubrics vary by topic, per Rubrics tab
        • New column has multiple rounds per topic only if rubrics vary by round, per Rubrics tab
        • Default value for any rubric is that rubric which is shown on Rubrics tab
        • Rubric(s) in the dropdown list is/are only those that were created by the currently logged in instructor
      • FILE: app/views/assignments/edit/_topics.html.erb
    • PROBLEM: The code in app/views/assignments/edit/_rubrics.html.erb includes dropdowns like the ones we need to add for topics, but that code is way too complex for its functionality (too heavy for a view, uses JavaScript)
      • SOLUTION: Use the code in app/views/assignments/edit/_rubrics.html.erb for inspiration only
        • Refactor and move as much actual work as possible out into helper methods that are simply called from this view
        • Views are not intended to do heavy lifting
        • Use as little JavaScript as possible, since this is a Ruby On Rails project, not a JS project
      • FILE: app/views/assignments/edit/_topics.html.erb
  • Support the ability of the database to link rubrics to topics
    • PROBLEM: There is no relationship in the database that can link together rubrics with topics
      • SOLUTION: Add a new migration that adds topic_id field to existing assignment_questionnaires table
        • This new field will reference the id field in the sign_up_topics table
      • FILE: db\migrate\[timestamp]_add_topic_id_to_assignment_questionnaires_table.rb
    • PROBLEM: The AssignmentQuestionnaire model does not have any knowledge of topics
      • SOLUTION: Add a new belongs_to reference in the model, to sign_up_topic
      • FILE: app\models\assignment_questionnaire.rb
  • React to an instructor saving an assignment after altering the rubrics-vary-by-topic checkbox
    • PROBLEM: There is nothing in place to remember when an instructor chooses to vary rubrics by topic, or chooses to not vary rubrics by topic
      • SOLUTION: Upon assignment save, remove all records in the assignment_questionnaires table that relate to this assignment, for which the value of topic_id no longer makes sense
        • If we now want to vary by topic, we need to remove all records for which topic_id is nil
        • If we no longer want to vary by topic, we need to remove all records for which topic_id is not nil
        • Such records are no longer valid, and the instructor will need to specify which rubric to use for which topic
      • FILE: None!
        • Upon assignment save, all records related to this assignment will be removed, and replaced with records that represent the information entered in the assignment_form displayed in the assignment edit view.
        • This action is taken by the update_assignment_questionnaires method in the file app\models\assignment_form.rb.
  • Support the ability to find the correct rubric for a particular topic
    • PROBLEM: The existing methods allow us to find the correct rubric for a particular round, but not a particular topic
      • SOLUTION: Modify the existing method questionnaire(assignment, type, round_number) to also accept an optional argument topic_id
      • FILE: app\helpers\assignment_helper.rb
      • SOLUTION: Modify the existing method assignment_questionnaire(assignment, type, number) to also accept an optional argument topic_id
      • FILE: app\helpers\assignment_helper.rb
      • SOLUTION: Modify the existing method questionnaire(round = nil) to also accept an optional argument topic_id
      • FILE: app\models\review_response_map.rb
      • SOLUTION: Modify the existing method questionnaire(round) to also accept an optional argument topic_id
      • FILE: app\models\self_review_response_map.rb
      • SOLUTION: Modify the existing method review_questionnaire_id(round = nil) to also accept an optional argument topic_id
      • FILE: app\models\assignment.rb
  • Use the correct rubric for a particular topic
    • PROBLEM: When finding rubrics to display, save results from, calculate scores from, etc. round may be used but topic is not
      • SOLUTION: Examine all callers of methods modified in the previous section and pass in topic_id where appropriate to grab the correct rubric
      • FILE: (many)
  • Support the ability to determine if an assignment has rubrics that vary by topic
    • PROBLEM: There is no handy method to call that can tell us if an assignment has rubrics that vary by topic
      • SOLUTION: Add a new method varying_rubrics_by_topic? based on the existing method varying_rubrics_by_round?
      • FILE: app/models/assignment.rb

Testing

  • Test all of the affected helpers
    • File: spec/helpers
    • PROBLEM: We are going to add code to the file app/helpers/assignment_helper.rb, but this helper does not have an RSpec test suite yet
    • SOLUTION: Add spec/helpers/assignment_helper_spec.rb file
      • Thoroughly test assignment_questionnaire method in the app/helpers/assignment_helper.rb
    • PROBLEM: We may also need to create other helpers or helper methods as we get into the code
    • SOLUTION: Add tests for any newly created helpers or helper methods
  • Test all of the affected models
    • File: spec/models
    • PROBLEM: We are going to add code to the file app/models/assignment.rb, but this model does not have an RSpec test suite yet
    • SOLUTION: Add spec/models/assignment_spec.rb file
      • Thoroughly test varying_rubrics_by_topic? method in app/helpers/assignment_spec.rb
    • PROBLEM: We are going to add a new model /app/models/topic_questionnaire.rb', which will need an RSpec test suite as well
    • SOLUTION: Add spec/models/topic_questionnaire_spec.rb file
      • Thoroughly test all of the new model's methods

Implementation

In this section, we provide selected portions of modified code to illustrate how we implemented the new feature.

[to be populated after coding is complete]

Files Involved

In this section, we list all files that were modified while implementing the new feature.

  • [to be populated after coding is complete]

How To

In this section, we describe how to use the newly implemented feature.

Add a New Rubric

  • [to be populated after coding is complete]

Select a Rubric for a Topic

  • [to be populated after coding is complete]

Project Testing

To test code implementation, correctness of the added feature, verify that the team did not break any existing functionalities in the Expertiza, and ensure that no bugs were introduced in the code, we utilized the following Test Strategy:

  1. Code inspection
  2. Run and pass existing RSpec Tests
  3. Develop New RSpec Tests
  4. Run through live UI to test a feature using Expertiza instance

Rspec Testing

Our strategy for gaining confidence that our code changes did not break anything was as follows:

  • Run all existing RSpec tests on any changed files, after our changes, to ensure that we have not introduced any failures.
  • The commands and results are shown below.
  [to be populated after coding is complete]
  • Write new comprehensive RSpec tests, for all new methods.
  • Run these tests, to ensure that the new code works as intended.
  • The commands and results are shown below.
  [to be populated after coding is complete]
  • The test suite for a single new method is below.
  • There are many such suites in (TODO add filename(s)).
  • This example illustrates our general strategy:
    • test missing input
    • test bad input
    • test various acceptable forms of input
    • test scenarios that lead to "true" and to "false" return values
  [to be populated after coding is complete]

UI Testing

Here we describe UI Testing that has performed. Include Screenshots maybe?

Conclusion

[to be populated after coding is complete]

Useful Links

In this section we provide useful links related to the work that has been completed by our team.

  1. Forked Project Repository
  2. [(add link here) Pull Request]
  3. [(add link here) Video Demonstration of Specialized Rubrics]
  4. [(add link here) Video Demonstration of Passing Rspec Tests]

Team

Contacts

We have 4 (four) members in our team and 1 (one) mentor was also assigned to us. For any project-related questions/concerns please contact us:

  • Aurora Tiffany-Davis - attiffan@ncsu.edu
  • Ginger Balmat - gabalmat@ncsu.edu
  • Joe Hutchinson - jehutch3@ncsu.edu
  • Nikolay Titov - ngtitov@ncsu.edu
  • Zhewei Hu (mentor) - zhu6@ncsu.edu

Contribution Based Inquiry

For any questions or concerns related to the project design, implementation, testing of the feature developed by our team, please contact an engineer who worked closely on the topic of your interest based on the Contribution Assignment Grid we created to keep track of our progress and contribution. Please carbon copy all team members and our mentor in the email.

References

  • Expertiza Web [1]
  • Expertiza on GitHub [2]
  • Expertiza Wiki [3]
  • Rspec Documentation [4]
  • Wiki with Previous Work [5]
  • Pull Request of the Previous Work [6]