Support paginating the output of visits commands to avoid out of memory errors

This commit is contained in:
Alejandro Celaya
2025-12-29 10:22:50 +01:00
parent faed7ae60b
commit c0edcd3cfd
13 changed files with 100 additions and 27 deletions

View File

@@ -61,7 +61,7 @@ class GetDomainVisitsCommandTest extends TestCase
| Referer | Date | User agent | Country | City | Short Url |
+---------+---------------------------+------------+---------+--------+---------------+
| foo | {$visit->date->toAtomString()} | bar | Spain | Madrid | the_short_url |
+---------+---------------------------+------------+---------+--------+---------------+
+---------+-------------------------- Page 1 of 1 -+---------+--------+---------------+
OUTPUT,
$output,

View File

@@ -101,7 +101,7 @@ class GetShortUrlVisitsCommandTest extends TestCase
| Referer | Date | User agent | Country | City |
+---------+---------------------------+------------+---------+--------+
| foo | {$visit->date->toAtomString()} | bar | Spain | Madrid |
+---------+---------------------------+------------+---------+--------+
+---------+------------------ Page 1 of 1 ---------+---------+--------+
OUTPUT,
$output,

View File

@@ -58,7 +58,7 @@ class GetTagVisitsCommandTest extends TestCase
| Referer | Date | User agent | Country | City | Short Url |
+---------+---------------------------+------------+---------+--------+---------------+
| foo | {$visit->date->toAtomString()} | bar | Spain | Madrid | the_short_url |
+---------+---------------------------+------------+---------+--------+---------------+
+---------+-------------------------- Page 1 of 1 -+---------+--------+---------------+
OUTPUT,
$output,

View File

@@ -57,7 +57,7 @@ class GetNonOrphanVisitsCommandTest extends TestCase
| Referer | Date | User agent | Country | City | Short Url |
+---------+---------------------------+------------+---------+--------+---------------+
| foo | {$visit->date->toAtomString()} | bar | Spain | Madrid | the_short_url |
+---------+---------------------------+------------+---------+--------+---------------+
+---------+-------------------------- Page 1 of 1 -+---------+--------+---------------+
OUTPUT,
$output,

View File

@@ -55,7 +55,7 @@ class GetOrphanVisitsCommandTest extends TestCase
| Referer | Date | User agent | Country | City | Type |
+---------+---------------------------+------------+---------+--------+----------+
| foo | {$visit->date->toAtomString()} | bar | Spain | Madrid | base_url |
+---------+---------------------------+------------+---------+--------+----------+
+---------+----------------------- Page 1 of 1 ----+---------+--------+----------+
OUTPUT,
$output,