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

24.11.x Fixes denylist_channels channel bug 🐛 #14431

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

jezdez
Copy link
Member

@jezdez jezdez commented Dec 9, 2024

Description

Fix #14403
Refs #14405

Checklist - did you ...

  • 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?

* 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]>
@jezdez jezdez changed the base branch from main to 24.11.x December 9, 2024 16:11
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Dec 9, 2024
@jezdez jezdez marked this pull request as ready for review December 9, 2024 16:11
@jezdez jezdez requested a review from a team as a code owner December 9, 2024 16:11
@jezdez jezdez added this to the 24.11.x milestone Dec 9, 2024
@jezdez jezdez mentioned this pull request Dec 9, 2024
55 tasks
kenodegard
kenodegard previously approved these changes Dec 9, 2024
Copy link

codspeed-hq bot commented Dec 9, 2024

CodSpeed Performance Report

Merging #14431 will not alter performance

Comparing denylist-bugfix-24.11.x (7b27369) with 24.11.x (758eeff)

Summary

✅ 21 untouched benchmarks

@jezdez jezdez changed the base branch from 24.11.x to main December 9, 2024 18:37
@jezdez jezdez dismissed stale reviews from ForgottenProgramme and kenodegard December 9, 2024 18:37

The base branch was changed.

@jezdez jezdez changed the base branch from main to 24.11.x December 9, 2024 18:37
@jezdez jezdez closed this Dec 9, 2024
@jezdez jezdez reopened this Dec 9, 2024
@jezdez jezdez merged commit a83e9f3 into 24.11.x Dec 10, 2024
62 checks passed
@jezdez jezdez deleted the denylist-bugfix-24.11.x branch December 10, 2024 08:22
@jezdez jezdez mentioned this pull request Dec 12, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

denylist_channels does not seem to work
5 participants