Skip to content
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

Format aggregation queries in data collector #406

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Apr 10, 2017

Fixes #392.

@alcaeus alcaeus requested a review from malarzm April 10, 2017 14:48
@alcaeus alcaeus added this to the 3.3 milestone Apr 10, 2017
@@ -84,7 +84,9 @@ public function collect(Request $request, Response $response, \Exception $except
}

// format the method call
if (isset($log['authenticate'])) {
if (isset($log['aggregate'])) {
$query .= '.aggregate('.$this->bsonEncode($log['pipeline']).', '.$this->bsonEncode($log['options']).')';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think options should be included only when not empty to avoid having [ ] in logged query

@alcaeus alcaeus force-pushed the data-collector-aggregate-support branch from 6dbd303 to f280f33 Compare April 11, 2017 14:36
@alcaeus alcaeus merged commit 5ec8395 into doctrine:master Apr 21, 2017
@alcaeus alcaeus deleted the data-collector-aggregate-support branch April 21, 2017 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants