Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid encoding of RetryInterval (2.7.2) #291

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

amirylm
Copy link
Collaborator

@amirylm amirylm commented Nov 24, 2023

AUTO-7516

NOTE this PR is for 2v2.7.2

Motivation

Fixing a breaking change that was introduced when RetryInterval was added to CheckResult struct.

Description

Avoid the encoding and decoding of this property, by overriding MarshalJSON and UnmarshalJSON functions.

Changes

  • added struct for encoding: checkResultMsg
  • overriden Un/MarshalJSON functions
  • aligned existing tests
  • added new tests to ensure that the encoded object is not changed

- added struct for encoding: checkResultMsg
- overriden Un/MarshalJSON funcs
- aligned existing tests
- added new tests
@amirylm amirylm force-pushed the fix-check-result-regression branch from 717f844 to 565ebd3 Compare November 27, 2023 13:19
@amirylm amirylm marked this pull request as ready for review November 27, 2023 13:20
@amirylm amirylm changed the base branch from main to v2.7.2-fix November 27, 2023 14:57
@amirylm amirylm requested a review from infiloop2 November 27, 2023 15:08
@amirylm amirylm merged commit 40dd63d into v2.7.2-fix Nov 27, 2023
@amirylm amirylm deleted the fix-check-result-regression branch November 27, 2023 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants