CSC/ECE 517 Fall 2016/E1631. Refactoring Bidding Interface

From Expertiza_Wiki
Revision as of 22:45, 27 October 2016 by Lzheng5 (talk | contribs)
Jump to navigation Jump to search

Introduction

On Expertiza, the bidding interface allows students to sort topics by preference. This is needed in order run the team assignment algorithm, to match students with others based off the similarity in their topic preferences. The problem with the present method is that the students have to type in their priorities into the boxes beside the topic. While doing this the students end up making mistakes in setting up priorities by assigning random numbers to the topics, sometimes, even numbers greater than total number of topics available to prioritize. This phenomena causes various problems when running the topic assignment algorithm.

We built an interface in sign up sheet that would allow students to drag and drop the topics into the priority table. Where this priority table will be used to run the selection algorithm with ease. This interface would help avoid the errors caused by the previous interface.

Old Bidding Interface

As shown in the picture below, in the old bidding interface users need to manually enter the priority. They can't repeat the same priority number twice. It's difficult for them to remember all the priority numbers entered previously. If they enter the same priority value, system throws an error. Some users made mistake and entered some random priority values (e.g priority value greater then number of topics etc). This caused many problems in the intelligent team assignment algorithm. This situations can be handled by adding more checks. But we can avoid these errors by only giving the users to order their topics by topic name and expertiza code can assign required priority numbers internally.

Old Signup Table


New Bidding Interface

We proposed sortable list interface to solve the problem associated with the old interface. New interface has two tables. First table holds all the topic lists and second table holds all the chose user priorities. User can select the topic by moving the item from Topics table to Selection table. Users can also resort already selected topics. System also provides the ability to remove already selected topic from the selection by just moving it back to the topic selection table.


How It Works

These are the set of operations a user can perform on this signup page using the cursor: 1) The user can drag the topics from table on the left into the table on the right. As a result, the topics are moved from one table to another. 2) The user can rearrange the already added topics in the table on the right. As a result, the topics can be moved up and down within this table. The order of topics in table on the right, from top to bottom, are taken in the order of high to low priorities. Then this list of prioritized topics is used to run the intelligent bidding algorithm.

Code changes

New Files

  1. intelligent_topic_selection.html.erb
  2. _suggested_topic.html.erb
  3. app/javascript/tablelist.js.coffee

Old code changes

  1. sign_up_sheet_controller.rb
  2. view/sign_up_sheet/list.html.erb
  3. view/sign_up_sheet/_table_line.html.erb
  4. _table_header.html.erb