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

Allow sorting of roles via an arbitrary field #496

Merged
merged 1 commit into from
Jul 30, 2023
Merged

Conversation

synfinatic
Copy link
Owner

Add --sort and --reverse to the list command to enable sorting by any available field and reverse sorting. Sorting always happens alphabetically and is case-sensitive.

AccountIds are also now always presented with leading zeros as appropriate now.

Fixes #466

@codecov
Copy link

codecov bot commented Jul 30, 2023

Codecov Report

Merging #496 (afbaaf9) into main (69a81d0) will increase coverage by 0.10%.
The diff coverage is 88.46%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #496      +/-   ##
==========================================
+ Coverage   77.79%   77.89%   +0.10%     
==========================================
  Files          24       24              
  Lines        2756     2782      +26     
==========================================
+ Hits         2144     2167      +23     
- Misses        543      545       +2     
- Partials       69       70       +1     
Files Changed Coverage Δ
sso/roles.go 89.54% <88.46%> (-0.09%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69a81d0...afbaaf9. Read the comment docs.

@synfinatic synfinatic force-pushed the list-sorting branch 2 times, most recently from ba37f6f to 9fdbdf3 Compare July 30, 2023 16:54
Add `--sort` and `--reverse` to the `list` command to enable
sorting by any available field and reverse sorting.  Sorting
always happens alphabetically and is case-sensitive.

AccountIds are also now always presented with leading zeros
as appropriate now.

Improve unit tests for AccountId's with a leading zero

Fixes #466
@synfinatic synfinatic merged commit 51809a6 into main Jul 30, 2023
@synfinatic synfinatic deleted the list-sorting branch July 30, 2023 17:18
@synfinatic synfinatic mentioned this pull request Jul 30, 2023
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.

Sort list output by account alias
1 participant