Skip to content

Commit

Permalink
Use Config to Only Show Failures in Admin Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
pykettk committed May 18, 2023
1 parent fa9be3d commit 2a666db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Model/IntegrityResultsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public function __construct(

public function getHyvaGridData(): array
{
$packageData = $this->getLastResults();
$packageData = $this->moduleConfig->shouldOnlyShowFailuresInGrid()
? $this->getFailedMatches()
: $this->getLastResults();

return $this->moduleConfig->isIgnoreListEnabled() && $this->moduleConfig->shouldRemoveIgnoredPackagesFromAdminGrid()
? $this->removeIgnoredPackages($packageData)
Expand Down

0 comments on commit 2a666db

Please sign in to comment.