Commit Graph

85 Commits

Author SHA1 Message Date
Daniel Schädler 4713a020fa Implement TUR-58 group stage decider matches 2026-04-12 19:13:52 +02:00
Daniel Schädler c8b0f1a7a3 Syntax improvements 2025-03-16 12:41:47 +01:00
Daniel Schädler b1cc300d98 Merge branch 'first_vs_second_with_offset' into 'master'
First vs second with offset

See merge request turniere/turniere-backend!29
2025-03-14 12:35:17 +00:00
Daniel Schädler f71c7ec57f Merge branch 'timer' into 'master'
Timer

See merge request turniere/turniere-backend!30
2025-03-14 12:00:29 +00:00
Daniel Schädler fafc4d3937 Rubocop 2025-03-13 12:35:27 +01:00
Daniel Schädler 5ab18063dd Fix bug where uneven groups cause 500 when requesting beamer view 2025-03-13 12:34:05 +01:00
Daniel Schädler 16e65a3b03 Fix missing checks 2025-03-10 12:56:20 +01:00
Daniel Schädler 4d1e2c5164 Add option to also pass seconds to timer_end 2025-03-10 12:37:19 +01:00
Daniel Schädler 7b9a454cb6 Fix syntax in tournaments_controller.rb 2025-03-10 11:49:51 +01:00
Daniel Schädler c5dd8beb00 Typo 2025-03-08 17:39:51 +01:00
Tobias Huber 3c1168212e add timer_end to tournaments model 2025-03-08 17:08:48 +01:00
Daniel Schädler 6432296391
Fix logging 2022-07-01 22:21:23 +02:00
Daniel Schädler b609549659
Add logging if updating group scores fails 2022-07-01 20:19:57 +02:00
Daniel Schädler a67ef86dca
Fix upcoming matches not returning for group stage 2022-06-29 22:48:54 +02:00
Daniel Schädler 8d438946fe
Merge branch 'master' into performance 2022-06-25 21:32:17 +02:00
Daniel Schädler bbb8e209df
Update groups points at start and end of a match 2022-06-25 18:20:59 +02:00
Thor77 96abf0536a
Add simple health check 2022-06-10 19:18:08 +02:00
Daniel Schädler ead6d4f475
TUR-9: Alter match filter for playoff stage to how it probably was meant to be 2022-05-20 09:41:01 +02:00
Daniel Schädler afa9a26d93
Add documentation to upcoming matches filter 2022-05-20 09:27:54 +02:00
Daniel Schädler 22ab1eb69b
TUR-9: Remove unnecessary reject (this never did anything; there is no state "running") 2022-05-20 09:27:54 +02:00
Daniel Schädler e184c76083
WIP 2022-05-20 09:27:53 +02:00
Daniel Schädler c3af6f9232
Rubocop -A 2021-08-15 14:31:50 +02:00
Thor77 28d047b1bf
Include parent group/stage in .index 2019-11-06 15:58:10 +01:00
Thor77 5343fcbd20 Recurisvely include all related objects 2019-11-06 11:38:24 +01:00
Daniel Schädler b001817bac Filter matches by state parameter 2019-10-26 00:34:04 +02:00
Daniel Schädler a6b7a905a0 Return matches as children of tournament 2019-10-25 23:49:27 +02:00
Thor77 d317585168
Add "simple" parameter to tournament show 2019-10-25 23:17:08 +02:00
Daniel Schädler b28561043e Implement stages controller (GET UPDATE) 2019-06-18 22:22:10 +02:00
Daniel Schädler 4925ea9d83 Make teams added to PlayoffStage configurable 2019-06-18 22:22:10 +02:00
Thor77 041ee4ab2c Include bets in match resource 2019-06-18 18:51:55 +02:00
Thor77 f3b8fd4184 Use collection serializer 2019-06-18 18:51:55 +02:00
Thor77 2baefb9ae6 Associate teams only on interactor success 2019-06-18 13:29:31 +02:00
Thor77 3109308817 Fix teams not associated with created tournament
when choosing a group stage
2019-06-18 13:29:31 +02:00
Thor77 76e301e920
Add BetsController 2019-06-17 13:48:49 +02:00
Daniel Schädler a74030a7ef Implement GroupsController 2019-06-16 13:22:15 +02:00
Daniel Schädler 5004dec39a Change playoff transition relevant attributes of tournament on update
They are only updated when playoff_teams_amount changed alone
2019-06-13 13:21:24 +02:00
Daniel Schädler e936fd40b2 Convert integer parameters to actual integers
Apparently rails thinks this is the way to do it.
2019-06-13 13:21:24 +02:00
Daniel Schädler b408d1dd37 Ignore validity of matching params if only playoff_teams_amount changed
If only playoff_teams_amount changed, the other two will be overwritten
anyways.
2019-06-13 13:21:24 +02:00
Daniel Schädler 6a060651a4 Validate update parameters
playoff_teams_amount, instant_finalists_amount and
intermediate_round_participants_amount need to make sense together
2019-06-13 13:21:24 +02:00
Daniel Schädler c1b2b72ca3 Simplify controller code
Matches update now gets rolled back via a Transaction
2019-06-05 17:05:58 +02:00
Daniel Schädler 68535b89fc Prevent matches from being stopped without a winner in playoffs 2019-06-05 17:05:58 +02:00
Daniel Schädler bd2af09339 Add field to tournament containing playoff_teams_amount
This field represents how many teams advance into playoff stage after
the group stage has ended.
2019-06-05 16:46:06 +02:00
Daniel Schädler 957788651c Update group_scores on match_score change if match is a group match 2019-06-05 09:49:21 +02:00
Thor77 b07447aaae Permit username key for account update 2019-06-04 09:55:45 +02:00
Thor77 12005b95fa
Fix group score not serialized correctly
when returned from statistics endpoint
2019-05-28 22:24:03 +02:00
Daniel Schädler 2b39bb1521 Move populating the match below to when the state is changed 2019-05-26 20:15:58 +02:00
Daniel Schädler 12daf53599 Check for errors while populating the match below 2019-05-26 20:15:16 +02:00
Daniel Schädler fc69c6e6e6 Implement PopulateMatchBelow Interactor & Organizer 2019-05-26 20:15:16 +02:00
Daniel Schädler 2c9e06946d Call populate_match_below when a match is finished 2019-05-26 20:14:13 +02:00
Daniel Schädler 280b0c1dec Change status of Match to only represent being finished
The winner will be a attribute of the Match instead of something
that is written in its status.
2019-05-26 20:14:13 +02:00