You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A contributor that implements ISchemaContributor directly passes the base class's refusals by #48
area/migrationsThe differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiringbugSomething isn't workingpackage/coreAffects CodoMetis.EFCore.SchemaKit (the kernel)severity/mediumInconsistency or failure in a narrow scenario
The refusals that make Plan and ImpactOf trustworthy are in SchemaContributor<TDeclaration, TDescriptor>: an InPlace with no statement, statements beside another answer, a null answer, a descriptor that is not a record. ISchemaContributor is public, AddSchemaContributor<T>() is constrained to class, ISchemaContributor, and SchemaContributorRegistry takes any ISchemaContributor. A class that implements the interface itself is registered and none of those refusals runs.
Evidence
The analysis registered such a class. The registry accepted it; its Plan answered InPlace with no statement and its ImpactOf returned null, neither refused. Contributors/Internal/SchemaContributorRegistry.cs checks the owner, the placement and one contributor per owner, and nothing else.
Also: on the base class only Plan and ImpactOf have a null check. Resolve and Claims returning null are not refused.
Decide before the contract freezes at rc.1
Either the registry refuses a contributor that does not derive from SchemaContributor<,>, or the planner (#24) applies the checks around every call, whoever implements the interface.
Done when
A direct implementation is refused when the registry is built, or its InPlace without statements and its null answers are refused by the planner, with a test that fails without the check. Resolve and Claims returning null are refused.
area/migrationsThe differ and generator decorators, snapshot format, EnsureCreated and the UseSchemaKit wiringbugSomething isn't workingpackage/coreAffects CodoMetis.EFCore.SchemaKit (the kernel)severity/mediumInconsistency or failure in a narrow scenario
Activity
fix: a contributor that implements ISchemaContributor itself is refus…