Skip to content

RHIDP-9710 Create aggregated metrics API for Scorecard backend plugin - #2020

Merged
imykhno merged 7 commits into
redhat-developer:mainfrom
imykhno:scorecard-aggregation-improvement
Jan 12, 2026
Merged

RHIDP-9710 Create aggregated metrics API for Scorecard backend plugin#2020
imykhno merged 7 commits into
redhat-developer:mainfrom
imykhno:scorecard-aggregation-improvement

Conversation

@imykhno

@imykhno imykhno commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Improvement aggregation logic after merge the #1984.
In this PR:

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
@rhdh-gh-app

rhdh-gh-app Bot commented Jan 9, 2026

Copy link
Copy Markdown

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

Package Name Package Path Changeset Bump Current Version
app workspaces/scorecard/packages/app none v0.0.0
@red-hat-developer-hub/backstage-plugin-scorecard-backend workspaces/scorecard/plugins/scorecard-backend minor v2.2.0

@dzemanov

Copy link
Copy Markdown
Member

@imykhno can you add changeset?

Comment thread workspaces/scorecard/plugins/scorecard-backend/docs/aggregation.md Outdated
Comment thread workspaces/scorecard/plugins/scorecard-backend/docs/aggregation.md Outdated
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
…ecified

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
@sonarqubecloud

Copy link
Copy Markdown

@dzemanov dzemanov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested that /metrics endpoint returns correctly metrics meta information without scorecard.read permission. Tested that filtering by metricIds and datasource works correctly. Tested you get 400 when you try to filter by both

@imykhno
imykhno merged commit 23e21ad into redhat-developer:main Jan 12, 2026
9 checks passed
@imykhno
imykhno deleted the scorecard-aggregation-improvement branch January 12, 2026 15:01
elai-shalev pushed a commit to elai-shalev/rhdh-plugins that referenced this pull request Jan 21, 2026
…redhat-developer#2020)

* refactor(scorecard): add example entity

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* refactor(scorecard): metric and metrics aggregations endpoints

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* refactor(scorecard): remove unused `listMetricsByDatasource` method

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard): aggregation documentation

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard):  the `/metrics` endpoint and update documentation

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard): remove created RBAC role after all e2e tests

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard): throw 400 if both `metricIds` and `datasource` are specified

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

---------

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
elai-shalev pushed a commit to elai-shalev/rhdh-plugins that referenced this pull request Jan 21, 2026
…redhat-developer#2020)

* refactor(scorecard): add example entity

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* refactor(scorecard): metric and metrics aggregations endpoints

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* refactor(scorecard): remove unused `listMetricsByDatasource` method

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard): aggregation documentation

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard):  the `/metrics` endpoint and update documentation

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard): remove created RBAC role after all e2e tests

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

* fix(scorecard): throw 400 if both `metricIds` and `datasource` are specified

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>

---------

Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants