-
-
Notifications
You must be signed in to change notification settings - Fork 594
fix user permission #1075
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
fix user permission #1075
Conversation
|
Auto Review Result: Code Review SummaryOverview of Changes: The submitted code includes:
Issues FoundIssue 1: Consistency in Error Messaging
Issue 2: Addition of ContentType to File Models
Issue 3: Addition of User Permissions in User Profiles
Overall AssessmentThe code changes improve the flexibility and maintainability of the project by using more generalized terms in error messages and enhancing file and user metadata management. It is crucial to ensure that these changes integrate smoothly with existing logic, particularly in handling new |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
PR Type
Bug fix, Enhancement
Description
• Fix user permission retrieval in profile endpoint
• Add ContentType property to file upload models
• Improve error messages for multi-modal operations
• Standardize error handling across file processing methods
Changes walkthrough 📝
InstructModeController.cs
Enhance file processing and error messagessrc/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs
• Add ContentType property to InstructFileModel objects in file upload
methods
• Update error messages to be more generic and accurate
•
Change "reading images" to "reading multi-modal files"
• Simplify PDF
and speech-to-text error messages
UserController.cs
Fix user permission retrieval in profilesrc/Infrastructure/BotSharp.OpenAPI/Controllers/UserController.cs
• Add BotSharp.Abstraction.Roles import
• Retrieve user authorizations
and set permissions in GetMyUserProfile method
• Add null check before
setting user permissions