Skip to content

Commit 797b9d6

Browse files
committed
MC-14937: Complete Page Builder Analytics data collection
- Resolve CR comments
1 parent c68e6b6 commit 797b9d6

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

app/code/Magento/PageBuilderAnalytics/Model/ContentTypeUsageReportProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
Config $config,
5252
QueryFactory $queryFactory,
5353
ConnectionFactory $connectionFactory,
54-
$batchSize = 1000
54+
$batchSize = 5000
5555
) {
5656
$this->config = $config;
5757
$this->queryFactory = $queryFactory;
@@ -101,11 +101,9 @@ public function getReport($name) : \IteratorIterator
101101
}
102102
}
103103

104-
$total = 0;
105104
$reportData[] = ['Content Type', 'Count'];
106105
foreach ($contentTypes as $type) {
107106
$reportData[] = [$type['name'], $typeCounts[$type['name']]];
108-
$total = $total + $typeCounts[$type['name']];
109107
}
110108

111109
return new \IteratorIterator(

app/code/Magento/PageBuilderAnalytics/etc/di.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,4 @@
1616
</argument>
1717
</arguments>
1818
</type>
19-
<type name="Magento\PageBuilderAnalytics\Model\ContentTypeUsageReportProvider">
20-
<arguments>
21-
<argument name="batchSize" xsi:type="number">5000</argument>
22-
</arguments>
23-
</type>
2419
</config>

0 commit comments

Comments
 (0)