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
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
8388af20f0
Generalize tournament save interactor
...
It now is responsible for saving all ApplicationRecord objects to the
database. This will reduce code duplication one we have other objects
that need to be saved. (As we will soon need to save individual matches)
2019-05-26 20:14:13 +02:00
Daniel Schädler
bfadc7a6af
Dry out Tournaments Controller
2019-05-04 20:34:57 +02:00
Daniel Schädler
9053251706
Document group_stage generation parameter preparation
2019-05-04 20:34:57 +02:00
Daniel Schädler
f9b96cbee2
Indicate the groups variable being changed within the method
2019-05-04 20:34:57 +02:00
Daniel Schädler
74e9139b33
Removes unnecessary check
2019-05-04 20:34:57 +02:00
Daniel Schädler
acfc388da4
Implements group stage tournament creation
2019-05-04 20:34:57 +02:00
Daniel Schädler
f9b1b603f0
Permits "group_stage" as valid parameter for a create request
2019-05-04 20:34:57 +02:00
Thor77
2b72d0457e
Implement type parameter for tournaments index
2019-04-24 22:49:48 +02:00
Thor77
08d2ae59a5
Check teams array before calling create method
2019-04-16 13:24:58 +02:00
Thor77
a2e35e1710
Create teams with only name attribute
2019-04-08 11:16:51 +02:00
Thor77
ec4e2797c2
Call tournament generation for create endpoint
...
and associate given team ids with the new tournament
2019-04-07 19:24:17 +02:00
Thor77
e78de72f3d
Fix id and model logged as unpermitted params
...
by slicing selected attributes from params and permitting them all.
2019-04-07 16:09:59 +02:00
Thor77
8b07c46acd
Permit parameters without root key
2019-04-07 14:00:06 +02:00
Thor77
32c012af32
Use plain params-hash instead of custom helper
...
for deserialization of create/update-data
2018-12-11 17:12:55 +01:00
Thor77
5076197f78
Recursively include all relations for a tournament
2018-12-11 17:12:55 +01:00
Thor77
e81ef81150
Add TournamentsController
2018-11-25 22:55:48 +01:00