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 #290

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Conversation

amirylm
Copy link
Collaborator

@amirylm amirylm commented Nov 24, 2023

AUTO-7516

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

ferglor
ferglor previously approved these changes Nov 24, 2023
Copy link
Collaborator

@ferglor ferglor left a comment

Choose a reason for hiding this comment

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

👍

@amirylm amirylm marked this pull request as ready for review November 24, 2023 18:07
- added struct for encoding: checkResultMsg
- overriden Un/MarshalJSON funcs
- aligned existing tests
- added new tests
@amirylm amirylm force-pushed the AUTO-7516-fix-check-result-regression branch from 01a75f2 to 7fa51db Compare November 27, 2023 15:51
@amirylm amirylm merged commit 0ac4009 into main Nov 27, 2023
5 checks passed
@amirylm amirylm deleted the AUTO-7516-fix-check-result-regression branch November 27, 2023 15:54
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