← Back to Pull requests

networks: keep name and id filters in list() #751

Merged
bardrop merged 2 files (37 lines) on Nov 16, 2026 09:39 UTC
View on GitHub
bardrop bardrop commented on Nov 12, 2026 21:21 UTC
Author

Fixes #748

NetworksManager.list() always did:

filters = kwargs.get("filters", {})
filters["name"] = kwargs.get("names")
filters["id"] = kwargs.get("ids")

So list(filters={"name": "db"}) set name back to None, prepare_filters() dropped it, and the request went out with no filter at all. It also wrote into the caller's dict.

Now the mapping is copied first, and name/id are only set when names/ids are passed (same pattern as ImagesManager.list()).

Tests: two new unit tests in test_networksmanager.py (filters passed through + dict not changed; names/ids combined with other filters). Both fail on main and pass with the fix. pytest podman/tests/unit (402 passed; test_utils.py skipped locally since it needs /etc/os-release), ruff check and ruff format --check clean.

Signed-off-by: Mradul Singh <msingh@dealmeridian.com>

Diff: 37 lines (+34 / -3) across 2 files Reviewer: TomSweeneyRedHat Review duration: 5057m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.26) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.26 · 37 lines diff across 2 files
0.26
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.84 · 2 substantive comment(s)
0.84
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
87%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.218
Real PR Conversation Timeline
6 items
copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 12, 2026 21:21 UTC
Reviewer

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

timcoding1988 timcoding1988 commented on Nov 12, 2026 21:46 UTC
Contributor

if you like to contribute on the issue please make sure assign the issue or at least communicate with @containers/podman-py-maintainers, best to directly communicate on the issues before putting out PRs. Thanks.

bardrop bardrop commented on Nov 12, 2026 22:01 UTC
Author

Thanks, and sorry for jumping straight to a PR. I've left a note on #748 now and will ask on the issue first next time. Happy to change the approach, or close this if someone else is already on it.

TomSweeneyRedHat TomSweeneyRedHat approved these changes on Nov 13, 2026 14:46 UTC
Approved Reviewer

LGTM
Thanks @bardrop

Honny1 Honny1 approved these changes on Nov 16, 2026 09:39 UTC
Approved Reviewer

LGTM

Assignees
bardrop bardrop
Labels
risk: low confidence: 87.1% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 26.2% (LOW) · Higher = larger blast radius
26.2%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 87.1% · Lower = rushed or shallow review
87.1%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 3.4% · Safe to merge
3.4%