CSC/ECE 517 Fall 2016/E1631. Refactoring Bidding Interface: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 25: Line 25:


===Code changes===
===Code changes===
===New Files===
====New Files====
1) intelligent_topic_selection.html.erb  
1) intelligent_topic_selection.html.erb  
2) _suggested_topic.html.erb
2) _suggested_topic.html.erb
3) app/javascript/tablelist.js.coffee
3) app/javascript/tablelist.js.coffee


===Old code changes===
====Old code changes====
1) sign_up_sheet_controller.rb
1) sign_up_sheet_controller.rb
2) view/sign_up_sheet/list.html.erb
2) view/sign_up_sheet/list.html.erb
3) view/sign_up_sheet/_table_line.html.erb
3) view/sign_up_sheet/_table_line.html.erb
4) _table_header.html.erb
4) _table_header.html.erb

Revision as of 22:41, 27 October 2016

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.


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

The interface can make it simpler to set priorities for the projects. The signup page consists of tables, table1 and table2 side by side where: 1) Table1 consists of the list of topics and 2) Table2 is initially empty. 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 table1 into table2 and drop the topics in table2. As a result, the topic is deleted from table1 and added to table2. 2) The user can rearrange the already added topics in table2. As a result, the topics can be moved up and down within table2. The order of topics in table2, 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