Repository navigation
Done
Milestone
Description
This was generated by AI during validation.
Follow-ups from the code review of #191 (API, conversion tests and docs). Nothing here blocked the merge. Standards axis: one item first marked hard, treated as soft (item 1). Spec axis: no hard findings.
- File size.
EventMetricsTests.csgrew from 606 to 624 lines, andApiValidationRouteTests.csis at 400, while this PR adds the "about 400 lines" rule to AGENTS.md. Several Api test files predate it:CommentApiTests524,FeedbackTests573,ActivityNoteConversionTests494. Split them. - Expected values from the production constants. Tests assert
TableNames.CommentPartition(CommentApiTests.cs:119,ActivityNoteConversionTests.cs:64,403) and the Azurite tests build their stores fromTableNames, so renaming a table would still pass every test. Pin the literal names once in one test. - The Azurite query test does not prove filtering happens in storage (
StorageQueryAzuriteTests.cs:43-79): a list that read the whole partition and filtered in memory would still pass; onlyCommentRowsRead == [1,1]catches it. Line 75 checks the cascade withGetWhereAsync, the code under test. - Azurite conversion tests. They do not restore the marker as found (the
finallyblocks don't), and the pass converts every old-column row in that storage, not only the seeded ones. README should warn against pointingEM_AZURITE_CONNECTIONat storage that isn't throwaway. All four Azurite tests skip in CI because.githubsets noEM_AZURITE_CONNECTION. - No registration test.
Program.csusingTableNamesis not tested; moving the registrations into anIServiceCollectionextension would allow a plain test. Raw"Activity"partition literals remain in test seeds (ApiValidationRouteTests.cs:38,DeleteInUseRefusalTests.cs:65,PropertyLimitTests.cs:168).TableNamescovers 2 of the 7 tables. - Duplicates and dead code.
Flow<T>is copied inActivityNoteConversionAzuriteTests.cs:23andStorageQueryAzuriteTests.cs:19;StoreKeyed/CheckKeyedinPartitionedTableMock.csrepeatStore/Check; unusedusing System.Linq.Expressions;atCommentApiTests.cs:1;OldActivityRows.OldTextColumnexists butActivityNoteConversionTestsstill writes"Comments"about 15 times. - Vocabulary.
RetiredCommentsFieldTestsand its test name call the retired column "Comments";ActivityNoteConversionStartup, the harness'sNoteConversionand the"activity-note:"hash salt keep "note" beyond the two names the GLOSSARY exception lists. - Docs.
docs/api-validation.md:67still says the snapshot "no longer carries the Activity's Comments";:69only implies that a running host never converts an old column written after its first pass (one explicit sentence would close fix(api): follow-ups from the review of the Activity note conversion (#167) #169.1); the GLOSSARY Library entry carries implementation detail. - The commit type is
chore(api)but includes a behaviour fix (the Like-count parse,TryParseExact "D", which also accepts uppercase hex keys; harmless because writes are lowercase).CommentApiTests.Stored()is a Middle Man.
Evidence: the Standards and Spec reports of the review of #191 (head 26cdfa0); cold validation: 0 warnings, Api 495 + 4 skipped, Web 679.
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs: close the doc items of the 0.5.0 follow-ups and add the 0.6.0 t…
fix(api): refuse every non-loopback Azurite endpoint and make two new…
chore(api): close the follow-ups of #194 and keep the Api tests under…
mwg-bender commentedon Nov 27, 2026
Disposition of the #194 items, recorded here so the issue stands on its own:
ci.ymlsets noEM_AZURITE_CONNECTION. PR ci: run the Azurite storage tests in the build-and-test job #258 adds it and is waiting on review because it touches a workflow file.This issue closes when #258 merges.
ci: run the Azurite storage tests in the build-and-test job (#258)
mwg-bender commentedon Nov 28, 2026
#258 merged as ea40dc0 and its commit runs the Azurite tests in
build-and-test(green on 1a82564), which was the last open item in the disposition above. Closing.