-
Notifications
You must be signed in to change notification settings - Fork 109
RHIDP-14172 Refactor average aggregation type for Scorecard card
#3417
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?
Changes from all commits
413b26c
beec54d
8e697eb
ad8ef98
a28750e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| --- | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend': major | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-common': major | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard': major | ||
| --- | ||
|
|
||
| **BREAKING**: Rename aggregation KPI type `average` to `weightedStatusScore`. | ||
|
|
||
| ### App config | ||
|
|
||
| - `scorecard.aggregationKPIs.*.type`: `average` → `weightedStatusScore` | ||
|
|
||
| ### `GET /aggregations/:aggregationId` API | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this changeset is the migration guide for the major bump, should it also list the translation key renames ( |
||
|
|
||
| - `metadata.aggregationType`: `average` → `weightedStatusScore` | ||
| - `result.averageScore` → `result.weightedStatusScore` | ||
| - `result.averageWeightedSum` → `result.weightedStatusSum` | ||
| - `result.averageMaxPossible` → `result.weightedStatusMaxPossible` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,8 +57,8 @@ jira: | |
| scorecard: | ||
| openPrsWeightedKpi: | ||
| title: GitHub Open PRs (weighted health) | ||
| type: average | ||
| description: Weighted health average for open PRs by threshold status across your entities. | ||
| type: weightedStatusScore | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: pre-existing, but since this block was touched anyway - it sits at |
||
| description: Weighted health score for open PRs by threshold status across your entities. | ||
| metricId: github.open_prs | ||
| options: | ||
| statusScores: | ||
|
|
||
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.
[low] scope-creep
The changeset declares major bumps for scorecard-backend-module-github, scorecard-backend-module-jira, and scorecard-node, but the diff contains zero code changes in those three packages and they do not re-export any renamed identifiers.
Suggested fix: Remove those three packages from the changeset unless they re-export renamed types from scorecard-common.