Commit Graph

42 Commits

Author SHA1 Message Date
Daniel Schädler 35c8591af3 fix: move beamer backfill to new migration 2026-04-26 23:51:34 +02:00
Daniel Schädler 68b72cc01a test: update beamer e2e contract 2026-04-26 23:45:35 +02:00
Daniel Schädler acdef9f5b4 feat(beamers): replace asset URLs with config
Add beamer config JSON, drop obsolete asset URL fields, and narrow display_state to the new beamer API states. Migration maps legacy display states to supported values and initializes config to {}.
2026-04-26 16:13:12 +02:00
Daniel Schädler e9ef73c230 refactor: rename timer db column 2026-04-24 11:39:26 +02:00
Daniel Schädler afff813994 feat: add timer modes and websocket updates 2026-04-23 23:29:03 +02:00
Daniel Schädler 7d65e4df82 feat: track team action list completion 2026-04-22 16:51:17 +02:00
Daniel Schädler 85cff5ef85 Fix merged tournament sync schema in tests 2026-04-16 16:15:45 +02:00
Daniel Schädler 03947ac0ca Sync beamer state to followers 2026-04-16 15:55:20 +02:00
Daniel Schädler 8789c2cb2e Merge origin/master into follower sync 2026-04-16 15:54:32 +02:00
Daniel Schädler 761bb8daea Simplify default beamer handling 2026-04-16 13:02:40 +02:00
Daniel Schädler 26679d87c2 Add sync snapshot tracking 2026-04-14 22:36:39 +02:00
Daniel Schädler bbb1ad97ef Make follower sync asynchronous 2026-04-13 20:54:28 +02:00
Daniel Schädler 133ebae847 Add read-only tournament follower sync 2026-04-13 20:32:34 +02:00
Tobias Huber 85fce7faac add backend beamer 2026-04-13 20:01:48 +02:00
Daniel Schädler 4713a020fa Implement TUR-58 group stage decider matches 2026-04-12 19:13:52 +02:00
Daniel Schädler 514bbb553b Add migration for timer 2025-03-09 21:27:38 +01:00
Daniel Schädler 1e899d9944 Add missing migrations 2024-04-07 21:21:33 +02:00
Thor77 28a74654d4 Update to rails 7.0.3
* updated ruby to 2.7.5
* updated rails to 7.0.3
* switched devise_token_auth to git for rails7 support
* ran `rails app:update`
* cleanup .gitlab-ci.yml
* remove unnecessary ci files
* remove unused docker rake task
* fix potential inconsistent image build by using commit images as base
2022-05-19 09:08:36 +02:00
Thor77 f3431e8442
Add bet model
* has_many relations in all belonging models
* specs for relations in existing models
* association specs for bet model
2019-06-17 13:48:49 +02:00
Daniel Schädler 2e336262aa Add state to stage
This state is required to stop the group stage and trigger playoff
generation, it is (for now) irrelevant for anything other than that.
2019-06-13 13:21:24 +02:00
Daniel Schädler 4d5d7bc812 Only allow positive powers of two for playoff_teams_amount 2019-06-13 13:21:24 +02:00
Daniel Schädler f5b610703c Add two new parameters to tournament
instant_finalists_amount is the amount of teams that instantly are in
the finals after the group stage ends.

intermediate_round_participants_amount is the amount of teams that have
a chance to advance after group stage but must play a relegation game to
actually do so.

Both of these values need to match, so that
instant_finalists_amount + (intermediate_round_participants_amount / 2)
is a power of 2. Or to be more precise, the power of two that is saved
in playoff_teams_amount of the tournament.
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 c1dc43948b Fix typo in received_points 2019-06-05 09:49:21 +02: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
Daniel Schädler fd02a1ecaf Add Position to Match in Database 2018-11-29 10:42:49 +01:00
Thor77 6e1af687ad Add default for scores.score 2018-11-19 14:41:30 +01:00
Thor77 7252c720ae
Remove unique index from users.provider 2018-11-19 11:47:13 +01:00
Thor77 b424b64422
Rewrite database schema 2018-11-19 11:47:13 +01:00
Thor77 b742b3ed67
Move group scores into separate table 2018-11-19 11:47:12 +01:00
Thor77 07eb561f77
Implement Tournament-Team relation 2018-11-19 11:47:12 +01:00
Thor77 1d463b55c3
Fix cascade symbol invalid 2018-11-19 11:47:12 +01:00
Thor77 244da7a2e6
Add on_delete cascade attr to user-tournament fk 2018-11-19 11:47:11 +01:00
Thor77 d89c24a645
Add relation between Tournament and User 2018-11-19 11:47:11 +01:00
Thor77 683423b06a
Add unique index to tournament code 2018-11-19 11:47:11 +01:00
Thor77 c9421e6d42
Add Tournament model 2018-11-11 21:31:47 +01:00
Thor77 821c40c35c
Merge initial schema migrations 2018-11-11 19:57:59 +01:00
Thor77 5774b2463a Format imported code 2018-11-11 19:39:13 +01:00
Daniel Schädler d5d61ec0a2 Add some Models 2018-11-11 18:52:15 +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