Skip to content

fix(tests): Remove redundant type filters after capture_items with args - #6867

Merged
sentrivana merged 2 commits into
masterfrom
ivana/remove-extra-capture-items-filtering
Jul 27, 2026
Merged

fix(tests): Remove redundant type filters after capture_items with args#6867
sentrivana merged 2 commits into
masterfrom
ivana/remove-extra-capture-items-filtering

Conversation

@sentrivana

@sentrivana sentrivana commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

capture_items already filters by type if provided as arg(s), so the subsequent if item.type == "xxx" in list comprehensions was redundant.

sentrivana and others added 2 commits July 23, 2026 14:25
…tems calls

capture_items already filters by type at capture time, so the subsequent
`if item.type == "xxx"` in list comprehensions was redundant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

95315 passed | ⏭️ 6340 skipped | Total: 101655 | Pass Rate: 93.76% | Execution Time: 336m 8s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2508 uncovered lines.
✅ Project coverage is 89.69%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    89.65%    89.69%    +0.04%
==========================================
  Files          193       193         —
  Lines        24324     24324         —
  Branches      8572      8572         —
==========================================
+ Hits         21807     21816        +9
- Misses        2517      2508        -9
- Partials      1395      1393        -2

Generated by Codecov Action

@sentrivana
sentrivana marked this pull request as ready for review July 23, 2026 14:39
@sentrivana
sentrivana requested a review from a team as a code owner July 23, 2026 14:39
@sentrivana
sentrivana merged commit 93c430b into master Jul 27, 2026
146 checks passed
@sentrivana
sentrivana deleted the ivana/remove-extra-capture-items-filtering branch July 27, 2026 10:55
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
…args (getsentry#6867)

`capture_items` already filters by type if provided as arg(s), so the
subsequent `if item.type == "xxx"` in list comprehensions was redundant.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants