Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated PR to fix formatting errors #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BUTR.CrashReport.Server.v13/JsonHandlerV13.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task<IActionResult> UploadJsonAsync(ControllerBase controller, Canc
controller.Request.Body = await _gZipCompressor.DecompressAsync(controller.Request.Body, ct);
else
controller.Request.EnableBuffering();

if (await controller.HttpContext.Request.ReadFromJsonAsync<CrashReportUploadBodyV13>(_jsonSerializerOptions, ct) is not { CrashReport: { } crashReport, LogSources: { } logSources })
{
_logger.LogWarning("Failed to read JSON body");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public ActionResult<IEnumerable<FileMetadata>> RegenerateHtmlCrashReports(byte t
public IActionResult SitemapIndex()
{
var sitemaps = new List<Sitemap>();

var tenants = _dbContext.ReportEntities.Select(x => x.Tenant).Distinct().ToList();
foreach (var tenant in tenants)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
migrationBuilder.Sql("""
UPDATE file_entity fe
SET crash_report_id = (SELECT ie.crash_report_id FROM id_entity ie WHERE ie.file_id = fe.file_id)
""");
""");
migrationBuilder.DropForeignKey(
name: "FK_file_entity_id_entity_file_id",
table: "file_entity");
Expand All @@ -29,8 +29,8 @@ USING file_entity T2
WHERE T1.ctid < T2.ctid
AND T1.crash_report_id = T2.crash_report_id;
""");


migrationBuilder.AddColumn<Guid>(
name: "crash_report_id",
table: "json_entity",
Expand Down Expand Up @@ -75,8 +75,8 @@ WHERE T1.ctid < T2.ctid
name: "json_entity_pkey",
table: "json_entity",
column: "crash_report_id");


migrationBuilder.CreateTable(
name: "id_test_entity",
columns: table => new
Expand Down Expand Up @@ -125,7 +125,7 @@ WHERE T1.ctid < T2.ctid
nullable: false,
defaultValue: (byte) 0);


migrationBuilder.AddForeignKey(
name: "report_entity_html_entity_fkey",
table: "file_entity",
Expand All @@ -140,8 +140,8 @@ WHERE T1.ctid < T2.ctid
principalTable: "id_entity",
principalColumn: "crash_report_id",
onDelete: ReferentialAction.Cascade);


migrationBuilder.AddForeignKey(
name: "html_entity_id_entity_fkey",
table: "id_test_entity",
Expand All @@ -163,7 +163,7 @@ WHERE T1.ctid < T2.ctid
principalTable: "id_entity",
principalColumn: "crash_report_id",
onDelete: ReferentialAction.Cascade);


migrationBuilder.RenameTable(
name: "id_entity",
Expand Down