-
Notifications
You must be signed in to change notification settings - Fork 9
Feature/elo exports and imports #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… dependency - Updated voting.server.ts to streamline session fetching and remove unnecessary service session filtering. - Modified _layout.agenda.$year.talk.$sessionId.tsx to simplify session retrieval logic and eliminate timezone dependency. - Adjusted _layout.agenda.($year).tsx to remove timezone handling from session fetching. - Enhanced admin.voting-validation.stats.$runId.tsx to include sessionize data in voting results and improve error handling. - Updated admin.voting.tsx to manage underrepresented groups configuration and improve error reporting. - Refactored app-agenda-grid.tsx, app-agenda-sessions.tsx, and app-agenda-speakers.tsx to remove conferenceConfigPublic dependency and simplify session fetching logic.
There was a problem hiding this 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 implements ELO exports and imports functionality for the voting validation system, along with underrepresented groups configuration. The changes enable exporting voting data to external ELO ranking tools and importing the calculated results back into the system for improved talk ranking and diversity tracking.
- Adds underrepresented groups configuration management in the admin interface
- Implements ELO ranking export/import functionality with vote data export and results upload
- Refactors session data handling to work with individual sessions instead of grouped sessions
Reviewed Changes
Copilot reviewed 20 out of 21 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| website/app/routes/app-agenda-speakers.tsx | Removes timezone parameter from speaker data fetching |
| website/app/routes/app-agenda-sessions.tsx | Refactors session processing to handle individual sessions and removes timezone dependency |
| website/app/routes/app-agenda-grid.tsx | Removes timezone parameter from schedule grid fetching |
| website/app/routes/admin.voting.tsx | Adds underrepresented groups configuration UI and management functionality |
| website/app/routes/admin.voting-validation.stats.$runId.tsx | Implements ELO results import/export and displays ranked results with underrepresented group indicators |
| website/app/routes/admin.voting-validation.stats.$runId.download.tsx | New route for exporting vote data as JSON for external ELO tools |
| website/app/routes/_layout.agenda.($year).tsx | Removes timezone parameter from agenda data fetching |
| website/app/routes/_layout.agenda.$year.talk.$sessionId.tsx | Refactors to work with individual sessions instead of grouped sessions |
| website/app/lib/voting.server.ts | Updates session data processing to handle individual sessions |
| website/app/lib/voting-validation.server.ts | Adds vote result storage, ELO result management, and underrepresented groups configuration |
| website/app/lib/voting-validation-types.ts | Defines new types for ELO results, vote results, and underrepresented groups configuration |
| website/app/lib/sessionize.server.ts | Refactors to return individual sessions and adds underrepresented groups data extraction |
| website/app/lib/session-info.server.ts | Adds underrepresented groups question ID configuration |
| website/app/config/years/*.server.ts | Adds underrepresented groups question ID configuration for each conference year |
|
|
||
| export async function getUnderrepresentedGroupsConfig(votesTableClient: TableClient): Promise<string[]> { | ||
| try { | ||
| const partitionKey: UnderrepresentedGroupsConfig['partitionKey'] = 'ddd' |
Copilot
AI
Jul 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded partition key 'ddd' should be replaced with a meaningful constant or configuration value to improve code maintainability and clarity.
| const partitionKey: UnderrepresentedGroupsConfig['partitionKey'] = 'ddd' | |
| const partitionKey: UnderrepresentedGroupsConfig['partitionKey'] = UNDERREPRESENTED_GROUPS_PARTITION_KEY |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.