这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@HeavenEvolved
Copy link
Contributor

@HeavenEvolved HeavenEvolved commented Mar 16, 2023

Description

  • Updated conda_argparse.py file to add a new '--reverse' parameter to configure_parser_list function to add reversing functionality as requested in Issue #11954.
  • There were no inherent issues fixed, but a new functionality was added to reverse the output of conda list.

Resolves #11954

Checklist

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

Feel free to suggest any changes that I should make!

Updated conda_argparse.py file to add a new '--reverse' parameter to configure_parser_list function to add reversing functionality as requested in Issue [#11954](#11954 "Issue Link").
Updated main_list.py file to add a new functionality for '--reverse' parameter to add reversing functionality as requested in Issue [#11954](#11954 "Issue Link").
Created News file with information on enhancement added in reference to Issue [#11954](#11954 "Issue Link").
@HeavenEvolved HeavenEvolved requested a review from a team as a code owner March 16, 2023 10:36
@conda-bot
Copy link
Contributor

We require contributors to sign our Contributor License Agreement and we don't have one on file for @HeavenEvolved.

In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature.

@HeavenEvolved HeavenEvolved changed the title Heaven evolved issue#11954 Functionality added as requested in Issue#11954 Mar 16, 2023
Updated main_list.py to remove trailing whitespace.
@HeavenEvolved
Copy link
Contributor Author

HeavenEvolved commented Mar 16, 2023

Hi! This is my first PR ever and I am confused by the pre-commit.ci - pr errors. It says there is an error for trailing-whitespace in main_list.py. I have checked it and there was an extra whitespace at the end, which I have removed. I don't see any other trailing whitespaces remaining anymore but the check still says failure. I can't figure out if it just needs time to update or if the error still exists.

I have also already signed the CLA before starting this PR, so kindly let me know if I need to do it again or if I need to share the signed PDF.

Updated main_list.py to remove trailing whitespace.
@kenodegard
Copy link
Contributor

pre-commit.ci autofix

Copy link
Contributor

@kenodegard kenodegard left a comment

Choose a reason for hiding this comment

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

@HeavenEvolved Thanks for working on this!

Regarding pre-commit CI, I just triggered the auto fix functionality so the whitespace issue should now be resolved.

Regarding your CLA signature, we will review new signatures later today and we'll update this PR when that is completed.

I've left some suggestions, this should be good to go once those are resolved.

HeavenEvolved and others added 5 commits March 16, 2023 19:32
Simplified how args.reverse is used.

Co-authored-by: Ken Odegard <kodegard@anaconda.com>
Changed how the package list is reversed.

Co-authored-by: Ken Odegard <kodegard@anaconda.com>
Removed extra whitespaces.

Co-authored-by: Ken Odegard <kodegard@anaconda.com>
Fixed help message formatting for conda list --reverse.

Co-authored-by: Ken Odegard <kodegard@anaconda.com>
Updated argument information for --reverse by adding a default value.

Co-authored-by: Ken Odegard <kodegard@anaconda.com>
@HeavenEvolved
Copy link
Contributor Author

HeavenEvolved commented Mar 16, 2023

@HeavenEvolved Thanks for working on this!

Regarding pre-commit CI, I just triggered the auto fix functionality so the whitespace issue should now be resolved.

Regarding your CLA signature, we will review new signatures later today and we'll update this PR when that is completed.

I've left some suggestions, this should be good to go once those are resolved.

Thank you @kenodegard for those suggestions! I had completely overlooked some of those, such as, adding the default value through argparse.

Updated News to have simplified text.

Co-authored-by: Ken Odegard <kodegard@anaconda.com>
@HeavenEvolved
Copy link
Contributor Author

Committed the changes to the News document.

kenodegard
kenodegard previously approved these changes Mar 16, 2023
Copy link
Contributor

@kenodegard kenodegard left a comment

Choose a reason for hiding this comment

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

Looks good! We'll get this merged once we process your CLA signature.

@HeavenEvolved
Copy link
Contributor Author

Sounds good!

@kenodegard
Copy link
Contributor

@conda-bot check

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Mar 22, 2023
kenodegard
kenodegard previously approved these changes Mar 22, 2023
@kenodegard kenodegard enabled auto-merge (squash) March 22, 2023 21:11
@kenodegard kenodegard changed the title Functionality added as requested in Issue#11954 Add conda list --reverse argument Mar 22, 2023
@dholth
Copy link
Contributor

dholth commented Mar 23, 2023

This test for conda list was recently updated to check a variety of arguments https://github.com/conda/conda/blob/main/tests/cli/test_conda_argparse.py#L28 ; would it be a good place to add --reverse?

@HeavenEvolved
Copy link
Contributor Author

HeavenEvolved commented Mar 23, 2023

This test for conda list was recently updated to check a variety of arguments https://github.com/conda/conda/blob/main/tests/cli/test_conda_argparse.py#L28 ; would it be a good place to add --reverse?

Not sure if its needed but its a small change and if needed I can make the change. @kenodegard let me know if its needed. I personally don't think there should be any conflicts with any of the display formats, but I will make the changes if needed.

@HeavenEvolved
Copy link
Contributor Author

Any updates on this @kenodegard?

Copy link
Member

@jezdez jezdez left a comment

Choose a reason for hiding this comment

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

It'd be great to have a test case covering this

Adding new reverse argument to testcase.

Co-authored-by: Jannis Leidel <jannis@leidel.info>
auto-merge was automatically disabled March 27, 2023 09:55

Head branch was pushed to by a user without write access

@kenodegard kenodegard requested a review from jezdez April 7, 2023 08:10
kenodegard
kenodegard previously approved these changes Apr 7, 2023
@kenodegard
Copy link
Contributor

pre-commit.ci autofix

@jezdez jezdez merged commit de96334 into conda:main Apr 12, 2023
@HeavenEvolved HeavenEvolved deleted the HeavenEvolved-Issue#11954 branch May 21, 2023 15:55
travishathaway added a commit that referenced this pull request Jun 6, 2023
Co-authored-by: Ken Odegard <kodegard@anaconda.com>
Co-authored-by: Jannis Leidel <jannis@leidel.info>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Travis Hathaway <travis.j.hathaway@gmail.com>
@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed [bot] added once the contributor has signed the CLA locked [bot] locked due to inactivity

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Control order of list when calling conda list

6 participants