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
fix: Hide sunburst on very large repos #2850
fix: Hide sunburst on very large repos #2850
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 #2850 +/- ##
==========================================
- Coverage 98.46% 98.46% -0.01%
==========================================
Files 877 878 +1
Lines 12998 13033 +35
Branches 3420 3432 +12
==========================================
+ Hits 12799 12833 +34
- Misses 195 196 +1
Partials 4 4
... and 1 file with indirect coverage changes
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. Additional details and impacted files@@ Coverage Diff @@
## main #2850 +/- ##
=====================================
Coverage 98.46 98.46
=====================================
Files 877 878 +1
Lines 12998 13033 +35
Branches 3484 3432 -52
=====================================
+ Hits 12799 12833 +34
- Misses 195 196 +1
Partials 4 4
... and 1 file with indirect coverage changes
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 #2850 +/- ##
==========================================
- Coverage 98.46% 98.46% -0.01%
==========================================
Files 877 878 +1
Lines 12998 13033 +35
Branches 3489 3496 +7
==========================================
+ Hits 12799 12833 +34
- Misses 195 196 +1
Partials 4 4
... and 1 file with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
Bundle ReportChanges will increase total bundle size by 5.2kB ⬆️
|
Bundle ReportChanges will increase total bundle size by 5.2kB ⬆️
|
✅ Deploy preview for gazebo ready!Previews expire after 1 month automatically.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #2850 +/- ##
==========================================
- Coverage 98.46% 98.46% -0.01%
==========================================
Files 877 878 +1
Lines 12998 13033 +35
Branches 3484 3432 -52
==========================================
+ Hits 12799 12833 +34
- Misses 195 196 +1
Partials 4 4
... and 1 file with indirect coverage changes
Continue to review full report in Codecov by Sentry.
|
|
||
let displaySunburst = false | ||
const fileCount = data?.branch?.head?.totals?.fileCount | ||
if (typeof fileCount === 'number' && fileCount <= 200_000) { |
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.
should this be 10_000? And maybe we can set to a const to avoid having magic numbers; like MAX_FILES_FOR_SUNBURST
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 good
7b81ba7
to
534b907
Compare
Description
This PR contains a temp fix that hides the sunburst chart if there are more than 200,000 files in a given repo, until we have some more time to further investigate and come up with a solution for this.
Notable Changes
useCoverageTabData
hook200_000