Skip to content

Commit 03cb300

Browse files
committed
MAGETWO-98853: reporting_system_updates table exceptionally large (4gb)
1 parent 202bf5a commit 03cb300

File tree

2 files changed

+14
-1
lines changed
  • app/code/Magento/NewRelicReporting/Model/Module
  • dev/tests/integration/testsuite/Magento/NewRelicReporting/Model/Module

2 files changed

+14
-1
lines changed

app/code/Magento/NewRelicReporting/Model/Module/Collect.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Magento\NewRelicReporting\Model\Config;
1212
use Magento\NewRelicReporting\Model\Module;
1313

14+
/**
15+
* Class for collecting data for the report
16+
*/
1417
class Collect
1518
{
1619
/**
@@ -92,7 +95,6 @@ protected function getAllModules()
9295
* @param string $active
9396
* @param string $setupVersion
9497
* @param string $state
95-
*
9698
* @return array
9799
*/
98100
protected function getNewModuleChanges($moduleName, $active, $setupVersion, $state)

dev/tests/integration/testsuite/Magento/NewRelicReporting/Model/Module/CollectTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,29 @@
88
use Magento\TestFramework\Helper\Bootstrap;
99
use PHPUnit\Framework\TestCase;
1010

11+
/***
12+
* Class CollectTest
13+
*
14+
* @covers Collect
15+
*/
1116
class CollectTest extends TestCase
1217
{
1318
/**
1419
* @var Collect
1520
*/
1621
private $collect;
1722

23+
/**
24+
* @inheritDoc
25+
*/
1826
protected function setUp()
1927
{
2028
$this->collect = Bootstrap::getObjectManager()->create(Collect::class);
2129
}
2230

31+
/**
32+
* @return void
33+
*/
2334
public function testReport()
2435
{
2536
$this->collect->getModuleData();

0 commit comments

Comments
 (0)