Commit Graph

171 Commits

Author SHA1 Message Date
Thor77 f751a2ac59 Use production env (defined in Dockerfile) 2019-04-17 09:15:39 +02:00
Daniel Schädler 277c362d15 Add development dirs/files to .dockerignore
Co-Authored-By: Thor77 <thor77@thor77.org>
2019-04-17 09:14:30 +02:00
Thor77 6633774342
Add docker-compose.yml 2019-04-17 08:25:13 +02:00
Thor77 201f08f09c
Add rake docker tasks 2019-04-17 08:25:13 +02:00
Thor77 fa6b3545f9
Add Dockerfile 2019-04-17 08:25:13 +02:00
Thor77 b8ebfb6858
Add .dockerignore 2019-04-17 08:25:13 +02:00
Daniel Schädler 55ffdba1b6
Merge pull request #27 from turniere/ticket/TURNIERE-142
Render error response for invalid parameters
2019-04-16 14:07:14 +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 a14a5224e5 Add spec for tournament-creation with invalid team 2019-04-16 13:24:58 +02:00
Thor77 81985415b2
Merge pull request #26 from turniere/ticket/TURNIERE-100
Override registration and session render methods
2019-04-16 13:07:09 +02:00
Thor77 417b296d0e Override registration and session render methods
to remove wrapping data-element
2019-04-16 11:01:31 +02:00
Daniel Schädler f223c03686
Merge pull request #25 from turniere/ticket/TURNIERE-129
Add tests checking generated stage
2019-04-09 10:58:06 +02:00
Thor77 2b2fccf076 Add tests checking generated stage 2019-04-09 10:47:17 +02:00
Daniel Schädler b201503437
Merge pull request #24 from turniere/ticket/TURNIERE-129
Add endpoint for tournament creation
2019-04-08 12:33:18 +02:00
Thor77 a2e35e1710 Create teams with only name attribute 2019-04-08 11:16:51 +02:00
Thor77 cdd6b6737f Add test for non-existing team and names 2019-04-08 11:15:24 +02:00
Thor77 2385650be0
Adapt tests to updated tournament controller 2019-04-07 19:27:28 +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 12c14303f2
Validate exact tournament lists instead of sizes 2019-04-07 18:46:48 +02:00
Thor77 420ea76191
Merge pull request #23 from turniere/ticket/TURNIERE-132
Permit and test parameters without root key
2019-04-07 16:33:08 +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 667d6a028c
Test controller params as they're documented 2019-04-07 13:40:34 +02:00
Thor77 9d914774a2
Merge pull request #22 from turniere/TURNIERE-103
Add documentation for all services
2019-04-03 15:54:57 +02:00
Daniel Schädler 7f87ce9230 Add documentation for all services 2019-04-03 15:33:59 +02:00
Daniel Schädler 9ac71e4c71
Merge pull request #21 from turniere/ticket/TURNIERE-122
Update ruby and ruby dependencies
2019-04-03 11:27:11 +02:00
Thor77 a99ae0e248 Assert tournament/stage/group relations optional 2019-04-03 10:03:45 +02:00
Thor77 d7a8504b45 Replace deprecated Faker::Dog 2019-04-03 09:45:56 +02:00
Thor77 d7910c093b Update user model to extend devise models 2019-04-03 09:43:04 +02:00
Thor77 603ad5ca34 Update ruby dependencies 2019-04-03 09:42:14 +02:00
Thor77 7f8e1651f0 Bump ruby version to 2.6.2 2019-04-03 09:40:49 +02:00
Daniel Schädler 03244c1820
Merge pull request #18 from turniere/ticket/TURNIERE-112
Change API schema
2018-12-11 17:42:49 +01:00
Thor77 c38066408f Adapt deserialization methods to new schema 2018-12-11 17:14:43 +01:00
Thor77 945c499de7 Skip spec for tournament creation for now
because we need to find a proper way to implement it in a RESTful way
2018-12-11 17:14:43 +01:00
Thor77 dcb8e6b216 Adapt controller specs to new api schema 2018-12-11 17:14:43 +01:00
Thor77 5126e5ae76 Add position to MatchSerializer 2018-12-11 17:14:43 +01:00
Thor77 d1bc3de6b0 Add owner_username attribute to Tournament
displaying the username of the user owning the tournament
2018-12-11 17:14:43 +01: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 2f828542ef Alias recieved_points to received_points
to avoid a change of the db schema for now
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 e3bbe2b773 Include description only in full Tournament 2018-12-11 17:12:55 +01:00
Thor77 baf1acc10b Include team-relation in MatchScoreSerializer 2018-12-11 17:12:55 +01:00
Thor77 2f4df349c0 Add GroupScore, Group and StageSerializer 2018-12-11 17:12:55 +01:00
Thor77 bfe1c07fdc Include id-attribute for all serializers 2018-12-11 17:12:55 +01:00
Thor77 1f1d9e36fc Switch to :attributes serialize schema 2018-12-11 17:12:55 +01:00
Daniel Schädler 6b7aecaed4
Merge pull request #20 from turniere/feature/db_testdata
Save Matches and Stages
2018-12-11 16:39:28 +01:00
Daniel Schädler a155d7d7e2 Save Matches and Stages 2018-12-11 16:35:14 +01:00
Daniel Schädler 57faaa665e
Merge pull request #19 from turniere/feature/db_testdata
Add beautiful testdata
2018-12-11 16:25:56 +01:00
Daniel Schädler 4142f473f0 Make seeds.rb beautiful 2018-12-11 16:21:52 +01:00