Query negation with allow_scopes_to_unset_default_scope

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Unknown
    • None
    • Affects Version/s: 9.0.6
    • Component/s: None
    • None
    • None
    • Ruby Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Hi, I'm upgrading Mongoid from 8.1 to 9, and I had to change

      Model.not.internal.not.default.any_of(...)

      to

      Model.any_of(...).not.internal.default

      because of this change (https://jira.mongodb.org/browse/MONGOID-5780)

      Later, I enabled 
      allow_scopes_to_unset_default_scope which I need because of Paranoia  (https://github.com/mongodb/mongoid/pull/5832, https://jira.mongodb.org/browse/MONGOID-5785) but after that, it seems I need to do Model.not.internal.not.default again, but I don't see how these two things are related. Is it a bug?

            Assignee:
            Jamis Buck
            Reporter:
            Marek Stanczyk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: