Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in bitwise operations #30

Open
adamgamble opened this issue Feb 22, 2017 · 1 comment
Open

Possible bug in bitwise operations #30

adamgamble opened this issue Feb 22, 2017 · 1 comment

Comments

@adamgamble
Copy link

I can verify a user has completed both events, but when I try to AND the events and see if the user is in them the result is false? Thanks for any help, i'm working on building a sales funnel so the logical operations are crucial for me.

[46] pry(main)> user = Minuteman::User['83b12bb4-96f8-4a65-a0ac-1d6c779c6057']
=> #<Minuteman::User:0x007f9dbfa40308 @_memo={}, @attributes={:uid=>"83b12bb4-96f8-4a65-a0ac-1d6c779c6057", :anonymous=>"true"}, @id="5">
[47] pry(main)> Minuteman("search:non_premium").day.include?(user)
=> true
[48] pry(main)> Minuteman("search_click:premium").day.include?(user)
=> true
[49] pry(main)> (Minuteman("search:non_premium").day & Minuteman("search_click:premium").day).include?(user)
=> false
@adamgamble
Copy link
Author

So it turns out there is some kind of minuteman cache going on. Calling this before analyzing fixes the problem

Minuteman.config.redis.call("KEYS", "Minuteman::Operations*").each {|key| Minuteman.config.redis.call("DEL", key)}

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

No branches or pull requests

1 participant