mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-06 23:33:13 +08:00
Support paginating the output of visits commands to avoid out of memory errors
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user