-
-
Notifications
You must be signed in to change notification settings - Fork 586
change http #1225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change http #1225
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
PR Type
Bug fix, Enhancement
Description
Changed HTTP method from POST to GET for role retrieval endpoint
Removed JSON property name attributes from RoleFilter class
Added null-safety checks in SignalRHub connection handler
Improved logging with fallback for unknown users
Diagram Walkthrough
File Walkthrough
RoleFilter.cs
Remove JSON property name attributessrc/Infrastructure/BotSharp.Abstraction/Repositories/Filters/RoleFilter.cs
[JsonPropertyName("names")]attribute from Names property[JsonPropertyName("exclude_roles")]attribute fromExcludeRoles property
RoleController.cs
Change role retrieval from POST to GETsrc/Infrastructure/BotSharp.OpenAPI/Controllers/User/RoleController.cs
[HttpPost]to[HttpGet]for GetRoles endpoint[FromBody]to[FromQuery]forRoleFilter
SignalRHub.cs
Add null-safety checks to SignalRHubsrc/Plugins/BotSharp.Plugin.ChatHub/SignalRHub.cs
?.) for Context and _user propertiesinitialization