gargoyle icon indicating copy to clipboard operation
gargoyle copied to clipboard

What is a common use case?

Open ghost opened this issue 11 years ago • 8 comments

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 avatar Jun 11 '14 06:06 ghost

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 (https://github.com/disqus/gargoyle/issues/81).

dcramer avatar Jun 11 '14 06:06 dcramer

I was thinking of logical AND. if cond1 and cond2

ghost avatar Jun 11 '14 06:06 ghost

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 (https://github.com/disqus/gargoyle/issues/81#issuecomment-45706646).

dcramer avatar Jun 11 '14 06:06 dcramer

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

ghost avatar Jun 11 '14 06:06 ghost

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

dcramer avatar Jun 11 '14 06:06 dcramer

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

ghost avatar Jun 11 '14 06:06 ghost

Likely not, but it's open source :)

dcramer avatar Jun 11 '14 06:06 dcramer

:-)

ghost avatar Jun 11 '14 06:06 ghost