fix: include group in payload for playground - #1232
Conversation
|
Caution Review failedFailed to post review comments. Configuration used: CodeRabbit UI 📒 Files selected for processing (36)
💤 Files with no reviewable changes (2)
🧰 Additional context used🧬 Code Graph Analysis (14)model/token.go (1)
router/api-router.go (2)
web/src/pages/Channel/EditTagModal.js (5)
web/src/components/table/TokensTable.js (9)
web/src/pages/Channel/EditChannel.js (2)
controller/option.go (1)
model/ability.go (2)
model/channel.go (2)
controller/redemption.go (2)
model/log.go (2)
web/src/pages/Setting/Dashboard/SettingsAPIInfo.js (4)
setting/console_setting/validation.go (2)
web/src/pages/Setting/Dashboard/SettingsAnnouncements.js (2)
web/src/pages/Setting/Dashboard/SettingsUptimeKuma.js (3)
🔇 Additional comments (13)
WalkthroughThis update introduces a comprehensive migration and refactor of console settings management, moving from legacy flat option keys to a structured Changes
Sequence Diagram(s)Console Settings Migration FlowsequenceDiagram
participant User
participant WebApp
participant API
participant Controller
participant DB
User->>WebApp: Detects legacy console keys
WebApp->>User: Shows migration modal
User->>WebApp: Confirms migration
WebApp->>API: POST /api/option/migrate_console_setting
API->>Controller: MigrateConsoleSetting
Controller->>DB: Fetch all options
Controller->>Controller: Parse and migrate legacy keys
Controller->>DB: Save new structured keys, delete old keys
Controller->>API: Respond success
API->>WebApp: Migration result
WebApp->>User: Notify migration success/failure
Redemption Code Expiration and CleanupsequenceDiagram
participant Admin
participant WebApp
participant API
participant Controller
participant DB
Admin->>WebApp: Clicks "Clear Invalid Redemption Codes"
WebApp->>API: DELETE /api/redemption/invalid
API->>Controller: DeleteInvalidRedemption
Controller->>DB: Delete used, disabled, or expired codes
Controller->>API: Return deleted count
API->>WebApp: Show result
WebApp->>Admin: Notify cleanup complete
Uptime Kuma Multi-Group FetchsequenceDiagram
participant User
participant WebApp
participant API
participant Controller
participant UptimeKuma
User->>WebApp: View status page
WebApp->>API: GET /api/uptime_kuma_status
API->>Controller: GetUptimeKumaStatus
loop For each group
Controller->>UptimeKuma: Fetch status & heartbeat (parallel)
UptimeKuma->>Controller: Return group data
end
Controller->>API: Return all group statuses
API->>WebApp: Render uptime panels/tabs
Poem
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
fix: include group in payload for playground
.