Repository navigation
docs: the README, the 5.x guide and the changelog of 11.0.0-preview.1, held by tests - #135
Merged
Merged
Conversation
…, held by tests The README's sample named pg.Unique and pg.Gin, which do not exist. It is now what preview.1 ships: the wiring and one exclusion constraint with a lambda condition. The README says what the preview does, what it does not do yet with each issue, and the platform. The package READMEs say the same with absolute links. docs/moving-from-complexindexes-5x.md is the first cut of the guide (#73): the packages, the wiring and what each missed step gives, exclusion constraints 5.x call by 5.x call against the fixture LegacyHandoverTests reads, conditions, migrations 5.x scaffolded, and every other 5.x entry point with where it goes. CHANGELOG.md has the section for 11.0.0-preview.1, headed "unreleased" until the maintainer dates it; release.yml refuses a tag until then. DocumentationSampleTests compiles every csharp block of those pages against the shipped assemblies with nothing suppressed; DocumentationLinkTests checks every link. Closes #106 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #106
Also the first cut of #73 (which stays open) and the changelog section the epic (#1) asks for.
Problem
The README's sample did not compile against the packages:
pg.Unique,pg.GinandGinOpClassdo not exist. "Where it stands" was several merges behind, theBuildsection named two of the three test projects, and the changelog had no section for11.0.0-preview.1, whichrelease.ymlneeds before a tag. A 5.x project had no page that said what each of its calls becomes.Change
README.md: the sample is whatpreview.1ships, the wiringUseNpgsql(…, o => o.UseSchemaKit())and the exclusion constraint ofHarness/Models.cs, with the DDLPgExclusionMigrationTestsasserts. Then what the preview does; what it does not do yet, each with its issue (PgIndex: typed indexes with expression and JSON-member keys and typed filters #27, A 5.x annotation that no reader reads is passed over in silence #93/Spike C: a 5.x snapshot hands over with zero operations #18, SqlServerIndex: clustered and nonclustered, typed #29, SQLite, One landing function: the tables a declaration lands on, total over the mapping strategies #118, An object on a column only a derived type has cannot be declared while the type shares its table #85, A narrowing cast in a lambda is left out of the template: (int)x.Amount == 2 is stored as {Amount} = 2 #103, PgExclusion: exclusion constraints end to end #25, SchemaResolver: paths to columns and SQL, identically on both sides of a diff #43); four known defects (Overlaps over a plain array compiles and fails at apply: no GiST operator class (42704) #104, A table moved back to the default schema stays where it was on Npgsql, and a statement written after the move fails with 42P01 #105, A constraint renamed in place frees its name after EF Core's operations: an index created under that name in the same migration fails with 42P07 #99, Name claims take a table without a schema and a table in public for two schemas, and the collision fails at apply #100); which package for which EF Core; the platform; the build of all three test projects. The snapshot sentence of SchemaKit: snapshot format v2 and CodoMetis: annotation keys ship in 11.0.0; the 5.x format is read forever (D11) #9 is in the notice at the top.src/*/README.md: the same, with absolute links only.docs/moving-from-complexindexes-5x.md: the guide's first cut (Migration guide: every EFCore.ComplexIndexes 5.x usage, and its native EF Core 11 or SchemaKit form #73). The packages and the design-time reference; the wiring, with a table of what each missed step gives; exclusion constraints, the fixture's 5.x model before and after and a table call by call, each row with what was measured; expressions; conditions and what the translator refuses; migrations 5.x scaffolded (An operation scaffolded by an early 5.x with CustomTemporal:WithoutOverlaps replays as a plain unique constraint #110, Legacy replay: migrations scaffolded by 5.x apply to a fresh database #28); what cannot move yet (A 5.x annotation that no reader reads is passed over in silence #93); every other 5.x entry point fromdesign/schemakit-api.mdsection 13 as native, later (with its issue) or dropped; and the measured limits (A table moved back to the default schema stays where it was on Npgsql, and a statement written after the move fails with 42P01 #105,NU1608).CHANGELOG.md:## [11.0.0-preview.1] — unreleased, one line on the platform, the snapshot sentence and what is left out, then### Added.test/…PostgreSQL.Tests/Documentation:DocumentationSampleTestsandDocumentationLinkTests, ported as an idea from 5.x'sDocumentationApiTestsandDocumentationLinkTests.CLAUDE.md,CONTRIBUTING.md: a section on the documentation and its tests.Every statement was checked against the code or a test. Five were measured for this PR with throwaway tests on
main@ 010ff31, not committed:WithExpression("lower(\"kind\")", "=")on a lower-case column againstpg.Equal(x => x.Kind.ToLower())lower(kind)bare. Writtenlower(kind)in 5.x, no operationsUseNpgsql(cs).UseSchemaKit()with a declarationGenerateCreateScript()and the diff throw "no contributor with that owner is registered"{Note} <> 'x'againstx.Note != "x"on a nullable column, and againstx.Note != null && x.Note != "x"NU1608, one per EF Core package Npgsql pins that the project lifts; 11.0.0 resolvesTests
DocumentationSampleTests: every```csharpblock of the root pages,docs/and the package READMEs compiles against the shipped assemblies with nothing suppressed (errors andSK*). A fragment is compiled in a method the test shows, beside the entity types the test shows.```csharp 5.xblocks are not compiled; any other marker fails. Shown failing: the old sample'spg.Unique(…)put back into the README givesCS1061atREADME.md:14; an unknown parameter givesCS1739. A test of its own holds theCS1061case.DocumentationLinkTests: relative links to files and headings that exist; absolute links toblob/mainandtree/mainthe same; package READMEs absolute only. Shown failing: a heading that does not exist, a relative link in the kernel's README, a changelog link to a file onmainthat does not exist.Decisions in this PR that are not confirmed
11.0.0. The alternative is that each preview reads the one before, which would let the text promise more.unreleased.release.ymlrefuses a tag whose heading is not— yyyy-mm-dd, so the heading stops a tag until the maintainer writes the date. A dry run ofrelease.ymlonmainfails at the same check until then.docs/moving-from-complexindexes-5x.md, apart from thedocs/upgrading.mdthatCONTRIBUTING.mdreserves for upgrades between 11.x versions.CLAUDE.mdrule "Write only what is measured" for the documentation.Left out because it could not be verified here: that SchemaKit runs on EF Core 11.0.0 (only restore and resolution were measured); the advice to move from 5.6.x against a real snapshot of 5.4 or earlier; whether Npgsql's
NpgsqlRange<T>[]has a form underWithPeriod(); whether a native form of an index gives 5.x's DDL and name (#3); a workaround for #105.Still open and not described as settled: the lambda factories' place (#112), how a wrong wiring is refused (#113).
🤖 Generated with Claude Code