Conversation
…ndexing Port upstream e094092 (block#5765): drop the LIMIT 1000 on get_members so large rosters come back whole, chunk event_mentions inserts at 5000 rows inside one transaction, and move addressable replacement indexing into the replacement transaction so event and index commit or roll back as one unit. Adds get_members_paged for UI pagination plus the upstream 1501-member roster, 11000-tag mention, and replacement-rollback regressions. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: only21mil <only21mil@users.noreply.github.com>
Add the semantic operation map (migrations/operation-map.json + OPERATION_MAP.md) recording origin SHA, hashes, operations, and prerequisites for every fork migration plus dispositions for the 13 upstream-only operations at the pinned upstream commit. Extend the frozen checksum manifest through 0042 via a second ledger, keeping the 0001-0035 file untouched, and teach the admission checker typed empty prerequisites plus duplicate-operation protection with an explicit supersedes escape. Strengthen migration.rs tests: contiguous unique versions with an intentionally approved tail, sqlx checksums recomputed from file bytes, no duplicate table creates or column adds outside the pinned search_tsv chain, and the 0040 stale dependency comment preserved in SQL with its correction locked to the map. No applied SQL bytes changed. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: only21mil <only21mil@users.noreply.github.com>
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.
Summary
Wave 1 P03 lane. Database operations and migration compatibility.
UD-1 ports upstream
e0940927f(block#5765):get_membersreturns the complete roster without theLIMIT 1000cap,event_mentionsinserts chunk at 5000 rows inside one transaction, and addressable replacement indexes mentions in the replacement transaction so event and index commit or roll back together. Addsget_members_pagedfor UI pagination plus the upstream 1501-member roster, 11000-tag mention, and replacement-rollback regressions.MS-2/RB-9 add the semantic operation map (
migrations/operation-map.json+OPERATION_MAP.md) covering all 42 fork migrations and dispositions for the 13 upstream-only operations at the pinned upstream commit. The frozen checksum manifest extends through 0042 via a second ledger, the admission checker accepts typed empty prerequisites and rejects duplicate semantic operations unless declared insupersedes, andmigration.rstests pin contiguous unique versions with an approved tail, recompute SQLx checksums from file bytes, and lock the stale 0040 header comment to its correction beside the SQL. No applied migration bytes changed.Related issue
None found. Tracks wave 1 P03 (UD-1, MS-2, RB-9) of the product completion plan.
Testing
cargo test -p buzz-db: 121 unit tests pass, 0 failurescargo clippy -p buzz-db --all-targets: cleancargo fmt -p buzz-db --check: cleancargo check -p buzz-relay -p buzz-admin: cleanscripts/check-frozen-migrations.py+scripts/test-postgres-test-local.py(14 tests): passscripts/check-postgres-test-discovery.py: pass with 4 new Postgres tests registered