-
-
Notifications
You must be signed in to change notification settings - Fork 82
RG-T125 Twilio fixes #423
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
RG-T125 Twilio fixes #423
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,6 +70,16 @@ Task<DepartmentMember> AddUserToDepartmentAsync(int departmentId, string userId, | |
|
|
||
| Task<Department> GetDepartmentByUserIdAsync(string userId, bool bypassCache = false); | ||
|
|
||
| /// <summary> | ||
| /// Resolves the department to use for a user's SMS/chatbot operations: their active (then default, | ||
| /// then first) membership, preferring one whose plan supports SMS (non-free). If the preferred | ||
| /// department is on a free plan but another of the user's departments supports SMS, that one is | ||
| /// returned so a user isn't dead-ended; if none support SMS the preferred one is returned so the | ||
| /// downstream plan gate can produce the proper "plan doesn't support" message. Null when the user has | ||
| /// no non-deleted memberships. | ||
| /// </summary> | ||
| Task<Department> GetActiveSmsDepartmentForUserAsync(string userId, bool bypassCache = false); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Propagate This contract exposes Update the implementation to honor 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
|
|
||
| Task<ValidateUserForDepartmentResult> GetValidateUserForDepartmentInfoAsync(string userName, | ||
| bool bypassCache = true); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Resolve dependencies using the Service Locator pattern.
As per coding guidelines, dependencies should be resolved explicitly in constructors using
Bootstrapper.GetKernel().Resolve<T>()rather than via constructor injection.🛠️ Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Coding guidelines