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

Sorting for peers command #4442

Merged
merged 5 commits into from
Nov 8, 2023
Merged

Conversation

patnir
Copy link
Contributor

@patnir patnir commented Nov 8, 2023

Summary

Since we are displaying a single table, we can sort the output for the follow state.

image

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes

@patnir patnir requested a review from a team as a code owner November 8, 2023 21:48
@patnir patnir closed this Nov 8, 2023
@patnir patnir reopened this Nov 8, 2023
@patnir patnir changed the title Adding index column and sorting by state Sorting for peers command Nov 8, 2023
Copy link
Contributor

@mat-if mat-if left a comment

Choose a reason for hiding this comment

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

minor nit, but good usability win

Comment on lines 21 to 22
...tableFlags,
sort: {
...sort,
exclusive: ['follow'],
},
sort,
Copy link
Contributor

@mat-if mat-if Nov 8, 2023

Choose a reason for hiding this comment

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

I think you can replace L21 and 22 with ...CliUx.ux.table.flags() and can remove the de-structure on L14 since we're not modifying the sort key anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@patnir patnir merged commit 4c02ace into staging Nov 8, 2023
7 checks passed
@patnir patnir deleted the adding-number-and-sorting-to-peers-command branch November 8, 2023 23:21
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.

None yet

2 participants