Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1229

Populate error labels for bulk write exceptions

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.0alpha1, 1.6.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Related to PHPC-1222, with comments:

      https://github.com/mongodb/mongo-php-driver/pull/870/files#r199523353

      If I understand correctly, this test was only using executeCommand() so that you could inspect the error label by calling CommandException::getResultDocument(). I think this should be rewritten to execute a bulk write and then call hasErrorLabel on the BulkWriteException.

      Instead of updating the test case, it should be a clone with modifications.

            Assignee:
            derick Derick Rethans
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: