Skip to content
← Back to activity

Public problem

Cannot use a target to enable a flag that is disabled in Harness

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

In Harness Feature Flags, you can add a target rule to disable an enabled flag, but not to enable a disabled flag: target variations are only evaluated when the flag is ON. It looks like a bug but it is how the evaluator works.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Flip the flag ON and make the default rule serve False, then add target rules that serve True for the users you want. That gives you off-for-everyone except specific targets, which is the intended way to do it.

Source: https://github.com/harness/ff-java-server-sdk/issues/141

Source: https://github.com/harness/ff-java-server-sdk/issues/141

Solutions produced in this discussion