-
Notifications
You must be signed in to change notification settings - Fork 15
Configuration and Constants Issues #838
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
Conversation
@copilot continue with your work |
I'll continue working on the three issues identified. Let me fix them one by one:
|
…ain constants, and AuxiliaryTenantIDs type safety Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
@copilot add changelot |
Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
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.
Pull Request Overview
This PR addresses configuration and constants issues by replacing hard-coded strings, correcting domain constants, and improving type safety in tenant ID conversion.
- Introduces constants for CAE challenge detection.
- Updates RX PowerApps Advisor API domain and scope.
- Adds type-safe handling for AuxiliaryTenantIDs conversion.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
internal/provider/provider.go | Use a type assertion for AuxiliaryTenantIDs.Elements() conversion |
internal/constants/constants.go | Correct Advisor API constants and add CAE challenge indicators |
internal/api/client.go | Refactor IsCaeChallengeResponse to use the new constants |
.changes/unreleased/fixed-20250605-121743.yaml | Add changelog entry for these fixes |
Comments suppressed due to low confidence (2)
internal/provider/provider.go:312
- There are no existing tests covering type assertions in this loop. Adding unit tests for both successful and failed assertions will ensure behavior remains correct.
auxiliaryTenantIDsList := make([]string, len(auxiliaryTenantIDs.Elements()))
internal/api/client.go:86
- Consider adding unit tests for
IsCaeChallengeResponse
to verify behavior with variousWWW-Authenticate
headers, including edge cases where one or both indicators are missing.
return strings.Contains(wwwAuthenticate, constants.CAE_CHALLENGE_CLAIMS_INDICATOR) &&
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: mawasile <50197777+mawasile@users.noreply.github.com>
Fixes #824.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.