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

64 Commits

Author SHA1 Message Date
c133a8b051 Added safeguards for generating pool matches along with tests, updated two errors on about page, and added time saver to create middle school weights 2023-01-24 22:56:22 +00:00
8430949a37 Fixed a couple slow queries 2021-12-11 03:08:43 +00:00
ad259f00b5 Fixed n+1 error for matches page on tournament 2021-11-08 22:42:55 +00:00
0aea26967a Added quick create high school girls weight classes 2021-02-18 20:27:44 +00:00
6acea87822 Fix team points per OHSAA 2020-01-07 07:25:49 -05:00
e2ec1d4a8a Fixed bug with pool to bracket advancement. This bug was conceived due to the removing of tests and logic when making pool and pool_placement database fields. 2019-12-12 11:19:24 -05:00
a76f4036b3 Added persistence to pool placement and pool order 2019-04-19 10:33:06 -04:00
80ae130aa8 This fixes a bug where moving from two pools to four did not work 2019-02-05 14:15:09 +00:00
4eb75d45d3 Fixed issue with wrestlers having a pool number higher than possible when bracket types change after deleting wrestlers 2019-01-19 21:26:48 +00:00
b2b007bd96 Added eight pools to quarter final bracket 2018-12-24 13:36:03 +00:00
d67a8f2b42 Refactored names of methods and some db column 2018-11-13 14:14:48 +00:00
436e716cd4 Changed database column for wrestlers seed to bracket_line 2018-09-17 14:29:00 +00:00
e168d0b51d Added functionality for a tournament director to move a wrestler to a pool that has a bye for greater flexibility 2017-08-29 13:02:00 -04:00
3f72a912b6 Wrestler pool number is now saved in db. Pool number generation moved to it's own class. 2017-03-02 18:11:21 +00:00
2f9c54df2e Refactored match generation so I can eventually support multiple types of tournaments 2016-05-14 13:28:28 +00:00
ddcf2d807e Speeding up tests and renaming a few methods in generateMatchups 2016-03-26 03:54:31 +00:00
a8b96c96e8 Swap page is now working and also moved swaping logic from tournament model to its own class 2016-01-27 14:13:49 +00:00
0275b48499 Fixed issue with zero seeded kids 2016-01-25 01:18:02 +00:00
5c71d98998 Move two highest pool seeds match to last pool round 2016-01-22 19:00:15 +00:00
1ee671f5b4 Define where to put seeds 5-8 2016-01-20 17:52:06 +00:00
1401dbea98 Seeds need to be nil before setting seeds 2016-01-20 14:32:23 +00:00
a757c8a777 Fixed random seeding 2016-01-13 03:44:56 +00:00
e460fd7880 Forgot 126 with hs weights 2015-12-30 23:21:05 +00:00
198c6d5e82 Model validations 2015-12-30 19:04:41 +00:00
74577eb9ec Random seeding now works 2015-12-30 16:21:56 +00:00
4a4dfde8bb Fixed model names 2015-12-15 08:30:13 -05: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
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
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
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
RJ Osborne
2a57cafd6d extracted wrestlers_for_pool method
removed unnecessary select
2015-05-23 08:07:11 -04:00
37470d9602 Moved match generation to a class and added tournament_type to tournaments. 2015-04-27 13:54:57 -04:00
9c5c12c413 Matchups_array completely removed. I do not know why has_many matches
does not work in tournaments. The solution was to add a matches
method.
2015-04-27 09:50:41 -04:00
451e6911f8 Fixed totalRounds in weight 2015-04-01 13:44:01 +00:00
9986c8b407 Removed unnecessary attr_accessors 2015-03-30 17:45:37 +00:00
9976fd5869 Added before save on wrestler and weight. Also fixed fourPoolNumbers for weight 2015-03-28 18:16:32 +00:00
d7bbd32460 Formatting code and deleting uneeded methods 2015-03-28 14:43:14 +00:00
7146c401cf Test 5 match rule for bracket size 5-16 2015-03-27 19:07:49 +00:00
a821c28cf7 Created one page for all pools 2015-03-27 16:33:09 +00:00
4b6b20c912 Created integration test for poolbracket matchups 2015-03-27 12:52:35 +00:00
819d735480 Cleaned scaffold tests and set up fixtures needed for now. 2015-03-26 16:55:33 +00:00
c1081ef64a Generate blank matchups for pool brackets 2015-03-23 19:14:58 +00:00
27883597ca Set up blank bracket matches for fourPools 2015-03-23 18:17:06 +00:00
20f9b7f016 Cleaned up a little bit of code 2015-03-23 11:59:56 +00:00
c86f678fd1 Moved poolNumber generation to weight. 2015-03-17 09:06:21 -04:00
2843760779 Create bracket views with upcomingMatches 2015-03-16 08:35:56 -04:00
05c340eb94 Reducing queries for upcoming matches 2015-03-16 08:06:08 -04:00