Conversation
TestGru AssignmentSummary
Tip You can |
Preview sandbox Image: |
Preview mcp_server Image: |
There was a problem hiding this comment.
Pull request overview
This PR fixes the ticket access logic by implementing a fallback mechanism for determining ticketResponseTime. Previously, the logic only checked the team's subscription for the ticketResponseTime value, which could be undefined even when the plan includes ticket support. The fix ensures that if the team's subscription doesn't have an explicit ticketResponseTime, it falls back to the default value from the subscription plan configuration.
- Updated ticket access check to fall back to plan's default
ticketResponseTimewhen not set on team subscription - Cleaned up unused import in WorkorderEntrance component
- Enhanced S3 error handling to include additional error message pattern
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| projects/app/src/pages/account/info/index.tsx | Added TeamErrEnum import and refactored feedback handler to check ticket access with fallback logic before opening workorder |
| projects/app/src/pageComponents/chat/WorkorderEntrance.tsx | Removed unused getWorkorderURL import |
| projects/app/src/components/Layout/HelperBot.tsx | Updated hasTicketAccess logic with fallback to plan's ticketResponseTime and added subPlans to dependencies |
| packages/service/common/s3/buckets/base.ts | Added new error message pattern for bad components in resource names to file not found check |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Preview fastgpt Image: |
* stop design doc * remove invalid doc * del s3 tip * fix: ticktime * fix: ticktime * fix: ticktime
No description provided.