Git Product home page Git Product logo

featurebits's People

Contributors

dseelinger avatar jackwagons avatar microsoftopensource avatar msftgits avatar petkahl avatar sitwalkstand avatar styxxy avatar themitchk avatar vanderby avatar ynauls avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

featurebits's Issues

ExcludedEnvironments value needs to be parsed into individual items for comparison

During evaluation, this feature bit is doing a "Contains()" to search for a string value. Since ExcludedEnvironments is a comma delimited string, it should be split and each item compared to the string.

private static bool EvaluateEnvironmentBasedFeatureState(IFeatureBitDefinition bitDef) { bool featureState; var env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT").ToUpperInvariant(); featureState = !bitDef.ExcludedEnvironments.ToUpperInvariant().Contains(env); return featureState; }

Microsoft.FeatureManagment package

There is any relation with the development of the package Microsoft.FeatureManagement, nuget, github, documentation, that seems to come from the Azure team.
Both packages have related goals, they work both on netcore.
It would be better, IMHO, tohave a unified approach to feature flags.

KeyNotFoundException if identity seed does not exactly match feature enums

I cloned the repo and inserted a test feature directly using SQL which incremented the identity seed. I then found your suggestion to use the 'dotnet fbit add' command. When I added the features using that command, my FeatureBitDefinitions table's identity seed no longer matched the enum values in the sample app. Since line 53 of IsEnabled in FeatureBitEvaluator is using the Id to lookup the feature it throws a KeyNotFoundException when bitDef is null.

Expected Outcome: The way features are defined in code should be decoupled from the way SQL handles identities or even from the persistence implementation itself.

Possible solutions:

  • Change the Id column in FeatureBitDefinitions to be a primary key integer with a unique constraint but not an auto-incrementing identity, that way the application can supply the identity as it defines new enums.

  • Change the IsEnabled implementation to look the feature up by name instead of by Id. This would require changing the SQL script to also create a unique constraint on the name column and could break existing implementations if they have duplicate names.

  • Change the application architecture to make feature resolution / persistence extendable and not as tightly coupled to the database implementation.

  • Enable identity insert in the FeatureBits.Console dotnet fbit command

Create User-based Feature Bit

Schema already supports User-based feature bit, but there is no way to create one with fbit add, and there is no evaluation of user-based feature bits.

fbit-cli: add support for "list" command

fbit list should display feature bit definitions
By default "fbit list" shows the ID and Name of the feature bits

  • Accepts a required connection string properties
  • Accepts a -Long argument, which shows all feature bit fields.

Nuget publish is deploying an extra package for fbit-cli

the following packages are being deployed to nuget.org. dotnet-fbit.0.3.0.25.nupkg should not be deployed.

  • (BUG) src\FeatureBits.Console\bin\Release\dotnet-fbit.0.3.0.25.nupkg
  • src\FeatureBits.Console\bin\Release\dotnet-fbit.0.3.0.nupkg
  • src\FeatureBits.Core\bin\Release\FeatureBits.Core.0.3.0.nupkg
  • src\FeatureBits.Data\bin\Release\FeatureBits.Data.0.3.0.nupkg

Upgrade to .NET Core 2.1

Is there a plan to upgrade these projects to .NET Core 2.1?

I've cloned the repo locally and would be interested in tackling that task, but I don't have the ability to create a branch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.