-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: 🐛 handle createdAt order by for SQ v19+ #1406
Conversation
Fix offChainAffirmations, instructionAffirmations order by. Handle CREATED_AT order by in getTransactionHistory, getHeldAssets and getHeldNfts by replacing it with CREATED_BLOCK_ID order instead (which is equivalent in SQv19+). Created at ordering is marked as deprecated and will be removed when SQ v18 is no longer supported
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.
I can't view the middleware type on github but the deprecation notes for NftHoldersOrderBy
and AssetHoldersOrderBy
should read
/**
* @deprecated - Removed in SQ v19 updates `CreatedBlockIdAsc` to work instead
*/
CreatedAtAsc = 'CREATED_AT_ASC',
/**
* @deprecated - Removed in SQ v19 updates `CreatedBlockIdDesc` to work instead
*/
CreatedAtDesc = 'CREATED_AT_DESC',
not BlockIdAsc
and BlockIdDesc
Update deprecated notices to include "Created" where needed, e.g. `BlockIdDesc` -> `CreatedBlockIdDesc`
|
/fast-forward |
🎉 This PR is included in version 27.0.3-alpha.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 27.1.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 27.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Fix offChainAffirmations, instructionAffirmations order by. Handle CREATED_AT order by in getTransactionHistory, getHeldAssets and getHeldNfts by replacing it with CREATED_BLOCK_ID order instead (which is equivalent in SQv19+). Created at ordering is marked as deprecated and will be removed when SQ v18 is no longer supported
Breaking Changes
Using
CREATED_AT_{ASC|DESC}
is now deprecated. SQ v19+ will order correctly using Block ID insteadJIRA Link
DA-1434
Checklist