Skip to content

HIRO-158 Add DebugUnenroll to the interface. Implemented in Hiro-GDK#146

Open
rafalgolarz wants to merge 2 commits intomainfrom
rg-hiro-158-add-unenroll-debug
Open

HIRO-158 Add DebugUnenroll to the interface. Implemented in Hiro-GDK#146
rafalgolarz wants to merge 2 commits intomainfrom
rg-hiro-158-add-unenroll-debug

Conversation

@rafalgolarz
Copy link
Contributor

@rafalgolarz rafalgolarz commented Feb 3, 2026

This is a dependency for HIRO-GDK implementaion in PR: https://github.com/heroiclabs/hiro-gdk/pull/492

@linear
Copy link

linear bot commented Feb 3, 2026

@rafalgolarz rafalgolarz self-assigned this Feb 3, 2026
@rafalgolarz rafalgolarz requested a review from Copilot February 3, 2026 14:33
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 adds a new debug function to unenroll users from event leaderboard cohorts, supporting the HIRO-GDK implementation.

Changes:

  • Added RPC_ID_EVENT_LEADERBOARD_DEBUG_UNENROLL RPC endpoint with ID 126
  • Introduced EventLeaderboardDebugUnenrollRequest message structure
  • Extended EventLeaderboardsSystem interface with DebugUnenroll method

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
hiro.proto Adds RPC definition and request message for debug unenroll functionality
event_leaderboards.go Extends interface with DebugUnenroll method signature

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

RPC_ID_EVENT_LEADERBOARD_DEBUG_FILL = 60 [(input) = "", (output) = "EventLeaderboard"];
// DEBUG. Assign random scores within a given range to users within the caller's cohort, except for the caller themselves.
RPC_ID_EVENT_LEADERBOARD_DEBUG_RANDOM_SCORES = 61 [(input) = "EventLeaderboardDebugRandomScoresRequest", (output) = "EventLeaderboard"];
// DEBUG. Unenroll from an event leaderboard cohort.
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The RPC ID 126 appears out of sequence. Previous debug RPC IDs are 60 and 61, but this new one jumps to 126. Consider using the next sequential ID (62) or document why 126 was chosen to avoid confusion about the numbering scheme.

Suggested change
// DEBUG. Unenroll from an event leaderboard cohort.
// DEBUG. Unenroll from an event leaderboard cohort.
// NOTE: ID 126 is intentionally non-sequential to preserve existing RPC numbering and must not be renumbered.

Copilot uses AI. Check for mistakes.
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