chore(scorecard): version:bump to v1.49.3#2697
chore(scorecard): version:bump to v1.49.3#2697Eswaraiahsapram wants to merge 2 commits intoredhat-developer:mainfrom
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
Review Summary by QodoBackstage version bump to v1.49.3 with type safety improvements
WalkthroughsDescription• Upgrade Backstage dependencies to v1.49.3 across all packages • Add TypeScript type safety improvements to permission rules • Remove deprecated variant="gridItem" props from entity cards • Update dev module configuration and API exports Diagramflowchart LR
A["Version Update<br/>1.45.2 → 1.49.3"] --> B["Backstage Dependencies<br/>Updated"]
B --> C["Backend Packages"]
B --> D["Frontend Packages"]
C --> E["Permission Rules<br/>Type Safety"]
D --> F["Entity Cards<br/>Props Cleanup"]
E --> G["TypeScript<br/>5.3.0 → 5.8.0"]
F --> H["Dev Module<br/>Config Fix"]
File Changes1. workspaces/scorecard/backstage.json
|
Code Review by Qodo
1. Permission rule cast bypass
|
a05b1fa to
f8cd8e5
Compare
|
Rebased this PR to rerun sonarqube check after #2613 was now merged. |
workspaces/scorecard/plugins/scorecard-backend/src/permissions/permissionUtils.ts
Outdated
Show resolved
Hide resolved
| } as any) as unknown as PermissionRule< | ||
| Metric, | ||
| ScorecardFilter, | ||
| typeof RESOURCE_TYPE_SCORECARD_METRIC, | ||
| HasMetricIdParams |
There was a problem hiding this comment.
@debsmita1 Removing this causes a TypeScript error.
There was a problem hiding this comment.
With the current @backstage/plugin-permission-node typings, the resourceRef overload treats rule params as undefined.
When I tried fixing it using proper generics, it resulted in a TS2589 (excessively deep instantiation) error.
So this cast is needed here to make it work, and it’s scoped only to this call.
f8cd8e5 to
0a0e7f9
Compare
|



Hey, I just made a Pull Request!
Fix
✔️ Checklist