Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

What is a common use case? #81

Open
ghost opened this issue Jun 11, 2014 · 8 comments
Open

What is a common use case? #81

ghost opened this issue Jun 11, 2014 · 8 comments

Comments

@ghost
Copy link

ghost commented Jun 11, 2014

I'm trying to figure out why the conditions in the switches are OR:ed rather than AND:ed.
How would I go about if I wanted:

  1. 10% of IP addresses
    AND
  2. on a server with hostname example.de

Sorry for such a stupid question.
Thank you

@ghost ghost changed the title Use case What is a common use case? Jun 11, 2014
@dcramer
Copy link
Collaborator

dcramer commented Jun 11, 2014

It’s more of an ANY vs an OR.

i.e.

10% of users
10% of ips

An AND here would be an ALL.

On Tuesday, June 10, 2014 at 11:25 PM, AndersenTobias wrote:

I'm trying to figure out why the conditions in the switches are OR:ed rather than AND:ed.
How would I go about if I wanted:

  1. 10% of IP addresses
  2. on server with hostname example.de (http://example.de)
    Sorry for such a stupid question.
    Thank you


Reply to this email directly or view it on GitHub (#81).

@ghost
Copy link
Author

ghost commented Jun 11, 2014

I was thinking of logical AND.
if cond1 and cond2

@dcramer
Copy link
Collaborator

dcramer commented Jun 11, 2014

In that case you might want to say:

  • User is hitting canary server AND
  • User is in 10% of all users

On Tuesday, June 10, 2014 at 11:32 PM, AndersenTobias wrote:

I was thinking of logical AND.
if cond1 and cond2


Reply to this email directly or view it on GitHub (#81 (comment)).

@ghost
Copy link
Author

ghost commented Jun 11, 2014

But the switches works like if ANY of the conditions are True then the switch is active? Am I missing something?

@dcramer
Copy link
Collaborator

dcramer commented Jun 11, 2014

Ah I'm mistaken. I thought we had implemented ANY vs ALL but it seems not

@ghost
Copy link
Author

ghost commented Jun 11, 2014

Cool, that explains a lot. Do you know if it is on the road map?

@dcramer
Copy link
Collaborator

dcramer commented Jun 11, 2014

Likely not, but it's open source :)

@ghost
Copy link
Author

ghost commented Jun 11, 2014

:-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant