-
Notifications
You must be signed in to change notification settings - Fork 28
Add FF for custom states call (AST-80216) #1043
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
| triageShowCmd := triageShowSubCommand(resultsPredicatesWrapper) | ||
| triageUpdateCmd := triageUpdateSubCommand(resultsPredicatesWrapper, featureFlagsWrapper) | ||
| triageGetStatesCmd := triageGetStatesSubCommand(customStatesWrapper) | ||
| triageGetStatesCmd := triageGetStatesSubCommand(customStatesWrapper, featureFlagsWrapper ) |
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.
There is an extra space before the closing parenthesis. Please remove it for consistency.
| } | ||
|
|
||
| func triageGetStatesSubCommand(customStatesWrapper wrappers.CustomStatesWrapper) *cobra.Command { | ||
| func triageGetStatesSubCommand(customStatesWrapper wrappers.CustomStatesWrapper, featureFlagsWrapper wrappers.FeatureFlagsWrapper) *cobra.Command { |
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.
The function signature for triageGetStatesSubCommand has been changed to include featureFlagsWrapper. Ensure that all callers of this function are updated to pass the new argument.
| `, | ||
| ), | ||
| RunE: runTriageGetStates(customStatesWrapper), | ||
| RunE: runTriageGetStates(customStatesWrapper, featureFlagsWrapper), |
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.
The featureFlagsWrapper parameter is added to the runTriageGetStates function, but the corresponding function definition and the usage within the function body are not provided in the diff. Ensure that the function definition is updated to accept this new parameter and that it is utilized properly within the function.
| func runTriageGetStates(customStatesWrapper wrappers.CustomStatesWrapper) func(*cobra.Command, []string) error { | ||
| func runTriageGetStates(customStatesWrapper wrappers.CustomStatesWrapper, featureFlagsWrapper wrappers.FeatureFlagsWrapper,) func(*cobra.Command, []string) error { | ||
| return func(cmd *cobra.Command, _ []string) error { | ||
| flagResponse, _ := wrappers.GetSpecificFeatureFlag(featureFlagsWrapper, wrappers.CustomStatesFeatureFlag) |
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.
Error handling for wrappers.GetSpecificFeatureFlag is missing. Consider handling the error to avoid ignoring potential issues when retrieving the feature flag status.
|
Great job, no security vulnerabilities found in this Pull Request |

By submitting a PR to this repository, you agree to the terms within the Checkmarx Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.
Description
References
Testing
Checklist