Revert MONGOID-5780 (toggling negation state)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.1.11, 9.0.9
    • Component/s: Query
    • None
    • Ruby Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      MONGOID-5780 was a response to a report that Foo.not.not.where was functionally equivalent to Foo.not.where – multiple nots did not negate each other, as would have been expected.

      Unfortunately, the implementation of not (sans arguments) in Mongoid was not intended to be a toggle, and implementing it as a toggle broke some other expectations.

      As a short-term fix, I think we should roll back that change. In the longer term, I've added MONGOID-5916 to address larger concerns around this parameterless not syntax.

            Assignee:
            Unassigned
            Reporter:
            Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: