patch(ranking): remove group rank changes when ranking provider is set to none - #202
Conversation
…g provider is set to none
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughRanking status now uses workspace provider records and reports combined availability. Removing a provider clears its ranking settings. Userbook ranking requires explicit provider configuration and ChangesRanking provider state
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant UserbookRoute
participant RankGun
participant RobloxRankingProvider
UserbookRoute->>UserbookRoute: verify rank_users permission and provider configuration
UserbookRoute->>RankGun: execute ranking action when RankGun is configured
RankGun-->>UserbookRoute: return ranking result
UserbookRoute->>RobloxRankingProvider: execute ranking action when Open Cloud is configured
RobloxRankingProvider-->>UserbookRoute: return ranking result
UserbookRoute->>UserbookRoute: synchronize rank and write audit result
Suggested reviewers: ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
components/profile/book.tsxESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. components/settings/instance/external.tsxESLint skipped: the matched ESLint configuration already failed (missing-dependency). pages/api/workspace/[id]/external/ranking.tsESLint skipped: the matched ESLint configuration already failed (missing-dependency).
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Setting External Services to None still changed Roblox ranks on promotion, demotion, and termination logs. The logbook ignored that setting and fell back to the workspace Open Cloud key.
This patch ranks people only when a provider is actually selected (RankGun or Integrated Ranking with its own key). Saving None clears leftover ranking credentials and does not rank users on logbook entries.
Related to community report: External Services set to None still ranking users after save.
Summary by CodeRabbit
New Features
Bug Fixes