From b66e6af4bfd37bd693de762d373aacbc79cfb92e Mon Sep 17 00:00:00 2001 From: Felix Eckhofer <felix@eckhofer.com> Date: Fri, 27 Dec 2024 03:09:16 +0100 Subject: [PATCH] Add static shifts --- db/seeds.rb | 261 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) diff --git a/db/seeds.rb b/db/seeds.rb index 0bd398e..20a12fc 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -78,6 +78,267 @@ Conference.find_or_create_by(slug: "38c3-more").tap do |c| c.save! end +orga = Conference.find_or_create_by(slug: "38c3-orga").tap do |c| + c.name = "38th Chaos Communication Congress (internal shifts)" + c.time_zone = "Berlin" + c.starts_at = DateTime.parse("27 December 2024 10:30 CET") + c.ends_at = DateTime.parse("30 December 2024 19:00 CET") + c.location = "Congress Center Hamburg" + c.save! +end +stage_standby = Stage.find_or_create_by(conference: orga, ref_id: "c3lingo-stage-deen").tap do |stage_| + stage_.name = "C3Lingo Standby" + stage_.weight = 100 + stage_.save! +end +stage_coordinator = Stage.find_or_create_by(conference: orga, ref_id: "c3lingo-stage-more").tap do |stage_| + stage_.name = "C3Lingo Coordinator" + stage_.weight = 200 + stage_.save! +end +stage_service = Stage.find_or_create_by(conference: orga, ref_id: "c3lingo-stage-service").tap do |stage_| + stage_.name = "C3Lingo Service" + stage_.weight = 50 + stage_.save! +end +orga.relevant_stages = orga.stages +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241227-1015").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-27T10:15:00+01:00" + shift_.ends_at = "2024-12-27T14:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241227-1015").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-27T10:15:00+01:00" + shift_.ends_at = "2024-12-27T14:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241228-1015").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-28T10:15:00+01:00" + shift_.ends_at = "2024-12-28T14:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241228-1015").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-28T10:15:00+01:00" + shift_.ends_at = "2024-12-28T14:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241229-1015").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-29T10:15:00+01:00" + shift_.ends_at = "2024-12-29T14:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241229-1015").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-29T10:15:00+01:00" + shift_.ends_at = "2024-12-29T14:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241230-1015").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-30T10:15:00+01:00" + shift_.ends_at = "2024-12-30T14:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241230-1015").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-30T10:15:00+01:00" + shift_.ends_at = "2024-12-30T14:15:00+01:00" + shift_.save! +end + + +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241227-1415").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-27T14:15:00+01:00" + shift_.ends_at = "2024-12-27T18:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241227-1415").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-27T14:15:00+01:00" + shift_.ends_at = "2024-12-27T18:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241228-1415").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-28T14:15:00+01:00" + shift_.ends_at = "2024-12-28T18:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241228-1415").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-28T14:15:00+01:00" + shift_.ends_at = "2024-12-28T18:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241229-1415").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-29T14:15:00+01:00" + shift_.ends_at = "2024-12-29T18:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241229-1415").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-29T14:15:00+01:00" + shift_.ends_at = "2024-12-29T18:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241230-1415").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-30T14:15:00+01:00" + shift_.ends_at = "2024-12-30T18:15:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241230-1415").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-30T14:15:00+01:00" + shift_.ends_at = "2024-12-30T18:15:00+01:00" + shift_.save! +end + + +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241227-1900").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-27T19:00:00+01:00" + shift_.ends_at = "2024-12-27T23:00:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241227-1900").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-27T19:00:00+01:00" + shift_.ends_at = "2024-12-27T23:00:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241228-1900").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-28T19:00:00+01:00" + shift_.ends_at = "2024-12-28T23:00:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241228-1900").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-28T19:00:00+01:00" + shift_.ends_at = "2024-12-28T23:00:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-01-20241229-1900").tap do |shift_| + shift_.stage = stage_standby + shift_.title = "Standby Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-29T19:00:00+01:00" + shift_.ends_at = "2024-12-29T23:00:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-02-20241229-1900").tap do |shift_| + shift_.stage = stage_coordinator + shift_.title = "Coordinator Shift" + shift_.language = "en" + shift_.url = "https://rescheduled.c3lingo.org/" + shift_.starts_at = "2024-12-29T19:00:00+01:00" + shift_.ends_at = "2024-12-29T23:00:00+01:00" + shift_.save! +end + + + +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-03-20241227").tap do |shift_| + shift_.stage = stage_service + shift_.title = "General Angel Meeting" + shift_.language = "de" + shift_.description = "This is a placeholder, I really don't know when and where this will take place" + shift_.url = "https://engel.events.ccc.de/" + shift_.starts_at = "2024-12-27T18:00:00+01:00" + shift_.ends_at = "2024-12-27T19:00:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-03-20241228").tap do |shift_| + shift_.stage = stage_service + shift_.title = "General Angel Meeting" + shift_.language = "de" + shift_.description = "This is a placeholder, I really don't know when and where this will take place" + shift_.url = "https://engel.events.ccc.de/" + shift_.starts_at = "2024-12-28T18:00:00+01:00" + shift_.ends_at = "2024-12-28T19:00:00+01:00" + shift_.save! +end +Session.find_or_create_by(conference: orga, ref_id: "c3-4242-03-20241229").tap do |shift_| + shift_.stage = stage_service + shift_.title = "General Angel Meeting" + shift_.language = "de" + shift_.description = "This is a placeholder, I really don't know when and where this will take place" + shift_.url = "https://engel.events.ccc.de/" + shift_.starts_at = "2024-12-29T18:00:00+01:00" + shift_.ends_at = "2024-12-29T19:00:00+01:00" + shift_.save! +end + + if Rails.env.development? %w[coverage fog comedy adjust forge fail vigorous promise chemistry conception meat storage certain warm develop civilian cousin injection hammer health appetite conventional good snake grant suspect atmosphere linen wrong deal calf sea management silence watch nuance loan quit convert failure bracket slice sweat treaty plot still chimpanzee assume functional marsh dream mail state dorm kid formation secular agile beach guide salesperson merit goalkeeper incongruous cart pig joystick regulation apparatus myth patent glue behead flu departure spectrum parking indication delay hesitate viable lay treat cooperative sensation auction sphere stain tap pass].each do |username| User.find_or_create_by(name: username) do |u| -- GitLab