Skip to content

test(store): a page's cursor never passes the customer's own last change - #2286

Merged
thesyncim merged 1 commit into
mainfrom
test/ai-3495-cursor-customer
Nov 23, 2026
Merged

thesyncim merged 1 commit into
mainfrom
test/ai-3495-cursor-customer

Conversation

@thesyncim

Copy link
Copy Markdown
Member

Changes

  • None to the product code: this adds a test for the cursor a page of changes returns.

Tests

  • TestAPageCursorNeverPassesTheCustomersOwnLastChange: with two customers recording changes, a page for one customer returns the same cursor after the other customer's rows are written. It fails when the customer_id condition is dropped from the cursor query in Changes (cursor 4, want 3).

Follow-up to #2227 (Kanat's R2.1)

Part of AI-3495

A page that is not full moves its cursor to the customer's own last change up to the mark, not to another customer's.
@thesyncim
thesyncim requested a review from kanat November 23, 2026 19:46
@thesyncim thesyncim added the data-layer-review: ready Data layer review fix: passed automated review, merges cleanly, ready for a human review label Nov 23, 2026

@kanat kanat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GO. This is the test row from the #2227 delta-round-2 review (R2.1), word for word. The reviewer ran it there: it fails with customer_id = ? dropped from the cursor query (expected 43, actual 44) and passes on the fixed code. CI is green on this head, integration (store) included.

@thesyncim
thesyncim merged commit cc2d98f into main Nov 23, 2026
13 checks passed
@thesyncim
thesyncim deleted the test/ai-3495-cursor-customer branch November 23, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-layer-review: ready Data layer review fix: passed automated review, merges cleanly, ready for a human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants