Daniel Schädler
a812e7103d
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-12 19:12:42 +02:00
Daniel Schädler
cb00cd7be8
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-12 19:12:42 +02:00
Thor77
27c4bcacc8
Respond with 501 for state param 'finished'
...
(501 = NOT IMPLEMENTED)
2019-05-07 18:41:53 +02:00
Thor77
3876f57d32
Add methods and specs to update a match
2019-05-07 18:41:53 +02:00
Thor77
436adde706
Set global match var for reuse by other methods
2019-05-07 18:41:52 +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
157844b4ae
Catch missing parameter exceptions to render error
2019-04-16 13:24:58 +02:00
Thor77
08d2ae59a5
Check teams array before calling create method
2019-04-16 13:24:58 +02:00
Thor77
417b296d0e
Override registration and session render methods
...
to remove wrapping data-element
2019-04-16 11:01:31 +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
Daniel Schädler
dd2f66f49d
Score is now MatchScore & Score Attribute is Points Attribute
2018-11-30 15:10:33 +01:00
Thor77
e763f14719
Add ScoresController and their specs
2018-11-30 14:42:12 +01:00
Daniel Schädler
68f9b3b2b3
Change Score to MatchScore & MatchScore score attribute to points
...
This is done to improve the naming and therefore make things easier to understand.
2018-11-30 14:15:48 +01:00
Thor77
4c05a7222e
Use deserialize_params helper
2018-11-25 22:55:49 +01:00
Thor77
0a583ebe53
Remove unused match_params
2018-11-25 22:55:49 +01:00
Thor77
e81ef81150
Add TournamentsController
2018-11-25 22:55:48 +01:00
Thor77
fecdb7db2d
Add deserialize_params helper
2018-11-25 22:55:48 +01:00
Thor77
92de7b8a57
Fix rubocop Style/MethodDefParentheses
2018-11-24 19:20:53 +01:00
Thor77
0308dc121f
Add TeamsController and corresponding specs
2018-11-24 19:18:03 +01:00
Thor77
668584c68b
Add require_owner! filter action
2018-11-24 19:14:31 +01:00
Thor77
6c24180715
Add MatchesController and specs for it
2018-11-21 18:57:16 +01:00
Thor77
2a20c02f56
Apply rubocop formatting
2018-11-10 15:50:27 +01:00
Thor77
3f8ca715cc
Add devise token authentication
2018-11-10 15:46:02 +01:00
Thor77
9d51a36b0a
Initial commit
2018-10-30 15:52:46 +01:00