1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00
Commit Graph

140 Commits

Author SHA1 Message Date
702a52311b Added most decision points and quickest pin to the tiebreakers 2015-12-17 14:03:14 +00:00
ae056ec7f8 Added when they last wrestled 2015-12-17 13:06:42 +00:00
e2966c0456 Fixed win displays for brackets 2015-12-16 12:51:32 +00:00
d48b1b573f Destroy matches on wrestler create not save 2015-12-15 13:25:23 -05:00
4a4dfde8bb Fixed model names 2015-12-15 08:30:13 -05:00
7970ff000c Re assign bouts to mats if mat is destroyed or created 2015-12-14 20:23:47 +00:00
d28e95ed31 Put finals in same round 2015-12-07 15:24:42 +00:00
68fe5e4f90 Updated views for wrestlers show page 2015-12-04 19:50:32 +00:00
c9125527d7 Fixed pooladvance and updated views for when tournament ends 2015-12-04 13:26:32 +00:00
5898393fac Fixed bug in pooladvance and refactored 2015-12-03 20:27:38 +00:00
393326f24f Showing next bout number and mat on school show page 2015-11-19 13:46:58 +00:00
0ba25da89a Updating views 2015-11-18 13:11:47 +00:00
67727c6391 Testing team points for pool to bracket 2015-11-17 19:03:34 +00:00
61ed7c9d69 Renamed to pool bracket placement points 2015-11-17 16:42:16 +00:00
da6b95fed8 Placement points added need to test 2015-11-17 16:39:56 +00:00
1aee738eb5 Record score in db and update when match is updated 2015-11-17 15:28:54 +00:00
bb8564b44c Cleaning up code for pool advance 2015-11-17 13:41:35 +00:00
c71d94fe19 Added tie breakers for most pins most techs and most majors 2015-11-17 12:21:21 +00:00
328898f1e8 Tie breaker for team score 2015-11-16 16:59:08 +00:00
2e1f70803b Advance wrestlers after teampointadjust in case its added after the last match in a pool. Also added coin flip tie breaker 2015-11-16 13:51:01 +00:00
934ccc28ee Deducted points pool tie breaker added 2015-11-16 13:31:27 +00:00
34a04be4bf Added head to head pool winner and tests 2015-11-10 02:58:52 +00:00
e426a491b3 Trying to remove queries and rely on associations 2015-11-02 13:25:53 -05:00
f14fbadfd1 Reducing queries for up_matches on mat model 2015-11-02 11:58:51 -05:00
364ee21e3f trying to speed up brackets page 2015-11-02 11:14:03 -05:00
3734258e6c fixing match wrestler1 and wrestler2 2015-11-02 11:04:40 -05:00
c0760dfdf8 Trying to increase speed of up_matches 2015-11-02 10:55:41 -05:00
d18e729012 Finished setting owner for tournamenr and protecting paths 2015-10-26 16:31:45 -04:00
ad9ea9dc42 First crack at setting an owner for the tournament 2015-10-23 08:53:29 -04:00
aec3702835 update bout board when matches end 2015-10-19 19:45:43 -04:00
4b447b86f9 Added winner name for final line of brackets 2015-10-15 15:13:52 -04:00
386dc1605f Finished pool advance logic still need tests 2015-10-14 17:58:28 -04:00
087c383996 Continuing pool bracket movements 2015-10-13 20:57:35 -04:00
516dbe66ad Mock advancment from pools to brackets 2015-10-08 17:31:27 -04:00
0fd3bd64fe Added a bout board 2015-06-19 15:25:01 +00:00
d065e31818 Loser name generation was not saving. Fixed that and added a test. 2015-05-28 12:24:46 +00:00
RJ Osborne
284439e2cf Removed upcomingMatches because matches are an A-R relation of Tournament 2015-05-28 00:25:14 -04:00
RJ Osborne
062396da0a A Tournament can now generate its own matches.
This was again extracted as a module.  Modules get more powerful as they get more generic.  This is far from generic.
2015-05-27 23:57:37 -04:00
RJ Osborne
9b2c2dde60 Converted class tournamentmatchgen into the GeneratesLoserNames module.
Here is another way to handle functionality that you may not want bloating your ActiveRecord class, yet belongs _on_ the model.
In this case, I feel there is an abstraction we are still sorely missing.
2015-05-27 23:29:51 -04:00
RJ Osborne
25c92a125d Boutgen is dead. Tournaments can assign their own bout numbers. 2015-05-27 23:04:17 -04:00
RJ Osborne
c041286943 rough cut of getting rid of the matches collection being passed around
Associated Weight and Match-- the FK already existed in the domain
Reduced argument counts on assignLoserNames and assignBouts; trying to pass a Tournament around more
This was a tough nut to crack.  Looking back, I tried to eat too much of the horse at once on this refactor.
2015-05-26 19:26:15 -04:00
RJ Osborne
20ef048f48 Poolbracket does not keep a matches collection 2015-05-26 19:26:15 -04:00
RJ Osborne
c855da0e6e Ripped state out of Poolbracket
Implicitly added tournament_id to matches generated by Poolbracket
Removed explicit tournament assignment at save
2015-05-26 19:26:15 -04:00
RJ Osborne
091b7c4181 Cut the runtime by queueing the changes in memory and deferring database writes
Made some unspecified behavior explicit
2015-05-26 19:26:15 -04:00
9d8e0850bc Refactored generating matches 2015-05-26 18:27:55 +00:00
RJ Osborne
2a57cafd6d extracted wrestlers_for_pool method
removed unnecessary select
2015-05-23 08:07:11 -04:00
RJ Osborne
23d8c4e159 remove another argument from roundRobin 2015-05-23 06:38:55 -04:00
RJ Osborne
aec47ddf13 introduced a constructor for Pool and reduced arguments on roundRobin and generatePools 2015-05-23 06:15:44 -04:00
RJ Osborne
399923b949 removed the matches argument to generatePools and roundRobin 2015-05-23 06:01:15 -04:00
RJ Osborne
8177924635 move some variables to method scope 2015-05-23 05:46:28 -04:00