Skip to content

Commit

Permalink
feat: add last error message to last changed list
Browse files Browse the repository at this point in the history
  • Loading branch information
Arne Dumarey authored and CumpsD committed Mar 31, 2020
1 parent d6de3c1 commit c7e8cb7
Show file tree
Hide file tree
Showing 4 changed files with 141 additions and 13 deletions.

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Microsoft.EntityFrameworkCore.Migrations;

namespace Be.Vlaanderen.Basisregisters.ProjectionHandling.LastChangedList.Migrations
{
public partial class AddLastErrorMessage : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "LastErrorMessage",
schema: "Redis",
table: "LastChangedList",
nullable: true);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LastErrorMessage",
schema: "Redis",
table: "LastChangedList");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,38 @@ protected override void BuildModel(ModelBuilder modelBuilder)
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("Redis")
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("ProductVersion", "3.1.2")
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

modelBuilder.Entity("Be.Vlaanderen.Basisregisters.ProjectionHandling.LastChangedList.Model.LastChangedRecord", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
.HasColumnType("nvarchar(450)");
b.Property<string>("AcceptType");
b.Property<string>("AcceptType")
.HasColumnType("nvarchar(max)");
b.Property<string>("CacheKey");
b.Property<string>("CacheKey")
.HasColumnType("nvarchar(450)");
b.Property<int>("ErrorCount");
b.Property<int>("ErrorCount")
.HasColumnType("int");
b.Property<DateTimeOffset?>("LastError");
b.Property<DateTimeOffset?>("LastError")
.HasColumnType("datetimeoffset");
b.Property<long>("LastPopulatedPosition");
b.Property<string>("LastErrorMessage")
.HasColumnType("nvarchar(max)");
b.Property<long>("Position");
b.Property<long>("LastPopulatedPosition")
.HasColumnType("bigint");
b.Property<string>("Uri");
b.Property<long>("Position")
.HasColumnType("bigint");
b.Property<string>("Uri")
.HasColumnType("nvarchar(max)");
b.HasKey("Id")
.HasAnnotation("SqlServer:Clustered", true);
Expand All @@ -56,13 +66,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
modelBuilder.Entity("Be.Vlaanderen.Basisregisters.ProjectionHandling.Runner.ProjectionStates.ProjectionStateItem", b =>
{
b.Property<string>("Name")
.ValueGeneratedOnAdd();
.HasColumnType("nvarchar(450)");
b.Property<string>("DesiredState");
b.Property<string>("DesiredState")
.HasColumnType("nvarchar(max)");
b.Property<DateTimeOffset?>("DesiredStateChangedAt");
b.Property<DateTimeOffset?>("DesiredStateChangedAt")
.HasColumnType("datetimeoffset");
b.Property<long>("Position");
b.Property<long>("Position")
.HasColumnType("bigint");
b.HasKey("Name")
.HasAnnotation("SqlServer:Clustered", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public class LastChangedRecord

public int ErrorCount { get; set; }
public DateTimeOffset? LastError { get; set; }
public string? LastErrorMessage { get; set; }
}
}

0 comments on commit c7e8cb7

Please sign in to comment.