Commit Graph

385 Commits

Author SHA1 Message Date
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
Thor77 4f8d9abbc2 Add encrypted slack token 2018-11-30 15:21:18 +01:00
Daniel Schädler 6355655d54
Merge pull request #9 from turniere/ticket/TURNIERE-97
Implement ScoreController
2018-11-30 15:18:29 +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
Thor77 25b558105a Serialize has_one match relation 2018-11-30 14:42:12 +01:00
Thor77 7f59d6fb0e Delegate Score.owner to parent team 2018-11-30 14:38:56 +01:00
Thor77 42e7141c52
Merge pull request #13 from turniere/bug/fix_group_scores
Rename model Score to GroupScore
2018-11-30 14:36:59 +01:00
Daniel Schädler ed3b8311fd Regenerate SVGs 2018-11-30 14:20:57 +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
Daniel Schädler 4afa32542e Change GroupScore attributes 2018-11-30 12:58:13 +01:00
Thor77 5b5562cbb6
Merge pull request #11 from turniere/ticket/TURNIERE-69
Implement Tournament Generation
2018-11-29 14:08:16 +01:00
Daniel Schädler 5fb0c62246 Make HoundBot shut (the fuck) up 2018-11-29 12:06:26 +01:00
Daniel Schädler 27a0d9c4b2 Add Organizer for Tournament creation 2018-11-29 11:58:33 +01:00
Daniel Schädler 7ba1f98fb4 Implements Adding Tournaments to Database 2018-11-29 11:58:27 +01:00
Daniel Schädler 26bcc3dc88 Implement Adding Playoffs to a tournament 2018-11-29 11:10:15 +01:00
Daniel Schädler 7f243b06a2 Implement Utils Class 2018-11-29 11:03:44 +01:00
Daniel Schädler a75087aa6c Prepare spec_helper for focused tests 2018-11-29 11:02:25 +01:00
Daniel Schädler 8e7869b879 Improve Factories 2018-11-29 11:01:52 +01:00
Daniel Schädler 34159f7e01 Add a running playoff Match to Match Factory 2018-11-29 11:01:17 +01:00
Daniel Schädler fbb87f5f7c Add a tournament with stages to factory 2018-11-29 10:48:26 +01:00
Daniel Schädler 1c318cde1a Add State to Model 2018-11-29 10:47:17 +01:00
Daniel Schädler fd02a1ecaf Add Position to Match in Database 2018-11-29 10:42:49 +01:00
Daniel Schädler a6bf253270 Ignore Database schema and coverage folder 2018-11-29 10:41:55 +01:00
Daniel Schädler 5bad1fc3a4 include Interactors for Business logic 2018-11-29 10:41:35 +01:00
Jonas Seydel a2224a2b5a Add slack notifications (#8) 2018-11-25 23:59:11 +01:00
Jonas Seydel 9f186ef128
Merge pull request #7 from turniere/feature/db-seeds
Add database seeds
2018-11-25 23:05:24 +01:00