Revert MONGOID-5780 (toggling negation state)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.1.11, 9.0.9
    • Component/s: Query
    • 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

      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:
            Jamis Buck
            Reporter:
            Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: