Skip to content

Conversation

@Luke-Oldenburg
Copy link
Contributor

@Luke-Oldenburg Luke-Oldenburg commented Jun 30, 2025

We were previously missing a reliable way to store metadata regarding orgs such as team numbers and forced to use a combination of Airtable, organization names, tags, and comments. Now we can track this info inside of affiliations. Organizations can self report information for us and we will also have to backfill for previous organizations. We are starting with affiliations for FIRST, VEX, and Hack Clubs.
Closes #10552

Screenshot From 2025-08-28 19-55-42

@Luke-Oldenburg Luke-Oldenburg marked this pull request as ready for review August 28, 2025 23:59
@Luke-Oldenburg Luke-Oldenburg requested review from a team as code owners August 28, 2025 23:59
Luke-Oldenburg and others added 2 commits August 29, 2025 00:02
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new Event::Affiliation model to store organization metadata such as team numbers for events. This replaces the previous approach of using a combination of Airtable, organization names, tags, and comments.

Key changes:

  • Adds Event::Affiliation model with metadata stored as JSONB
  • Implements affiliation management UI for FIRST, VEX, and Hack Club organizations
  • Creates controller and policy for affiliation CRUD operations

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
db/schema.rb Adds event_affiliations table with event reference, metadata JSONB, and name fields
db/migrate/*.rb Creates migration files for event_affiliations table and null constraints
config/routes.rb Adds affiliations resource routes under events
app/views/events/settings/_affiliations.html.erb Creates main affiliations management UI
app/views/events/settings/_affiliation_form.html.erb Creates form for adding/editing affiliations
app/views/events/edit.html.erb Integrates affiliations tab into event settings
app/policies/event/affiliation_policy.rb Implements authorization policy for affiliation management
app/models/event/affiliation.rb Defines Affiliation model with metadata accessors and type helpers
app/models/event.rb Adds has_many association to affiliations
app/controllers/events_controller.rb Loads affiliations data for settings tab
app/controllers/event/affiliations_controller.rb Implements CRUD operations for affiliations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@sampoder sampoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR is looking really good! just a few things to do

@sampoder sampoder added this pull request to the merge queue Aug 31, 2025
Merged via the queue into main with commit 82bb660 Aug 31, 2025
13 checks passed
@sampoder sampoder deleted the lro-affiliations branch August 31, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Event] Affiliations

3 participants