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

Adding support --order and --order_by for list operations #506

Merged

Conversation

amisiorek-akamai
Copy link
Contributor

📝 Description

Adds --order_by and --order to filtering operations.

✔️ How to Test

Tested using command line.

Ex.
linode-cli linodes list --order_by label --order desc
linode-cli linodes list --order_by label

@amisiorek-akamai amisiorek-akamai requested a review from a team as a code owner August 9, 2023 15:56
@amisiorek-akamai amisiorek-akamai changed the title Add order by and order flag Adding support --order and --order_by for list operations Aug 9, 2023
@ykim-akamai
Copy link
Contributor

Looks like unit tests and lint are failing. Tests might need to be updated

Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

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

Great work, this seems to work well in my local testing! Just a few small code suggestions and a few missing tests and we should be good to go!

linodecli/api_request.py Outdated Show resolved Hide resolved
linodecli/api_request.py Outdated Show resolved Hide resolved
tests/unit/test_api_request.py Show resolved Hide resolved
Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

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

LGTM!

@lgarber-akamai lgarber-akamai requested a review from a team August 14, 2023 14:13
@zliang-akamai
Copy link
Member

there seem to be a large conflict to solve...

@lgarber-akamai
Copy link
Contributor

Looks like the conflicts are related to the refactors I made to the parse_args function: ba57de8

@amisiorek-akamai
Copy link
Contributor Author

Just gonna quickly check that the functionality still remains, I see that we just split up parse_args to be a bit neater so shouldn't impact either PR

@amisiorek-akamai amisiorek-akamai merged commit 6a088ac into linode:dev Aug 14, 2023
6 checks passed
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.

4 participants