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

Add release note for FeatureManagement 3.1.0 #839

Merged
merged 9 commits into from
Nov 30, 2023

Conversation

zhiyuanliang-ms
Copy link
Contributor

No description provided.

@zhiyuanliang-ms zhiyuanliang-ms changed the title Update FeatureManagement 3.1.0 release note Add release note for FeatureManagement 3.1.0 Nov 23, 2023

### Changes

* Exposing FeatureManager and ConfigurationFeatureDefinitionProvider to public.
Copy link
Member

Choose a reason for hiding this comment

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

The release notes aren't documentation, so I would be weary of writing something too long here. If it is a long description and you feel it is needed then I would consider one of the two options:

  • Write the description in the PR that added it and link to the PR (as you have done).
  • Update the readme in the repo.

For release notes I would expect something more succint like

  • FeatureManager and ConfigurationFeatureDefinitionProvider are now public
    • Enables usage of external dependency injection containers
    • Allows usage of feature manager without requiring dependency injection

@@ -4,6 +4,21 @@
# Microsoft.FeatureManagement.AspNetCore
[Source code ][source_code_web] | [Package (NuGet)][package_web] | [Samples][samples_web] | [Product documentation][docs]

## 3.1.0 - November 23, 2023

### Changes
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug fixes are changes too. Should this be "Enhancement"? I know this might be copied from the previous one. Can we fix that too?

* Allows usage of feature manager without requiring dependency injection.

* Alternative method `AddScopedFeatureManagement` to register the feature management services.
* Enables the registration of the feature manager and feature filters as scoped services.
Copy link
Contributor

Choose a reason for hiding this comment

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

I kinda expect we say "Added Blazor support.... " somewhere :)

* Enables the registration of the feature manager and feature filters as scoped services.

### Bug Fixes
* Preserved the behavior in 2.x.x when passing a configuration section to `AddFeatureManagement(configuration)`. ([#308](https://github.com/microsoft/FeatureManagement-Dotnet/issues/308))
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we explain what the bug is?

Fixed a bug introduced in the previous release where feature flags cannot be loaded from a custom section of configuration.


### Bug Fixes
* Preserved the behavior in 2.x.x when passing a configuration section to `AddFeatureManagement(configuration)`. ([#308](https://github.com/microsoft/FeatureManagement-Dotnet/issues/308))
* Preserved the behavior in 2.x.x when there is a contextual filter specified, but there is no appropriate context provided during the feature flag evaluation. ([#313](https://github.com/microsoft/FeatureManagement-Dotnet/issues/313))
Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed a bug introduced in the previous release where evaluation of a feature flag that references a contextual feature filter may throw an error if the contextual feature filter is not registered or a context is not provided during evaluation.

@Eskibear
Copy link
Member

## Bug Fixes => ### Bug Fixes, in Line 42, under section for version 3.0.0

Can you also fix the wrong heading level by the way?


* Added [Blazor](https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor) support for [additional security scenarios](https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/additional-scenarios?view=aspnetcore-7.0#pass-tokens-to-a-server-side-blazor-app).
* Added `AddScopedFeatureManagement()` method to register the feature manager and feature filters as scoped by default.
* Allows usage of scoped feature filters with context provider services to mitigate the [security risk](https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/interactive-server-side-rendering?view=aspnetcore-7.0#ihttpcontextaccessorhttpcontext-in-razor-components) when using `HttpContextAccessor` in Blazor components.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is part of the blazor support. We should drop it.

* Allows usage of `FeatureManager` without requiring dependency injection.

* Added [Blazor](https://dotnet.microsoft.com/en-us/apps/aspnet/web-apps/blazor) support for [additional security scenarios](https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/additional-scenarios?view=aspnetcore-7.0#pass-tokens-to-a-server-side-blazor-app).
* Added `AddScopedFeatureManagement()` method to register the feature manager and feature filters as scoped by default.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should combine above, and tell customers what's the difference of the new API and where to use it. Suggest below:

Added support for server-side Blazor apps, where the following API can be used in place of the existing AddFeatureManagement() API. The new API registers the feature manager and feature filters as scoped services, while the existing API registers them as singletons.

// full signature of the API

Is there a issue we can reference?


### Enhancements

* `FeatureManager` and `ConfigurationFeatureDefinitionProvider` are now public.
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought there was an issue we can reference. Do we have one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@zhiyuanliang-ms zhiyuanliang-ms merged commit 62c0312 into main Nov 30, 2023
1 check passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang-ms-patch-1 branch November 30, 2023 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants