Repository navigation
refactor: log params and channel params - #1341
Conversation
refactor: log params and channel params
|
Caution Review failedThe pull request is closed. WalkthroughThis change replaces all map-based handling of user and channel settings with strongly typed DTO structs, updating method signatures, function calls, and context usage throughout the codebase. It introduces new DTOs for settings, refactors logging and notification logic to use these types, and removes related constants and map-based utilities. Changes
Sequence Diagram(s)sequenceDiagram
participant Controller
participant Model
participant DTO
participant Service
Controller->>Model: SetSetting(dto.UserSetting/ChannelSettings)
Model->>DTO: Marshal struct to JSON
Model-->>Model: Store JSON string in DB
Model->>Model: GetSetting()
Model->>DTO: Unmarshal JSON to struct
Model-->>Controller/Service: Return typed DTO struct
Controller/Service->>Service: Pass DTO struct for logging/notification
Service->>Service: Access struct fields directly
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (27)
✨ Finishing Touches
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. 🪧 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 (
|
refactor: log params and channel params
refactor: log params and channel params
refactor: log params and channel params
refactor: log params and channel params
Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Chores