Skip to content
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

Feature context and Async Filters #43435

Open
wants to merge 1 commit into
base: SpringCloudAzure6.0-Preview
Choose a base branch
from

Conversation

mrm9084
Copy link
Member

@mrm9084 mrm9084 commented Dec 16, 2024

Description

Adds Async filters and Feature Context.

Trying to minimize the change in here #42853

@mrm9084 mrm9084 requested a review from Copilot December 16, 2024 23:43
@github-actions github-actions bot added the azure-spring All azure-spring related issues label Dec 16, 2024
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 10 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • sdk/spring/spring-cloud-azure-feature-management/src/test/java/com/azure/spring/cloud/feature/management/filters/TargetingFilterTest.java: Evaluated as low risk
  • sdk/spring/spring-cloud-azure-feature-management/src/test/java/com/azure/spring/cloud/feature/management/FeatureManagerTest.java: Evaluated as low risk
  • sdk/spring/spring-cloud-azure-feature-management/src/main/java/com/azure/spring/cloud/feature/management/implementation/FeatureManagementConstants.java: Evaluated as low risk
  • sdk/spring/spring-cloud-azure-feature-management/src/main/java/com/azure/spring/cloud/feature/management/FeatureManager.java: Evaluated as low risk
  • sdk/spring/spring-cloud-azure-feature-management/src/main/java/com/azure/spring/cloud/feature/management/implementation/FeatureFilterUtils.java: Evaluated as low risk

* @param context The context for whether or not the filter is passed.
* @return True if the feature is enabled, false otherwise.
*/
Mono<Boolean> evaluateAsync(FeatureFilterEvaluationContext context);
Copy link
Preview

Copilot AI Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method evaluateAsync should handle exceptions properly to avoid unhandled exceptions during feature evaluation. Consider adding documentation or handling exceptions within the method.

Suggested change
Mono<Boolean> evaluateAsync(FeatureFilterEvaluationContext context);
Mono<Boolean> evaluateAsync(FeatureFilterEvaluationContext context) throws Exception;

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant