-
Notifications
You must be signed in to change notification settings - Fork 266
PHPLIB-869: Support viewOn and pipeline options in createCollection helper #935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
docs/includes/apiargs-MongoDBDatabase-method-createCollection-option.yaml
Outdated
Show resolved
Hide resolved
docs/includes/apiargs-MongoDBDatabase-method-createCollection-option.yaml
Outdated
Show resolved
Hide resolved
|
||
$expectedIndex += 1; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was copied from Aggregate.php, but the exception messages were not updated to reflect that pipeline
is an option and not a constructor parameter. Please apply the suggestions above.
I also created PHPLIB-881 to refactor this to share common code with other instances of pipeline validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code updated in #1078
…option.yaml Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
…option.yaml Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more things (some suggestions for docs and new tests). Sorry for forgetting to bring these up in a previous review.
docs/includes/apiargs-MongoDBDatabase-method-createCollection-option.yaml
Show resolved
Hide resolved
docs/includes/apiargs-MongoDBDatabase-method-createCollection-option.yaml
Show resolved
Hide resolved
…option.yaml Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
…option.yaml Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
https://jira.mongodb.org/browse/PHPLIB-869