Skip to content

desk: invalidate cached 9A readbacks when the saved draft revision changes #1227

Backlog

Description

@Pigbibi

Follow-up from #1226 (thread accounts.js:129).

brokerReadback9a now rejects stored readbacks whose saved_revision or identity no longer match the current account configuration. A draft edit, though, increments only the draft revision. buildReadback overlays the draft into the compared saved settings, so if reserved_cash_ratio changes from 0.1 to 0.2, an earlier matching snapshot is still accepted.

Proposed fix: record the readback's saved_settings.draft_revision and draft_status and compare them with the current draft before reusing the saved-layer comparisons. If they differ, downgrade the snapshot to unknown, as is already done for revision and identity mismatches.

The owner decided that P2 findings raised after the last fix round on #1226 are tracked as follow-ups rather than fixed in that PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions