Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2124

Test that inserts and upserts respect null _id values

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Component/s: CRUD
    • Needed
    • Hide

      Summary of necessary driver changes

      • Sync new crud unified spec test that confirms null and undefined are not treated as 'unset'

      Commits for syncing spec/prose tests

      Context for other referenced/linked tickets

      •  N/A
      Show
      Summary of necessary driver changes Sync new crud unified spec test that confirms null and undefined are not treated as 'unset' Commits for syncing spec/prose tests create-null-ids.yml at 726af16 Context for other referenced/linked tickets  N/A
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-5768 Backlog
      CXX-3134 Backlog
      CSHARP-5372 Backlog
      GODRIVER-3392 Backlog
      JAVA-5663 Backlog
      NODE-6468 Backlog
      MOTOR-1384 Duplicate
      PYTHON-4917 Done
      PHPLIB-1560 Done
      RUBY-3564 Backlog
      RUST-2067 Fixed 3.2.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-5768 Backlog CXX-3134 Backlog CSHARP-5372 Backlog GODRIVER-3392 Backlog JAVA-5663 Backlog NODE-6468 Backlog MOTOR-1384 Duplicate PYTHON-4917 Done PHPLIB-1560 Done RUBY-3564 Backlog RUST-2067 Fixed 3.2.0

      In the context of this ticket, "null" refers to the BSON null type (0x0A).

      This should exercise insertOne, insertMany, updateOne, updateMany, replaceOne, and bulkWrite. Update commands will use the "upsert" option.

      SPEC-1135 should ensure that drivers can report a null upserted ID in a result object. Since reporting of inserted IDs is optional, not all drivers will need to test for that. However, all drivers will be able to assert on expected collection data following the write operation.

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Daria Pardue Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: