Skip to content

RHINENG-31600: fix(cost-management): fix scoped RBAC catalog fetch and authorize batching - #5660

Open
PreetiW wants to merge 2 commits into
redhat-developer:mainfrom
PreetiW:fix/cost-management-rbac-catalog-and-authorize-batching
Open

PreetiW wants to merge 2 commits into
redhat-developer:mainfrom
PreetiW:fix/cost-management-rbac-catalog-and-authorize-batching

Conversation

@PreetiW

@PreetiW PreetiW commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

fix scoped RBAC catalog fetch and authorize batching
Use direct HCC resource-type URLs when a token is present so backend catalog lookups stop 404ing, and chunk project permission authorize calls to avoid RBAC 413s on large cluster×project products. Add unit tests for both paths.

Jira:- https://redhat.atlassian.net/browse/RHINENG-31600

✔️ 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)

…d authorize batching

Use direct HCC resource-type URLs when a token is present so backend catalog
lookups stop 404ing, and chunk project permission authorize calls to avoid
RBAC 413s on large cluster×project products. Add unit tests for both paths.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown
Contributor

This pull request adds a new top-level directory under workspaces/. Please follow Submitting a Pull Request for a New Workspace in CONTRIBUTING.md.

@rhdh-gh-app

rhdh-gh-app Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Unexpected Changesets

The following changeset(s) reference packages that have not been changed in this PR:

  • /home/runner/work/rhdh-plugins/rhdh-plugins/workspaces/cost-management/.changeset/sharp-months-create.md: @red-hat-developer-hub/plugin-cost-management

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

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/plugin-cost-management-backend workspaces/cost-management/plugins/cost-management-backend patch v2.4.2
@red-hat-developer-hub/plugin-cost-management-common workspaces/cost-management/plugins/cost-management-common patch v2.4.2

@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 65.96%. Comparing base (98dcc7a) to head (3108f12).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5660      +/-   ##
==========================================
+ Coverage   65.87%   65.96%   +0.08%     
==========================================
  Files        2803     2803              
  Lines      112811   112833      +22     
  Branches    31695    31704       +9     
==========================================
+ Hits        74317    74429     +112     
+ Misses      37940    37850      -90     
  Partials      554      554              
Flag Coverage Δ *Carryforward flag
adoption-insights 88.86% <ø> (ø) Carriedforward from fe87ca1
ai-integrations 90.86% <ø> (ø) Carriedforward from fe87ca1
app-defaults 77.25% <ø> (ø) Carriedforward from fe87ca1
augment 46.67% <ø> (ø) Carriedforward from fe87ca1
boost 93.82% <ø> (ø) Carriedforward from fe87ca1
bulk-import 73.13% <ø> (ø) Carriedforward from fe87ca1
cost-management 17.69% <95.23%> (+4.13%) ⬆️
dcm 74.35% <ø> (ø) Carriedforward from fe87ca1
e2e-adoption-insights 60.16% <ø> (ø) Carriedforward from fe87ca1
e2e-extensions 62.87% <ø> (ø) Carriedforward from fe87ca1
e2e-global-header 52.43% <ø> (ø) Carriedforward from fe87ca1
e2e-homepage 61.25% <ø> (ø) Carriedforward from fe87ca1
e2e-intelligent-assistant 46.04% <ø> (ø) Carriedforward from fe87ca1
e2e-orchestrator 49.80% <ø> (ø) Carriedforward from fe87ca1
e2e-orchestrator-plugin 49.79% <ø> (ø) Carriedforward from fe87ca1
e2e-quickstart 54.83% <ø> (ø) Carriedforward from fe87ca1
e2e-scorecard 49.88% <ø> (ø) Carriedforward from fe87ca1
e2e-theme 16.43% <ø> (ø) Carriedforward from fe87ca1
extensions 60.42% <ø> (ø) Carriedforward from fe87ca1
global-floating-action-button 71.18% <ø> (ø) Carriedforward from fe87ca1
global-header 69.15% <ø> (ø) Carriedforward from fe87ca1
homepage 86.65% <ø> (ø) Carriedforward from fe87ca1
install-dynamic-plugins 86.58% <ø> (ø) Carriedforward from fe87ca1
intelligent-assistant 79.79% <ø> (ø) Carriedforward from fe87ca1
konflux 91.98% <ø> (ø) Carriedforward from fe87ca1
lightspeed 69.02% <ø> (ø) Carriedforward from fe87ca1
mcp-integrations 84.46% <ø> (ø) Carriedforward from fe87ca1
orchestrator 77.13% <ø> (ø) Carriedforward from fe87ca1
quickstart 65.83% <ø> (ø) Carriedforward from fe87ca1
sandbox 79.56% <ø> (ø) Carriedforward from fe87ca1
scorecard 92.32% <ø> (ø) Carriedforward from fe87ca1
theme 89.01% <ø> (ø) Carriedforward from fe87ca1
translations 7.91% <ø> (ø) Carriedforward from fe87ca1
x2a 80.47% <ø> (ø) Carriedforward from fe87ca1

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


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98dcc7a...3108f12. 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.

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant