|
|
@@ -282,7 +282,7 @@ if($archive_missing) {
|
|
|
|
|
|
// Write CSV on missing locations in future projects
|
|
|
$handle = fopen("tests_for_missing_locations.csv", "wb");
|
|
|
-fputcsv($handle, ["Project", "Location"]);
|
|
|
+fputcsv($handle, ["Project", "Location ID", "Location", "Internal ID"]);
|
|
|
|
|
|
$missing_location_ids = array_column($missing_locations, "id");
|
|
|
|
|
|
@@ -304,6 +304,11 @@ foreach($projects as $project) {
|
|
|
|
|
|
foreach($tests as $test) {
|
|
|
$location = $test->getLocation();
|
|
|
- fputcsv($handle, [$project->name, $location->name]);
|
|
|
+ fputcsv($handle, [
|
|
|
+ $project->name,
|
|
|
+ $location->id,
|
|
|
+ $location->name,
|
|
|
+ $location->internal_id
|
|
|
+ ]);
|
|
|
}
|
|
|
}
|