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

fix: 🐛 handle createdAt order by for SQ v19+ #1406

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

polymath-eric
Copy link
Collaborator

@polymath-eric polymath-eric commented Dec 6, 2024

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 instead

JIRA Link

DA-1434

Checklist

  • Updated the Readme.md (if required) ?

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
@polymath-eric polymath-eric requested a review from a team as a code owner December 6, 2024 21:45
Copy link
Collaborator

@F-OBrien F-OBrien left a 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

VictorVicente
VictorVicente previously approved these changes Dec 9, 2024
Update deprecated notices to include "Created" where needed, e.g.
`BlockIdDesc` -> `CreatedBlockIdDesc`
@polymath-eric
Copy link
Collaborator Author

/fast-forward

@polymath-eric polymath-eric merged commit 8260aac into alpha Dec 9, 2024
12 checks passed
@polymath-eric polymath-eric deleted the fix-sq-created-at branch December 9, 2024 23:20
@prashantasdeveloper
Copy link
Collaborator

🎉 This PR is included in version 27.0.3-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@prashantasdeveloper
Copy link
Collaborator

🎉 This PR is included in version 27.1.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@prashantasdeveloper
Copy link
Collaborator

🎉 This PR is included in version 27.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants