Compare commits

..

2 commits

Author SHA1 Message Date
fba68b5d03
feat: add cherry-picking 2024-06-17 22:21:22 +02:00
e44bd91f10
build: update dependencies 2024-06-17 22:21:15 +02:00
2 changed files with 287 additions and 284 deletions

View file

@ -42,6 +42,7 @@ class TrackerController extends Controller
$fromCheckin = $request->input('from', null); $fromCheckin = $request->input('from', null);
$toCheckin = $request->input('to', null); $toCheckin = $request->input('to', null);
$forceDownload = $request->input('force', false); $forceDownload = $request->input('force', false);
$cherryPickedCheckins = explode(',', $request->input('cherrypick', null));
try { try {
$tripData = $this->get_trip_data($tripId, $forceDownload); $tripData = $this->get_trip_data($tripId, $forceDownload);
@ -73,6 +74,15 @@ class TrackerController extends Controller
); );
} }
if ($cherryPickedCheckins) {
$tripData->checkins = array_filter(
$tripData->checkins,
function ($checkin) use ($cherryPickedCheckins) {
return in_array($checkin->id, $cherryPickedCheckins);
}
);
}
return view( return view(
'tracker', 'tracker',
[ [

561
composer.lock generated

File diff suppressed because it is too large Load diff