-
Notifications
You must be signed in to change notification settings - Fork 109
chore(scorecard): version bump to v1.51.2 #3284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4baced8
72f512b
8a6f591
d9b5e68
fa64b0c
ab3bb7a
e23dd42
90b8ad7
2162b7c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-dependabot': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-filecheck': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-sonarqube': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-openssf': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-github': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend-module-jira': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-backend': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-common': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard-node': minor | ||
| '@red-hat-developer-hub/backstage-plugin-scorecard': minor | ||
| --- | ||
|
|
||
| Backstage version bump to v1.51.2 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| "version": "1.49.3" | ||
| "version": "1.51.2" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,6 @@ | |
| * limitations under the License. | ||
| */ | ||
|
|
||
| import { Fragment } from 'react'; | ||
| import { | ||
| Sidebar, | ||
| SidebarDivider, | ||
|
|
@@ -26,6 +25,7 @@ | |
| import { NavContentBlueprint } from '@backstage/plugin-app-react'; | ||
| import { SidebarLogo } from './SidebarLogo'; | ||
| import CategoryIcon from '@mui/icons-material/Category'; | ||
| import HomeIcon from '@mui/icons-material/Home'; | ||
| import MenuIcon from '@mui/icons-material/Menu'; | ||
| import GroupIcon from '@mui/icons-material/People'; | ||
| import SearchIcon from '@mui/icons-material/Search'; | ||
|
|
@@ -80,9 +80,7 @@ | |
| export const SidebarContent = NavContentBlueprint.make({ | ||
| params: { | ||
| component: ({ items }) => { | ||
| const { headerItems, mainItems, footerItems } = splitNavItems( | ||
| items as NavItem[], | ||
| ); | ||
| const { headerItems, mainItems } = splitNavItems(items as NavItem[]); | ||
| const mainWithoutMyGroups = mainItems.filter( | ||
| item => | ||
| !item.to.includes('my-groups') && | ||
|
|
@@ -101,48 +99,41 @@ | |
| </> | ||
| )} | ||
| <SidebarGroup label="Menu" icon={<MenuIcon />}> | ||
| <SidebarItem icon={HomeIcon} to="/" text="Home" /> | ||
| <SidebarItem icon={CategoryIcon} to="/catalog" text="Catalog" /> | ||
| <MyGroupsSidebarItem | ||
| singularTitle="My Group" | ||
| pluralTitle="My Groups" | ||
| icon={GroupIcon} | ||
| /> | ||
| <SidebarScrollWrapper> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [low] edge-case The filter |
||
| {mainWithoutMyGroups.length === 0 ? ( | ||
| <MyGroupsSidebarItem | ||
| singularTitle="My Group" | ||
| pluralTitle="My Groups" | ||
| icon={GroupIcon} | ||
| /> | ||
| ) : ( | ||
| mainWithoutMyGroups.map((item, index) => ( | ||
| <Fragment key={`main-${index}`}> | ||
| <SidebarItem | ||
| to={item.to} | ||
| text={item.text} | ||
| title={item.title} | ||
| icon={ | ||
| item.to.includes('/catalog') ? CategoryIcon : item.icon | ||
| } | ||
| /> | ||
| {index === 0 && ( | ||
| <MyGroupsSidebarItem | ||
| singularTitle="My Group" | ||
| pluralTitle="My Groups" | ||
| icon={GroupIcon} | ||
| /> | ||
| )} | ||
| </Fragment> | ||
| )) | ||
| )} | ||
| {mainWithoutMyGroups | ||
| .filter( | ||
| item => | ||
| !item.to.includes('/catalog') && | ||
| item.to !== '/' && | ||
| item.to !== '/home', | ||
| ) | ||
| .map((item, index) => ( | ||
| <SidebarItem | ||
| key={`main-${index}`} | ||
|
Check warning on line 119 in workspaces/scorecard/packages/app/src/modules/nav/Sidebar.tsx
|
||
| to={item.to} | ||
| text={item.text} | ||
| title={item.title} | ||
| icon={item.icon} | ||
| /> | ||
| ))} | ||
| </SidebarScrollWrapper> | ||
| </SidebarGroup> | ||
| <SidebarSpace /> | ||
| {footerItems.length > 0 && ( | ||
| <> | ||
| <SidebarDivider /> | ||
| <SidebarGroup | ||
| label="Settings" | ||
| icon={<UserSettingsSignInAvatar />} | ||
| > | ||
| <SidebarSettings /> | ||
| </SidebarGroup> | ||
| </> | ||
| )} | ||
| <SidebarDivider /> | ||
| <SidebarGroup | ||
| label="Settings" | ||
| icon={<UserSettingsSignInAvatar />} | ||
| to="/settings" | ||
| > | ||
| <SidebarSettings /> | ||
| </SidebarGroup> | ||
| </Sidebar> | ||
| ); | ||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[low] auth configuration
The guest auth provider config changes from explicit userEntityRef to guest: {} with environment: development. The RBAC admin config still references user:development/guest. Verify the default guest provider identity in Backstage v1.51.2 matches.
Suggested fix: Confirm that the default guest provider identity resolves to user:development/guest so RBAC admin permissions are preserved.