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

Add string equivalent for observation price, bid, ask #11077

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

george-dorin
Copy link
Contributor

@george-dorin george-dorin commented Oct 25, 2023

Due to the increase in the mercury precision enhancedEAMercury observation values no longer fit into int64. Work around this issue by adding the string equivalents of the benchmarkPrice, bid and ask observation values.

@github-actions
Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@george-dorin george-dorin marked this pull request as ready for review October 25, 2023 09:01
@cl-sonarqube-production
Copy link

@cll-gg
Copy link
Contributor

cll-gg commented Oct 26, 2023

LGTM, though I don't like the _string naming too much, but tbh I don't have a good alternative.
Please also update https://www.notion.so/chainlink/031de2eaf17447d3975a746944fe0133?v=552f65951a5845a3b7c88507bb736a71.

AssetSymbol: "USD/LINK",
ObservationBenchmarkPriceString: "111111",
ObservationBidString: "222222",
ObservationAskString: "333333",
Copy link
Contributor

Choose a reason for hiding this comment

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

@george-dorin What is the plan (assuming there is one) for dropping support for the old fields from the proto?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking about this a bit more 🤔 If the current value is garbage, is there any harm in dropping the old field?

Old code would still be sending the old field, so as long as the telemetry pipeline can interpret both we shouldn't have a problem.

Copy link
Contributor

@jmank88 jmank88 Oct 26, 2023

Choose a reason for hiding this comment

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

There is a mechanism for reserving the deprecated fields: https://protobuf.dev/programming-guides/proto3/#deleting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The plan is to reserve them further down the line so we don't have to have two versions of the protobuf in the ingestion server.

@george-dorin george-dorin added this pull request to the merge queue Oct 27, 2023
Merged via the queue into develop with commit e6118da Oct 27, 2023
@george-dorin george-dorin deleted the mercury-obs-as-string-enhancedEAMercury branch October 27, 2023 12:24
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.

4 participants