Skip to content

chore: prepare polymorphic ticketable primitives#4910

Open
wescopeland wants to merge 1 commit into
RetroAchievements:masterfrom
wescopeland:ticketable-lb-prep
Open

chore: prepare polymorphic ticketable primitives#4910
wescopeland wants to merge 1 commit into
RetroAchievements:masterfrom
wescopeland:ticketable-lb-prep

Conversation

@wescopeland
Copy link
Copy Markdown
Member

No functional changes.

This PR lays the groundwork for ticketable leaderboards without exposing any user-facing creation path yet. That will come in future PRs.

Summary of changes

  • A new Ticketable contract has been added, which is implemented by Achievement and Leaderboard.
  • Four new leaderboard-only TicketType cases are included.
  • Ticket::officialCore and Ticket::unofficial are replaced with promoted and unpromoted via whereHasMorph.
  • scopeForDeveloper has been consolidated into scopeForAssignee.
  • V1 API endpoints are locked to only returning achievement tickets.
  • The game page numOpenTickets now sums achievement + leaderboard tickets (with a test to verify the correctness of this behavior).

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.

1 participant