Skip to content

fix(scorecard): use resolveMetricTranslation in drilldown header#3101

Merged
djanickova merged 1 commit into
redhat-developer:mainfrom
djanickova:scorecard-drilldown-table-title-fix
May 12, 2026
Merged

fix(scorecard): use resolveMetricTranslation in drilldown header#3101
djanickova merged 1 commit into
redhat-developer:mainfrom
djanickova:scorecard-drilldown-table-title-fix

Conversation

@djanickova
Copy link
Copy Markdown
Member

Hey, I just made a Pull Request!

RHDHBUGS-3119

The drilldown page header was looking up metric.filecheck.codeowners.title directly, which doesn't exist. It fell back to the raw provider title ("File: CODEOWNERS"), which differed from the homepage card title ("File check: codeowners").
Screenshot 2026-05-11 at 13 43 19

The homepage card already used resolveMetricTranslation, which has a template fallback (metric.filecheck.title + name) that produces the correct label. Applying the same function to the drilldown page makes the two titles consistent.
Screenshot 2026-05-11 at 13 43 35

I discovered this during the process of writing new e2e tests for scorecard, so checking the correct title will be covered in these tests.

✔️ 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: Diana Janickova <djanicko@redhat.com>
@rhdh-gh-app
Copy link
Copy Markdown

rhdh-gh-app Bot commented May 11, 2026

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-scorecard workspaces/scorecard/plugins/scorecard patch v2.7.3

@sonarqubecloud
Copy link
Copy Markdown

@djanickova djanickova marked this pull request as ready for review May 11, 2026 14:18
@djanickova djanickova changed the title fix(scorecard): use resolveMetricTranslation in drilldown table fix(scorecard): use resolveMetricTranslation in drilldown header May 11, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.28%. Comparing base (ff3b8ab) to head (fc38cbb).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3101   +/-   ##
=======================================
  Coverage   57.28%   57.28%           
=======================================
  Files        2070     2070           
  Lines       63740    63740           
  Branches    16742    16743    +1     
=======================================
  Hits        36513    36513           
  Misses      26684    26684           
  Partials      543      543           
Flag Coverage Δ *Carryforward flag
adoption-insights 83.58% <ø> (ø) Carriedforward from ff3b8ab
ai-integrations 70.03% <ø> (ø) Carriedforward from ff3b8ab
app-defaults 69.60% <ø> (ø) Carriedforward from ff3b8ab
augment 69.36% <ø> (ø) Carriedforward from ff3b8ab
bulk-import 72.45% <ø> (ø) Carriedforward from ff3b8ab
cost-management 16.49% <ø> (ø) Carriedforward from ff3b8ab
dcm 32.85% <ø> (ø) Carriedforward from ff3b8ab
extensions 61.79% <ø> (ø) Carriedforward from ff3b8ab
global-floating-action-button 73.75% <ø> (ø) Carriedforward from ff3b8ab
global-header 61.68% <ø> (ø) Carriedforward from ff3b8ab
homepage 50.84% <ø> (ø) Carriedforward from ff3b8ab
konflux 91.01% <ø> (ø) Carriedforward from ff3b8ab
lightspeed 70.36% <ø> (ø) Carriedforward from ff3b8ab
mcp-integrations 81.59% <ø> (ø) Carriedforward from ff3b8ab
orchestrator 35.14% <ø> (ø) Carriedforward from ff3b8ab
quickstart 62.64% <ø> (ø) Carriedforward from ff3b8ab
sandbox 79.49% <ø> (ø) Carriedforward from ff3b8ab
scorecard 83.61% <100.00%> (ø)
theme 64.54% <ø> (ø) Carriedforward from ff3b8ab
translations 8.49% <ø> (ø) Carriedforward from ff3b8ab
x2a 16.42% <ø> (ø) Carriedforward from ff3b8ab

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ff3b8ab...fc38cbb. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@Eswaraiahsapram Eswaraiahsapram left a comment

Choose a reason for hiding this comment

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

Thanks @djanickova , looks good to me 🎉

@djanickova djanickova merged commit 367195b into redhat-developer:main May 12, 2026
62 checks passed
lokanandaprabhu pushed a commit to lokanandaprabhu/rhdh-plugins that referenced this pull request May 14, 2026
…r#3101)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants