Commit Graph

411 Commits

Author SHA1 Message Date
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
Thor77 3e4853046a
Merge pull request #17 from turniere/feature/cors
Add exposed headers to cors config
2018-12-04 14:37:56 +01:00
Thor77 4aae1033a3 Add exposed headers to cors config 2018-12-04 12:11:49 +01:00
Daniel Schädler ed1314c0da
Merge pull request #16 from turniere/ticket/TURNIERE-98
Add workaround for shoulda-matchers#1067
2018-12-04 12:11:45 +01:00
Thor77 8261a919fa
Add workaround for shoulda-matchers#1067
https://github.com/thoughtbot/shoulda-matchers/issues/1067
This issue led to the failure of the solution I implemented before in 8f88362264.
Because of it shoulda-matchers will just ignore the given record for the
validation check and just take the first existing one which in this case
can still contain a only-digits code, because it was generated in the
before-block.
2018-12-02 21:16:24 +01:00
Daniel Schädler 1afc13c9c3
Merge pull request #14 from turniere/update-deps
Update dependencies
2018-12-02 15:49:58 +01:00
Thor77 3096d5708a Update dependencies 2018-12-02 15:45:59 +01:00
Daniel Schädler e0fca9c5bd
Merge pull request #15 from turniere/ticket/TURNIERE-98
Fix Tournament model spec randomly failing
2018-12-02 14:44:00 +01:00
Thor77 8f88362264 Use code with only alphas for unqiue-validation
Because in some ocassions a tournament code with only digits is
generated which would fail this test because shoulda is not able to
convert it to an uppercase version to test for case-sensitivity of the
validation.
2018-12-02 13:54:27 +01:00
Thor77 dc17cad154 Ensure uniqueness of generated Tournament.code 2018-12-02 13:51:54 +01:00
Daniel Schädler f9da696e3f
Merge pull request #12 from turniere/feature/slack-notifications-secure
Update Slack token
2018-11-30 15:59:40 +01:00