Questions tagged [featuretoggle]

A Feature Toggle is a method for turning off a feature a programmer is working on, therefore avoiding the need for a feature branch. It is also called a feature bit, flag, flipper or switch.

A Feature Toggle is a method for turning off a feature a programmer is working on, therefore avoiding the need for a feature branch. It is also called a feature bit, flag, flipper or switch.

Martin Fowler wrote a classic blog post on it: http://martinfowler.com/bliki/FeatureToggle.html

74 questions
1
vote
0 answers

XUnit - how to test a controller with a feature toggle

I have some sample c# code that demonstrates feature management in .net core. I have this class that exposes an endpoint: namespace Widgets.Controllers { [Authorize] public class FeatureToggleSampleController : ControllerBase { …
dot
  • 14,928
  • 41
  • 110
  • 218
1
vote
2 answers

How to feature flag/toggle TypeScript service/class

I would like to feature flag a service in my React app so I can toggle it on and off by changing a boolean in a config file. However, I am unsure as to how best to do so. The service is as below: class Service { constructor() { // do stuff …
Zenan
  • 11
  • 1
1
vote
0 answers

Keep getting "Could not fetch toggles" with Unleash java sdk

I'm using unleash to implement feature toggles in my Spring Boot project and even though it works, I keep getting lots of WARN messages: io.getunleash.UnleashException: Could not fetch toggles at…
Rod
  • 161
  • 8
1
vote
1 answer

Issue with mocking Unleash client SDK in unit tests

I am using Unleash SDK client in Angular webapp to have feature toggle functionality in the application. I have added a service and used UnleashClient from 'unleash-proxy-client'; While writing unit tests for the service added by me, I have to mock…
Prajakta A
  • 68
  • 6
1
vote
2 answers

Using feature flag as kill switch in different version of mobile application

I'm interested to use feature flags as kill switch if something goes wrong in my mobile app release, to quickly get the features on the app to the last working version of the feature or to hide completely the feature. But I have a logical doubt…
1
vote
1 answer

Are Feature flags good for Authorisation/Permissions?

Feature flags or feature toggles work good with managing who can see what feature. The idea of this question is can we use the same feature flag tool to manage authorisation/user permissions. For example, Can we use some feature flag tool to control…
1
vote
1 answer

Unleash FEATURE TOGGLE for Spring Boot Microservices based on DATETIME Range?

I was looking at the documentation for UNLEASH feature toggle as I would like some add some feature-flag functionality in my Spring Boot application microservice (API). I would like to "wrap" the logic in codebase with something…
ennth
  • 1,698
  • 5
  • 31
  • 63
1
vote
1 answer

How to propery genearate routes with approperiate component with React Router

I am trying to generate routes with the appropriate components from "Feature" objects. The idea is to have a collection of site features that can be enabled or disabled, and routes/navigation menu items generated from this collection. Sort of like…
Peter Koller
  • 312
  • 3
  • 16
1
vote
1 answer

How to use Unleash Feature server from browser (React project)

I am trying to use unleash feature toggle for my React Project. It is running fine for backend server(java sdk is availble). But I cant make unleash request from browser(I am using React as a front end technology). After go through their git…
Sandeep
  • 131
  • 1
  • 10
1
vote
1 answer

How to feature toggle URLs dynamically in Django rest framework

I am working on a project where we use feature toggles to hide features until they are ready to be released. The pattern we have followed is to simply not route certain endpoints if the feature toggle is off. I.e in urls.py, we only include URLs in…
dh7892
  • 26
  • 5
1
vote
0 answers

How and where to add unleash-client for asp.net and node.js angular typescript application

I am trying to add https://github.com/Unleash/unleash-client-node to node js angular project. I am not a developer but just want integrate feature toggle in one of my projects. The application tech stack contains asp.net core, nodejs, angular and…
1
vote
1 answer

Database driven feature toggle

I would want to enable my new feature based on a database value . If the database value is set for the feature , the new code should be enabled. Else it should toggle and flow to the old code. is there a way to accomplish this in Java/Spring ? I do…
stackuser
  • 4,081
  • 4
  • 21
  • 27
1
vote
0 answers

How to implement feature toggles on JS webapps running on the cloud

I am by no means a JS developer, but I would like to get some background on what are the industry standards on this. If I want to implement feature toggles to show, hide some features on a JS web app (for example Angular, but that should make no…
maczikasz
  • 1,113
  • 5
  • 12
1
vote
1 answer

Convert a string consistently into a random percentage from 0 to 100

For soft rollouts of new features, I want my server which holds the feature flags to return a percentage number, and then have the client figure out which side of the percentage it is on. I want to use the user-id to make this choice consistently,…
light24bulbs
  • 2,871
  • 3
  • 24
  • 33
1
vote
1 answer

Feature toggle for scala

I'm developing a scala project and I need to print some debugging info when I'm testing the program. I've put some print function in the middle of the program. But I just want to run them if I have activated some debug flag or something like that. I…
Moriss
  • 325
  • 2
  • 12