feat: add remote sorting to delegate table #1080
Conversation
@dated Thanks for submitting this pull request, a maintainer will get back to you shortly! |
@alexbarnsley @j-a-m-l @luciorubeens - please review this in the next few days. Be sure to explicitly select labels so I know what's going on. If no reviewer appears after a week, a reminder will be sent out. |
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.
Clicking on the names of the columns doesn't sort them (tested on mainnet and devnet): the request always uses rank:asc
.
* @return {Object[]} | ||
*/ | ||
async fetchDelegates ({ page, limit } = {}) { | ||
async fetchDelegates (options = {}) { |
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.
@dated , I'm curious, why do you prefer using options
instead of destructuring the object here?
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.
Just for conformity in regards to the other methods, such as fetchWalletTransactions
.
@dated Your pull request needs some changes. Please wait for a comment from one of our developers for more information. |
@dated A member has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution! |
@dated Your pull request has been merged and marked as tier 2. It will earn you $50 USD. |
Thanks, @dated |
Proposed changes
Adds remote sorting to the delegate table. Replaces #763
Types of changes
Checklist