-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fixes denylist_channels
channel bug 🐛
#14405
Conversation
Still needs tests. |
I'm still not sure I like the error message because it's not as informative as it could be. It says what's wrong but does not suggest what the user could do differently. I'd like to add some more information here. I think the message should read something more like:
That is a little long though 😅. I'm open to suggestions for make it more concise. |
CodSpeed Performance ReportMerging #14405 will not alter performanceComparing Summary
|
…h must test multiple commands under similar circumstances
Co-authored-by: Jannis Leidel <[email protected]>
Renamed the function and now have the deprecation warnings in place. |
Co-authored-by: Ken Odegard <[email protected]>
* Rename check_channel_allowlist to validate_channels to better reflect its purpose of validating both allowlist and denylist configurations * Update function to return the validated channels tuple * Update all references in code to use the new name * Update deprecation notice in check_allowlist to reference new name * Fix news entry formatting for consistency Fixes conda#14405
* Rename check_channel_allowlist to validate_channels to better reflect its purpose of validating both allowlist and denylist configurations * Update function to return the validated channels tuple * Update all references in code to use the new name * Update deprecation notice in check_allowlist to reference new name * Fix news entry formatting for consistency Fixes conda#14405
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.
Looks great! Minor suggestions but otherwise this is ready to merge!
Co-authored-by: Ken Odegard <[email protected]>
@travishathaway this also needs removing the |
Huzzah! |
* initial attempt at fixing denylist_channels bug; still needs tests * adding a news file * making sure the validation is applied for each return statement * fixing broken test * adding a new testing module to handle the tests and future tests which must test multiple commands under similar circumstances * suggestions for changes from pull request review * suggestions from pull request review * Apply suggestions from code review Co-authored-by: Jannis Leidel <[email protected]> * more suggestions from pull request review * Update conda/core/index.py Co-authored-by: Ken Odegard <[email protected]> * Move tuple into check_channel_allowlist. * Rename check_channel_allowlist to validate_channels * Rename check_channel_allowlist to validate_channels to better reflect its purpose of validating both allowlist and denylist configurations * Update function to return the validated channels tuple * Update all references in code to use the new name * Update deprecation notice in check_allowlist to reference new name * Fix news entry formatting for consistency Fixes #14405 * Fix lint. * Fix tests. * Minor fix. * The argparse args are an AttrDict and need converting first. --------- Co-authored-by: Jannis Leidel <[email protected]> Co-authored-by: Ken Odegard <[email protected]>
* initial attempt at fixing denylist_channels bug; still needs tests * adding a news file * making sure the validation is applied for each return statement * fixing broken test * adding a new testing module to handle the tests and future tests which must test multiple commands under similar circumstances * suggestions for changes from pull request review * suggestions from pull request review * Apply suggestions from code review Co-authored-by: Jannis Leidel <[email protected]> * more suggestions from pull request review * Update conda/core/index.py Co-authored-by: Ken Odegard <[email protected]> * Move tuple into check_channel_allowlist. * Rename check_channel_allowlist to validate_channels * Rename check_channel_allowlist to validate_channels to better reflect its purpose of validating both allowlist and denylist configurations * Update function to return the validated channels tuple * Update all references in code to use the new name * Update deprecation notice in check_allowlist to reference new name * Fix news entry formatting for consistency Fixes conda#14405 * Fix lint. * Fix tests. * Minor fix. * The argparse args are an AttrDict and need converting first. --------- Co-authored-by: Jannis Leidel <[email protected]> Co-authored-by: Ken Odegard <[email protected]>
* Fixes `denylist_channels` channel bug 🐛 (#14405) * initial attempt at fixing denylist_channels bug; still needs tests * adding a news file * making sure the validation is applied for each return statement * fixing broken test * adding a new testing module to handle the tests and future tests which must test multiple commands under similar circumstances * suggestions for changes from pull request review * suggestions from pull request review * Apply suggestions from code review Co-authored-by: Jannis Leidel <[email protected]> * more suggestions from pull request review * Update conda/core/index.py Co-authored-by: Ken Odegard <[email protected]> * Move tuple into check_channel_allowlist. * Rename check_channel_allowlist to validate_channels * Rename check_channel_allowlist to validate_channels to better reflect its purpose of validating both allowlist and denylist configurations * Update function to return the validated channels tuple * Update all references in code to use the new name * Update deprecation notice in check_allowlist to reference new name * Fix news entry formatting for consistency Fixes #14405 * Fix lint. * Fix tests. * Minor fix. * The argparse args are an AttrDict and need converting first. --------- Co-authored-by: Jannis Leidel <[email protected]> Co-authored-by: Ken Odegard <[email protected]> * changing dependencies in integration test --------- Co-authored-by: Travis Hathaway <[email protected]> Co-authored-by: Ken Odegard <[email protected]>
Description
Fixes: #14403
Checklist - did you ...
news
directory (using the template) for the next release's release notes?Add / update outdated documentation?