-
Notifications
You must be signed in to change notification settings - Fork 11.4k
jsonrpc: make coin_api cursors opaque #21137
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's warn people proactively about this change so that they know to update their SDKs.
@@ -868,7 +867,7 @@ impl RpcExampleProvider { | |||
.collect::<Vec<_>>(); | |||
let page = CoinPage { | |||
data: coins, | |||
next_cursor: Some(next), | |||
next_cursor: Some("abcd".to_string()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do the values end up appearing in the examples at all? If so it would be good to use something that's recognisably Base64?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
while it may be base64 encoded, the fact that it is is not part of the api contract as it really does need to be "opaque".
Explicitly make the cursors for get_coins and get_all_coins to be an opaque string instead of an ObjectId encoded as a string.
e7c6fbc
to
62420e7
Compare
Explicitly make the cursors for get_coins and get_all_coins to be an opaque string instead of an ObjectId encoded as a string.
Description
Describe the changes or additions included in this PR.
Test plan
How did you test the new or updated feature?
Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.
Explicitly make the cursors for GetCoins and GetAllCoins to be an opaque string instead of an ObjectId encoded as a string.