Fixed performance issues on list tags endpoint when requesting it with stats

This commit is contained in:
Alejandro Celaya
2022-01-06 19:01:00 +01:00
parent 2b0567b368
commit 107c09604a
2 changed files with 45 additions and 18 deletions

View File

@@ -54,7 +54,7 @@ class TagRepositoryTest extends DatabaseTestCase
/**
* @test
* @dataProvider provideFilterings
* @dataProvider provideFilters
*/
public function properTagsInfoIsReturned(?TagsListFiltering $filtering, callable $asserts): void
{
@@ -84,7 +84,7 @@ class TagRepositoryTest extends DatabaseTestCase
$asserts($result, $names);
}
public function provideFilterings(): iterable
public function provideFilters(): iterable
{
$noFiltersAsserts = static function (array $result, array $tagNames): void {
/** @var TagInfo[] $result */