Skip to content

Commit

Permalink
Fix/john/correct id forengee (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Vaughan authored Mar 1, 2024
1 parent 6e98114 commit 95b5e5e
Show file tree
Hide file tree
Showing 11 changed files with 369 additions and 44 deletions.
19 changes: 19 additions & 0 deletions src/BL/Models/EgressSubmission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public class EgressSubmission
public string? Reviewer { get; set; }
public virtual List<EgressFile> Files { get; set; }

public string? tesId { get; set; }

public string? Name { get; set; }

public string EgressStatusDisplay
{
get
Expand All @@ -33,5 +37,20 @@ public string EgressStatusDisplay
return displayAttribute?.Name ?? Status.ToString();
}
}

public string EgressID
{
get
{
if (string.IsNullOrEmpty(tesId))
{
return SubmissionId;
}
else
{
return tesId;
}
}
}
}
}
4 changes: 4 additions & 0 deletions src/BL/Models/ViewModels/ReviewFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ public class ReviewFiles

public List<string> Files { get; set; }

public string tesId { get; set; }

public string Name { get; set; }

}
}
132 changes: 132 additions & 0 deletions src/Data-Egress-API/Migrations/20240301145645_tesid.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions src/Data-Egress-API/Migrations/20240301145645_tesid.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Data_Egress_API.Migrations
{
/// <inheritdoc />
public partial class tesid : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "SubFolder",
table: "EgressSubmissions",
newName: "tesId");
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "tesId",
table: "EgressSubmissions",
newName: "SubFolder");
}
}
}
135 changes: 135 additions & 0 deletions src/Data-Egress-API/Migrations/20240301152250_addName.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions src/Data-Egress-API/Migrations/20240301152250_addName.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Data_Egress_API.Migrations
{
/// <inheritdoc />
public partial class addName : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Name",
table: "EgressSubmissions",
type: "text",
nullable: true);
}

/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Name",
table: "EgressSubmissions");
}
}
}
Loading

0 comments on commit 95b5e5e

Please sign in to comment.