Skip to content

✨fix(leaderboard): correct leaderboard API key typos constants#2330

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-3
Apr 5, 2026
Merged

✨fix(leaderboard): correct leaderboard API key typos constants#2330
mkmccarty merged 1 commit intomainfrom
mm-branch-3

Conversation

@mkmccarty
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 5, 2026 19:00
@mkmccarty mkmccarty merged commit 250a6bf into main Apr 5, 2026
12 checks passed
@mkmccarty mkmccarty deleted the mm-branch-3 branch April 5, 2026 19:00
Copy link
Copy Markdown
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 corrects typos in the persisted farmerstate misc-setting keys used by the leaderboard permission flow, aligning the stored key names with the intended "allow_leaderboard_api*" naming.

Changes:

  • Fix LeaderboardPermissionKey string constant (allow_leaderboard_apixallow_leaderboard_api)
  • Fix LeaderboardPermissionSpanKey string constant (allow_leaderboard_apix_spanallow_leaderboard_api_span)

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

Comment on lines 13 to +17
const (
// LeaderboardPermissionKey is the key used to store the timestamp of when the user allowed leaderboard API permissions
LeaderboardPermissionKey = "allow_leaderboard_apix"
LeaderboardPermissionKey = "allow_leaderboard_api"
// LeaderboardPermissionSpanKey holds the selected permission duration ("24h" or "forever")
LeaderboardPermissionSpanKey = "allow_leaderboard_apix_span"
LeaderboardPermissionSpanKey = "allow_leaderboard_api_span"
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

Changing these persisted misc-setting keys will orphan existing saved permissions (values stored under the previous "allow_leaderboard_apix*" keys will no longer be read), causing users to be re-prompted and losing any prior "forever" grants. Consider adding backwards-compatible reads (check old keys when new key is empty) and migrating by writing the value to the new key (and optionally deleting the old key).

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.

2 participants