RHIDP-14173: Implement scalar aggregation KPI types#3571
Conversation
|
This pull request adds a new top-level directory under |
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
|
🤖 Finished Review · ✅ Success · Started 5:02 PM UTC · Completed 5:19 PM UTC |
ReviewFindingsLow
Previous runReviewFindingsMedium
Low
Previous run (2)ReviewFindingsMedium
Low
Labels: PR implements new scalar aggregation KPI types as a feature enhancement to the scorecard workspace. |
22368af to
5a7cfb0
Compare
|
🤖 Review · ❌ Terminated · Started 5:31 PM UTC · Ended 5:44 PM UTC |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3571 +/- ##
==========================================
+ Coverage 54.19% 54.26% +0.06%
==========================================
Files 2303 2309 +6
Lines 88305 88434 +129
Branches 24590 24630 +40
==========================================
+ Hits 47858 47989 +131
+ Misses 40238 40236 -2
Partials 209 209
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
🤖 Finished Review · ✅ Success · Started 5:31 PM UTC · Completed 5:44 PM UTC |
…dStatusScore` Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
… safety and improved structure Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
…dKpi` across tests and configurations Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
5a7cfb0 to
53fdb59
Compare
|
|
🤖 Finished Review · ✅ Success · Started 1:04 PM UTC · Completed 1:17 PM UTC |



Hey, I just made a Pull Request!
Implemented logic to support the following aggregate metric types:
average,sum,max,min, andcountfor Scorecard aggregated KPI cards.This PR for:
✔️ Checklist
How to test
Preparing
app-config.local.yamladd new aggregation types underscorecard.aggregationKPIs(example added to theapp-config.yaml):Testing
Get aggregation result when
sumaggregation type was used (totalOpenBugs):Get aggregation result when
averageaggregation type was used (avgOpenPrs):Get aggregation result when
countaggregation type was used (entitiesWithOpenIssues):Get aggregation result when
maxaggregation type was used (maxOpenPrs):Get aggregation result when
minaggregation type was used (minOpenPrs):Get aggregation results when some entities lack values due to an error
The environment must contain a mix of entities: some with valid values for aggregation, and others without values to simulate an error state.
Use one of the proposed requests below to confirm that:
Get aggregation results when all entities lack values due to an error
The environment must contain a all of entities without values to simulate an error state.
Use one of the proposed requests below to confirm that:
When the threshold is incorrectly configured for new aggregation types
Configure a threshold with incorrect ranges for a new aggregation type. The application is expected to throw an error upon startup.
For example:
When the threshold is correctly configured for new aggregation types
A correctly configured threshold should be present in the response under
result.thresholds. If no threshold is configured underapp-config.yaml, the default threshold should be used.When a new aggregation type is configured for a boolean provider
When a metricId for a boolean metric provider is supplied, an error should be thrown when the application starts up.
For example: