Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

[LW] Smile for the snapshot #5145

Merged
merged 2 commits into from
Dec 4, 2020
Merged

Conversation

Jolyon-S
Copy link
Contributor

@Jolyon-S Jolyon-S commented Dec 4, 2020

Goals (and why):
There was yet another edge case where this check was bad. Let's fix it.

Implementation Description (bullets):
Fix the check.

Testing (What was existing testing like? What have you done to improve it?):
Added yet another test.

Concerns (what feedback would you like?):
Make sure we don't mess this up.

Where should we start reviewing?:
ClientLogEvents

Priority (whenever / two weeks / yesterday):
Yesterday 🔥

@changelog-app
Copy link

changelog-app bot commented Dec 4, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

If the lock watch user version is X, and the transaction versions are [Y, Z], and X < Y-1000, then only check that events enclose [Y,Z] instead of [X, Z] (which will always fail).

Check the box to generate changelog(s)

  • Generate changelog entry

Copy link
Contributor

@jeremyk-91 jeremyk-91 left a comment

Choose a reason for hiding this comment

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

🕐 0:04 🏁 0:05

Makes sense. Good spot!

*/
verifyReturnedEventsEnclosesTransactionVersions(
lastKnownVersion
.filter(_unused -> !clearCache())
Copy link
Contributor

Choose a reason for hiding this comment

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

doh

@bulldozer-bot bulldozer-bot bot merged commit 96d48c4 into develop Dec 4, 2020
@bulldozer-bot bulldozer-bot bot deleted the further-further-further-logging branch December 4, 2020 13:49
@svc-autorelease
Copy link
Collaborator

Released 0.276.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants