Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-881

Consolidate validation of aggregation pipeline options

    XMLWordPrintableJSON

Details

    • Task
    • Status: Backlog
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      PHPLIB-869 introduces pipeline validation to the CreateCollection helper, which is based on existing code in Aggregate.

      In 2628c09 for PHPLIB-418, an is_pipeline function was added to validate pipelines for update commands; however, it has additional logic to reject empty pipeline arrays.

      These three use cases should be consolidated to use a common helper function.

      Attachments

        Issue Links

          Activity

            People

              levon.babayan@mongodb.com Levon Babayan (Inactive)
              jmikola@mongodb.com Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: