From 919c189c494ab004cc2eab76bf2818d78cdd2f60 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 14 Nov 2019 21:44:51 +0100 Subject: [PATCH] Don't use familyHash for queries --- resources/js/components/RelatedEntries.vue | 2 +- src/Watchers/QueryWatcher.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/js/components/RelatedEntries.vue b/resources/js/components/RelatedEntries.vue index db172e1eb..3137e9b34 100644 --- a/resources/js/components/RelatedEntries.vue +++ b/resources/js/components/RelatedEntries.vue @@ -138,7 +138,7 @@ queriesSummary() { return { time: _.reduce(this.queries, (time, q) => { return time + parseFloat(q.content.time) }, 0.00), - duplicated: this.queries.length - _.size(_.groupBy(this.queries, 'family_hash')), + duplicated: this.queries.length - _.size(_.groupBy(this.queries, (q) => { return q.content.hash })), }; }, diff --git a/src/Watchers/QueryWatcher.php b/src/Watchers/QueryWatcher.php index 0baa1fc7b..1f1ab9eec 100644 --- a/src/Watchers/QueryWatcher.php +++ b/src/Watchers/QueryWatcher.php @@ -45,7 +45,8 @@ public function recordQuery(QueryExecuted $event) 'slow' => isset($this->options['slow']) && $time >= $this->options['slow'], 'file' => $caller['file'], 'line' => $caller['line'], - ])->tags($this->tags($event))->withFamilyHash($this->familyHash($event))); + 'hash' => $this->familyHash($event), + ])->tags($this->tags($event))); } /**