Details

    • Type: Sub-task Sub-task
    • Status: Closed Closed
    • Priority: Critical - P2 Critical - P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: casbah-2.3, casbah-2.5
    • Component/s: None
    • Labels:
      None
    • # Replies:
      7
    • Last comment by Customer:
      false

      Activity

      Hide
      Don
      added a comment -

      Have there been any changes on this bug? Not being able to do simple OR queries is a huge annoyance.

      val queryOR = ($or ("x" $gte 15),("y" $gte "L"))

      error: type mismatch;
      found : com.mongodb.DBObject with com.mongodb.casbah.query.DSLDBObject
      required: (String, Any)

      Show
      Don
      added a comment - Have there been any changes on this bug? Not being able to do simple OR queries is a huge annoyance. val queryOR = ($or ("x" $gte 15),("y" $gte "L")) error: type mismatch; found : com.mongodb.DBObject with com.mongodb.casbah.query.DSLDBObject required: (String, Any)
      Hide
      Brendan W. McAdams
      added a comment -

      There is a lot of refactoring and Technical Debt cleanup taking place right now for the next version of Casbah, which will fix this issue

      Show
      Brendan W. McAdams
      added a comment - There is a lot of refactoring and Technical Debt cleanup taking place right now for the next version of Casbah, which will fix this issue
      Hide
      auto
      added a comment -

      Author:

      {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

      Message: SCALA-30, SCALA-59- $or is not properly accepting nested values esp. from other DSL constructors

      Show
      auto
      added a comment - Author: {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'} Message: SCALA-30 , SCALA-59 - $or is not properly accepting nested values esp. from other DSL constructors Introduced proper type class filter base to fix $or, will implement across other operators next. Branch: master https://github.com/mongodb/casbah/commit/e93191dc3c02bc28c5e107b7293a744d9997ea03
      Hide
      Brendan W. McAdams
      added a comment -

      Fixed as part of parent issue overhaul.

      Show
      Brendan W. McAdams
      added a comment - Fixed as part of parent issue overhaul.
      Hide
      Brendan W. McAdams
      added a comment -

      There will be a beta out of 2.2 next week with fixes for this. In the meantime you can construct a normal DBObjecf without the query dsl as a perfectly fine workaround.

      Show
      Brendan W. McAdams
      added a comment - There will be a beta out of 2.2 next week with fixes for this. In the meantime you can construct a normal DBObjecf without the query dsl as a perfectly fine workaround.
      Hide
      auto
      added a comment -

      Author:

      {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

      Message: Backports for QueryDSL

      • Major cleanups and bugfixes to the DSL, it's heavily and fully tested now and much faster/cleaner
      • Added support for $and bareword operator
      • SCALA-30, SCALA-59- $or is not properly accepting nested values esp. from other DSL constructors
        + Introduced proper type class filter base to fix $or, will implement across other operators next.
      • SCALA-59 - Fix Bareword Query Operators to better target accepted values; should only accept KV Tuple Pairs or DBObjects returned from Core Operators
        + Complete test suites for $and and $nor although they need to be updated to more appropriate contextual examples rather than just "compiles properly"
        + New code logic, fixed $or, $and and $nor for proper nested list operations
        + New :: list cons operator on MongoDBObject to create MongoDBLists on th fly (esp. for DSL)
        -Typesafety kungfu from @jteigen
        + enforce at compile time that type parameters used for casting are not Nothing
        + disable parallel test execution in core since LazyDecodingSpec was failing for no reason when executed together with other tests
        + enforce $pushAll & $pullAll arguments can be converted to Iterable at compile time
        + switched to a type class (AsQueryParam) for queryparams to avoid code duplication
        Branch: release-2.3
        https://github.com/mongodb/casbah/commit/e0086f2f3beaaaf1dab4778b66e1605bc0493d8a
      Show
      auto
      added a comment - Author: {u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'} Message: Backports for QueryDSL Major cleanups and bugfixes to the DSL, it's heavily and fully tested now and much faster/cleaner Added support for $and bareword operator SCALA-30 , SCALA-59 - $or is not properly accepting nested values esp. from other DSL constructors + Introduced proper type class filter base to fix $or, will implement across other operators next. SCALA-59 - Fix Bareword Query Operators to better target accepted values; should only accept KV Tuple Pairs or DBObjects returned from Core Operators + Complete test suites for $and and $nor although they need to be updated to more appropriate contextual examples rather than just "compiles properly" + New code logic, fixed $or, $and and $nor for proper nested list operations + New :: list cons operator on MongoDBObject to create MongoDBLists on th fly (esp. for DSL) -Typesafety kungfu from @jteigen + enforce at compile time that type parameters used for casting are not Nothing + disable parallel test execution in core since LazyDecodingSpec was failing for no reason when executed together with other tests + enforce $pushAll & $pullAll arguments can be converted to Iterable at compile time + switched to a type class (AsQueryParam) for queryparams to avoid code duplication Branch: release-2.3 https://github.com/mongodb/casbah/commit/e0086f2f3beaaaf1dab4778b66e1605bc0493d8a
      Hide
      auto
      added a comment -

      Author:

      {u'date': u'2012-05-16T08:43:21Z', u'email': u'brendan@10gen.com', u'name': u'Brendan W. McAdams'}

      Message: Backports for QueryDSL

      • Major cleanups and bugfixes to the DSL, it's heavily and fully tested now and much faster/cleaner
      • Added support for $and bareword operator
      • SCALA-30, SCALA-59- $or is not properly accepting nested values esp. from other DSL constructors
        + Introduced proper type class filter base to fix $or, will implement across other operators next.
      • SCALA-59 - Fix Bareword Query Operators to better target accepted values; should only accept KV Tuple Pairs or DBObjects returned from Core Operators
        + Complete test suites for $and and $nor although they need to be updated to more appropriate contextual examples rather than just "compiles properly"
        + New code logic, fixed $or, $and and $nor for proper nested list operations
        + New :: list cons operator on MongoDBObject to create MongoDBLists on th fly (esp. for DSL)
        -Typesafety kungfu from @jteigen
        + enforce at compile time that type parameters used for casting are not Nothing
        + disable parallel test execution in core since LazyDecodingSpec was failing for no reason when executed together with other tests
        + enforce $pushAll & $pullAll arguments can be converted to Iterable at compile time
        + switched to a type class (AsQueryParam) for queryparams to avoid code duplication
        Branch: master
        https://github.com/mongodb/casbah/commit/e0086f2f3beaaaf1dab4778b66e1605bc0493d8a
      Show
      auto
      added a comment - Author: {u'date': u'2012-05-16T08:43:21Z', u'email': u'brendan@10gen.com', u'name': u'Brendan W. McAdams'} Message: Backports for QueryDSL Major cleanups and bugfixes to the DSL, it's heavily and fully tested now and much faster/cleaner Added support for $and bareword operator SCALA-30 , SCALA-59 - $or is not properly accepting nested values esp. from other DSL constructors + Introduced proper type class filter base to fix $or, will implement across other operators next. SCALA-59 - Fix Bareword Query Operators to better target accepted values; should only accept KV Tuple Pairs or DBObjects returned from Core Operators + Complete test suites for $and and $nor although they need to be updated to more appropriate contextual examples rather than just "compiles properly" + New code logic, fixed $or, $and and $nor for proper nested list operations + New :: list cons operator on MongoDBObject to create MongoDBLists on th fly (esp. for DSL) -Typesafety kungfu from @jteigen + enforce at compile time that type parameters used for casting are not Nothing + disable parallel test execution in core since LazyDecodingSpec was failing for no reason when executed together with other tests + enforce $pushAll & $pullAll arguments can be converted to Iterable at compile time + switched to a type class (AsQueryParam) for queryparams to avoid code duplication Branch: master https://github.com/mongodb/casbah/commit/e0086f2f3beaaaf1dab4778b66e1605bc0493d8a

        People

        • Assignee:
          Brendan W. McAdams
          Reporter:
          Brendan W. McAdams
          Participants:
          Last commenter:
          Ross Lawley
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:
            Days since reply:
            1 year, 17 weeks, 2 days ago
            Date of 1st Reply: