mirror of
https://github.com/azaion/satellite-provider.git
synced 2026-06-21 17:51:13 +00:00
[AZ-372] Apply dotnet format whitespace cleanup; archive batch 22
Pure whitespace-only cleanup uncovered by the new format gate from the previous commit. Verified via `git diff -w --stat`: only 4 files differ when whitespace is ignored, and those differ only by the BOM byte. Cleanup kinds applied across 22 source files: - BOM removal (MapConfig.cs, SatTile.cs, GeoUtils.cs, IntegrationTests/Program.cs) - CRLF -> LF (IntegrationTests/Program.cs) - Trailing whitespace on blank lines (Common, Api, DataAccess, IntegrationTests, Services.RegionProcessing, Services.TileDownloader) - Final newline added (RoutePoint.cs, GeoPoint.cs, others) After this commit `dotnet format whitespace SatelliteProvider.sln --verify-no-changes` exits 0; AC-1 is enforceable from `scripts/ run-tests.sh` going forward. Also lands the batch 22 report, code-review report (PASS_WITH_WARNINGS, 2 Low findings — both deferred per spec), dependency-table status update (AZ-372 -> Done (In Testing)), task archive (todo/ -> done/), and autodev state update. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -30,7 +30,7 @@ public class RouteRepository : IRouteRepository
|
||||
created_at as CreatedAt, updated_at as UpdatedAt
|
||||
FROM routes
|
||||
WHERE id = @Id";
|
||||
|
||||
|
||||
return await connection.QuerySingleOrDefaultAsync<RouteEntity>(sql, new { Id = id });
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class RouteRepository : IRouteRepository
|
||||
FROM route_points
|
||||
WHERE route_id = @RouteId
|
||||
ORDER BY sequence_number";
|
||||
|
||||
|
||||
var points = (await connection.QueryAsync<RoutePointEntity>(sql, new { RouteId = routeId })).ToList();
|
||||
return points;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ public class RouteRepository : IRouteRepository
|
||||
@CreateTilesZip, @CsvFilePath, @SummaryFilePath, @StitchedImagePath,
|
||||
@TilesZipPath, @CreatedAt, @UpdatedAt)
|
||||
RETURNING id";
|
||||
|
||||
|
||||
return await connection.ExecuteScalarAsync<Guid>(sql, route);
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ public class RouteRepository : IRouteRepository
|
||||
point_type, segment_index, distance_from_previous, created_at)
|
||||
VALUES (@Id, @RouteId, @SequenceNumber, @Latitude, @Longitude,
|
||||
@PointType, @SegmentIndex, @DistanceFromPrevious, @CreatedAt)";
|
||||
|
||||
|
||||
var pointsList = points.ToList();
|
||||
await connection.ExecuteAsync(sql, pointsList);
|
||||
}
|
||||
@@ -99,7 +99,7 @@ public class RouteRepository : IRouteRepository
|
||||
tiles_zip_path = @TilesZipPath,
|
||||
updated_at = @UpdatedAt
|
||||
WHERE id = @Id";
|
||||
|
||||
|
||||
return await connection.ExecuteAsync(sql, route);
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ public class RouteRepository : IRouteRepository
|
||||
INSERT INTO route_regions (route_id, region_id, is_geofence, geofence_polygon_index, created_at)
|
||||
VALUES (@RouteId, @RegionId, @IsGeofence, @GeofencePolygonIndex, @CreatedAt)
|
||||
ON CONFLICT (route_id, region_id) DO NOTHING";
|
||||
|
||||
|
||||
await connection.ExecuteAsync(sql, new { RouteId = routeId, RegionId = regionId, IsGeofence = isGeofence, GeofencePolygonIndex = geofencePolygonIndex, CreatedAt = DateTime.UtcNow });
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ public class RouteRepository : IRouteRepository
|
||||
SELECT region_id
|
||||
FROM route_regions
|
||||
WHERE route_id = @RouteId AND (is_geofence = false OR is_geofence IS NULL)";
|
||||
|
||||
|
||||
return await connection.QueryAsync<Guid>(sql, new { RouteId = routeId });
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ public class RouteRepository : IRouteRepository
|
||||
SELECT region_id
|
||||
FROM route_regions
|
||||
WHERE route_id = @RouteId AND is_geofence = true";
|
||||
|
||||
|
||||
return await connection.QueryAsync<Guid>(sql, new { RouteId = routeId });
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ public class RouteRepository : IRouteRepository
|
||||
created_at as CreatedAt, updated_at as UpdatedAt
|
||||
FROM routes
|
||||
WHERE request_maps = true AND maps_ready = false";
|
||||
|
||||
|
||||
return await connection.QueryAsync<RouteEntity>(sql);
|
||||
}
|
||||
|
||||
@@ -169,9 +169,9 @@ public class RouteRepository : IRouteRepository
|
||||
FROM route_regions
|
||||
WHERE route_id = @RouteId AND is_geofence = true AND geofence_polygon_index IS NOT NULL
|
||||
ORDER BY geofence_polygon_index";
|
||||
|
||||
|
||||
var results = await connection.QueryAsync<(Guid RegionId, int PolygonIndex)>(sql, new { RouteId = routeId });
|
||||
|
||||
|
||||
var grouped = new Dictionary<int, List<Guid>>();
|
||||
foreach (var (regionId, polygonIndex) in results)
|
||||
{
|
||||
@@ -181,7 +181,7 @@ public class RouteRepository : IRouteRepository
|
||||
}
|
||||
grouped[polygonIndex].Add(regionId);
|
||||
}
|
||||
|
||||
|
||||
return grouped;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user