CSC/ECE 517 Fall 2023 - E2360. View for Results of Bidding: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 53: Line 53:
Method: "bidding_details"
Method: "bidding_details"


'''Fetching topics and bids.'''
'''The controller for fetching topics and bids.'''


[[File:Bidding_details_controller.png | 888px]]
[[File:Bidding_details_controller.png | 888px]]
Line 76: Line 76:


File: ./spec/controllers/lottery_controller.spec.rb
File: ./spec/controllers/lottery_controller.spec.rb
'''RSpec Testing on "bidding_details" method'''


[[File:Rspec_testing.png | 888px]]
[[File:Rspec_testing.png | 888px]]

Revision as of 16:30, 6 November 2023

Expertiza

Expertiza is an open source project based on Ruby on Rails framework. Expertiza allows the instructor to create new assignments and customize new or existing assignments. It also allows the instructor to create a list of topics the students can sign up for. Students can form teams in Expertiza to work on various projects and assignments. Students can also peer review other students' submissions. Expertiza supports submission across various document types, including URLs and wiki pages.

Background

When topics are opened up for bidding, students can see how “hot” each topic is by the color it has on their topic list. However, instructors have no way to view the bidding process except by impersonating students. Furthermore, when the bidding assignment algorithm is run, there is no way to verify that it did in fact assign teams to topics they had chosen.


Previous Work

CSC/ECE_517_Spring_2022_-_E2245:_View_for_results_of_bidding

Accomplishments

This project added a "View Bidding Details" when the instructor enables the "bidding for topics" feature. By clicking it, it redirects us to a new page, where shows the following details of bidding:

  • Topic Name
  • Bidding Teams
  • Bidding Order
  • The number of bidding a topic gets

Also, for each topic, the team that wins the bidding will be highlighted with a yellow background color so that the instructor can easily find out which team each topic is assigned to.

The button leads to a page that contains bidding information for the assignment. It displays the number of #1, #2, and #3 bids on a specific topic, the teams that bid and priority of their bid, and the name of the team that got assigned the topic is highlighted.

Files Involved:

The files to be worked upon are:

  • ./app/controllers/lottering_controller.rb
  • ./app/views/lottery/bidding_details.ntml.erb
  • ./app/assignments/edit/_topics.html.erb
  • ./spec/controllers/lottery_controller.rb

Team Members

  • Richard Li rli14@ncsu.edu
  • Shreshth Malik smalik4@ncsu.edu
  • Shuai Chen schen76@ncsu.edu


Implemented Code

1. Lottering Controller

File: ./app/controllers/lottering_controller.rb

Method: "bidding_details"

The controller for fetching topics and bids.

2. Bidding Details View

File: ./app/views/lottery/bidding_details.ntml.erb

Added a button and corresponding JavaScript which toggles its visibility based on “Enable bidding for topics?” checkbox.

3. The button of View Bidding Details

File: ./app/assignments/edit/_topics.html.erb

File: ./spec/controllers/lottery_controller.spec.rb

4. RSpec Testing on "bidding_details" Method

File: ./spec/controllers/lottery_controller.spec.rb