Skip to content

Possible bug in bitwise operations #30

Description

@adamgamble

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions