Ports, schema and failing tests for the subscriber half of S-19b-2, ahead of the implementation. The subscriber now listens on the `objecten` kanaal instead of `zaken`. An Objecten notification carries no record data — only the object URL — so the record is read back through the ACL (§8.1), and the zaak-shaped surface goes away: IsZaakCreated / IsZaakStatusSet / ZaakUrl / ZaakId and ToEntry's `Resource == "status"` mapping are replaced by IsRegisterRecordWritten + ObjectUrl. The notification log now holds the projected row itself (register id, status, reference), so a rebuild is a replay with no mapping rules and no upstream reads. The migration drops the old columns rather than renaming them — EF scaffolded renames that would have carried ZGW values into columns meaning something else — and empties both tables, since a pre-slice row is neither reprojectable nor re-derivable from the new source. Red: HandleAsync recognises a register write but does not yet read or project it, so the seven projection assertions fail on an empty store.
85 lines
2.9 KiB
C#
85 lines
2.9 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
using Projection.ReadModel;
|
|
|
|
#nullable disable
|
|
|
|
namespace Projection.ReadModel.Migrations
|
|
{
|
|
[DbContext(typeof(ProjectionDbContext))]
|
|
partial class ProjectionDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "10.0.0")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("Projection.ReadModel.ProcessedNotificationRow", b =>
|
|
{
|
|
b.Property<string>("Key")
|
|
.HasColumnType("text")
|
|
.HasColumnName("key");
|
|
|
|
b.Property<DateTimeOffset>("ReceivedAt")
|
|
.HasColumnType("timestamp with time zone")
|
|
.HasColumnName("received_at");
|
|
|
|
b.Property<string>("Reference")
|
|
.HasColumnType("text")
|
|
.HasColumnName("reference");
|
|
|
|
b.Property<string>("RegisterId")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("register_id");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("status");
|
|
|
|
b.HasKey("Key");
|
|
|
|
b.ToTable("processed_notifications", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Projection.ReadModel.RegisterEntryRow", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("text")
|
|
.HasColumnName("id");
|
|
|
|
b.Property<string>("Bsn")
|
|
.HasColumnType("text")
|
|
.HasColumnName("bsn");
|
|
|
|
b.Property<string>("NaamPlaceholder")
|
|
.HasColumnType("text")
|
|
.HasColumnName("naam_placeholder");
|
|
|
|
b.Property<string>("Reference")
|
|
.HasColumnType("text")
|
|
.HasColumnName("reference");
|
|
|
|
b.Property<string>("Status")
|
|
.IsRequired()
|
|
.HasColumnType("text")
|
|
.HasColumnName("status");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("register_projection", (string)null);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|