-
Notifications
You must be signed in to change notification settings - Fork 23
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
chore: Remove/replace useCoverageWithFilters #2873
chore: Remove/replace useCoverageWithFilters #2873
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #2873 +/- ##
==========================================
- Coverage 98.48% 98.47% -0.01%
==========================================
Files 880 878 -2
Lines 13037 13026 -11
Branches 3491 3470 -21
==========================================
- Hits 12839 12828 -11
Misses 194 194
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found @@ Coverage Diff @@
## main #2873 +/- ##
==========================================
- Coverage 98.48% 98.47% -0.01%
==========================================
Files 880 878 -2
Lines 13037 13026 -11
Branches 3473 3425 -48
==========================================
- Hits 12839 12828 -11
Misses 194 194
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #2873 +/- ##
==========================================
- Coverage 98.48% 98.47% -0.01%
==========================================
Files 880 878 -2
Lines 13037 13026 -11
Branches 3496 3425 -71
==========================================
- Hits 12839 12828 -11
Misses 194 194
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
Bundle ReportChanges will decrease total bundle size by 599 bytes ⬇️
|
Bundle ReportChanges will decrease total bundle size by 599 bytes ⬇️
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #2873 +/- ##
=====================================
Coverage 98.48 98.48
=====================================
Files 880 878 -2
Lines 13037 13026 -11
Branches 3429 3493 +64
=====================================
- Hits 12839 12828 -11
Misses 194 194
Partials 4 4
Continue to review full report in Codecov by Sentry.
|
✅ Deploy preview for gazebo ready!Previews expire after 1 month automatically.
|
@@ -14,7 +14,7 @@ export function extractCoverageFromResponse( | |||
if (!coverageFile) return null | |||
const lineWithCoverage = keyBy(coverageFile?.coverage, 'line') | |||
const fileCoverage = mapValues(lineWithCoverage, 'coverage') | |||
const coverageTotal = coverageFile?.totals?.coverage |
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.
was this a bug fix too?
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.
Nope, i had originally aliased the field in GQL, this is me removing it now and updating it, with TS makes it easier to find the errors
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.
nice! love it
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.
seems legit, send it
…ts are selected and migrate to TS
eb9eca4
to
5a7e61a
Compare
Description
This PR actually removes the
useCoverageWithFilters
hook instead replacing it's use with the original hook and extending it to support the features that were specific touseCoverageWithFilters
reducing the chances of actually creating a bug and difference between the two (we weren't fetching the same info for the same use 😬)GH codecov/engineering-team#355
Notable Changes
useCoverageWithFilters
useFileWithMainCoverage
to support new casesuseCommitBasedCoverageForFileViewer
to useuseFileWithMainCoverage
... twice