-
Notifications
You must be signed in to change notification settings - Fork 526
Fix incorrect folder coverage calculation #6614
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
base: main
Are you sure you want to change the base?
Fix incorrect folder coverage calculation #6614
Conversation
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Unexpected ChangesetsThe following changeset(s) reference packages that have not been changed in this PR:
Note that only changes that affect the published package require changesets, for example changes to tests and storybook stories do not require changesets. Changed Packages
|
|
Thanks for the contribution! |
4bbaa99 to
cc5c3e2
Compare
Added notice about limited support for new frontend and hybrid migration setups in the Feedback plugin documentation. Signed-off-by: bhoomiiee <[email protected]> Signed-off-by: Bhoomi <[email protected]>
Signed-off-by: Bhoomi<[email protected]> Signed-off-by: Bhoomi <[email protected]>
Signed-off-by: Bhoomi<[email protected]> Signed-off-by: Bhoomi <[email protected]>
Signed-off-by: Bhoomi <[email protected]>
cc5c3e2 to
ff52c18
Compare
.changeset/config.json
Outdated
| @@ -0,0 +1,11 @@ | |||
| { | |||
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.
This file shouldn't be here
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.
Removed the accidentally added .changeset/config.json file and pushed the fix. Please let me know if anything else is needed.
| '@backstage-community/plugins': patch | ||
| --- | ||
|
|
||
| docs(feedback): add new frontend / hybrid migration notice |
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.
run yarn changeset from the code-coverage workspace instead of the root
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.
I regenerated the changeset from the plugin-code-coverage workspace (not root) and pushed the update. Please let me know if anything else is needed.
|
|
||
| ### Plugin Setup | ||
|
|
||
| ## New Frontend / Hybrid Migration Notice |
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.
these changes aren't expected right?
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.
these changes aren't expected right?
You are right that README change was not intended for this PR. I have reverted it and pushed the update. Thanks for pointing it out.
Signed-off-by: Bhoomi <[email protected]>
Signed-off-by: Bhoomi <[email protected]>
Signed-off-by: Bhoomi <[email protected]>
b6e890b to
9294cd8
Compare
What this PR does
Fixes folder-level coverage calculation in the FileExplorer by computing coverage
from aggregated tracked and missing lines instead of averaging child percentages.
Why
Previously, folder coverage was calculated as a simple average of child coverage
values, which produced incorrect results. This change aligns the folder coverage
with the values shown in the History section.
Formula used
coverage = ((tracked - missing) / tracked) * 100