Expertiza is a web application through which students can submit and peer-review learning objects (articles, code, web sites, etc). The Expertiza project is supported by the National Science Foundation.
Right now, the match_new_teams_to_topics is breaking Single Responsibility Principle - we can test each method this way.
Break into the following methods:
(1) Verify Intelligent Assignment
(2) Get the SignUpTopics
(3) Retrieve the unassigned teams (optimize queries)
(4) Sort unassigned teams (optimize sort process)
(a) Calculate counts for each team before sorting
(b) Store counts in a hash
(c) Sort using the calculated counts
(5) construct teams bidding info and assign slots
(6) Set intelligent assignment flag back to false
Right now, the match_new_teams_to_topics is breaking Single Responsibility Principle - we can test each method this way.
Break into the following methods: (1) Verify Intelligent Assignment (2) Get the SignUpTopics (3) Retrieve the unassigned teams (optimize queries) (4) Sort unassigned teams (optimize sort process)