Skip to content

Commit 96cf8d4

Browse files
authored
Merge pull request #1337 from awanlin/topic/nfs-migration
Completed migration
2 parents c4aadfa + 3fafb70 commit 96cf8d4

26 files changed

+689
-1168
lines changed

app-config.yaml

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
app:
22
title: Backstage Demo
33
baseUrl: http://localhost:3000
4+
# Automatically discover and load all installed Backstage frontend packages
5+
packages: all
6+
extensions:
7+
# Disable the built-in NavItemBlueprint so the catalog page's CategoryIcon
8+
# is used instead (the built-in nav item uses HomeIcon which takes priority)
9+
- nav-item:catalog: false
10+
- catalog-filter:catalog/list:
11+
config:
12+
# Replaces initiallySelectedFilter="all" from the legacy CatalogIndexPage
13+
initialFilter: all
14+
# TODO(awanlin): initiallySelectedNamespaces={['default']} has no equivalent
15+
# config in catalog-filter:catalog/namespace yet (configInput is empty).
16+
- entity-card:catalog/about:
17+
config:
18+
type: info
19+
- entity-card:catalog-graph/relations:
20+
config:
21+
type: content
22+
filter:
23+
$not: { kind: { $in: [Group, User] } }
24+
- entity-card:org/ownership:
25+
config:
26+
type: content
27+
filter: { kind: { $in: [Group, User] } }
28+
- entity-card:api-docs/provided-apis:
29+
config:
30+
filter: { spec.providesApis: { $exists: true } }
31+
- entity-card:api-docs/consumed-apis:
32+
config:
33+
filter: { spec.consumesApis: { $exists: true } }
34+
- entity-card:catalog/depends-on-components:
35+
config:
36+
filter: { spec.dependsOn: { $exists: true } }
37+
- entity-card:catalog/depends-on-resources:
38+
config:
39+
filter: { spec.dependsOn: { $exists: true } }
40+
# TODO(awanlin): entity-content:catalog/dependencies does not exist in NFS yet.
41+
# The legacy EntityDependenciesPage (Dependencies tab) has no equivalent entity-content
42+
# extension in @backstage/plugin-catalog/alpha. Track upstream:
43+
# https://github.com/backstage/backstage/issues
44+
- entity-content:techdocs:
45+
config:
46+
title: Docs
47+
# TODO(awanlin): entity-card:catalog/has-subcomponents cannot be filtered via
48+
# config — subcomponents declare spec.subcomponentOf on themselves, so the
49+
# parent entity has no spec field to filter against. Requires a code-based filter.
450
support:
551
url: https://github.com/backstage/backstage/issues
652
items:
@@ -116,6 +162,11 @@ catalog:
116162
rules:
117163
- allow: [Template]
118164
providers:
165+
backstageOpenapi:
166+
plugins:
167+
- catalog
168+
- scaffolder
169+
- search
119170
github:
120171
backstageRepo:
121172
organization: 'backstage'
@@ -199,8 +250,6 @@ events:
199250
github:
200251
webhookSecret: ${GITHUB_WEBHOOK_SECRET}
201252

202-
# TODO(awanlin): enable when https://github.com/backstage/backstage/pull/33344
203-
# is merged and released, likely with `1.49.0`
204-
# mcpActions:
205-
# name: 'Backstage Demo MCP Server'
206-
# description: 'Tools for interacting with the Backstage Demo MCP Server'
253+
mcpActions:
254+
name: 'Backstage Demo MCP Server'
255+
description: 'Tools for interacting with the Backstage Demo MCP Server'

knip.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,35 @@
33
"ignore": [
44
"**/setupTests.ts",
55
"**/.eslintrc.js",
6-
"**/config.d.ts",
76
"packages/backend/src/instrumentation.js"
87
],
98
"ignoreDependencies": [
10-
"better-sqlite3",
119
"app",
1210
"@backstage/cli-defaults",
1311
"@testing-library/jest-dom",
14-
"webpack-env",
15-
"lint-staged",
1612
"@types/lodash",
1713
"@types/d3",
18-
"@types/glob",
1914
"@opentelemetry/auto-instrumentations-node",
2015
"@opentelemetry/exporter-prometheus",
2116
"@opentelemetry/exporter-trace-otlp-http",
2217
"@opentelemetry/sdk-node",
23-
"@opentelemetry/sdk-trace-node"
18+
"@opentelemetry/sdk-trace-node",
19+
"@backstage-community/plugin-cost-insights",
20+
"@backstage-community/plugin-explore",
21+
"@backstage-community/plugin-github-actions",
22+
"@backstage-community/plugin-tech-radar",
23+
"@backstage-community/plugin-todo",
24+
"@backstage/plugin-api-docs",
25+
"@backstage/plugin-app-visualizer",
26+
"@backstage/plugin-catalog-graph",
27+
"@backstage/plugin-kubernetes",
28+
"@backstage/plugin-mui-to-bui",
29+
"@backstage/plugin-scaffolder",
30+
"@backstage/plugin-search-react",
31+
"@backstage/plugin-techdocs",
32+
"@backstage/plugin-techdocs-react",
33+
"backstage-plugin-techdocs-addon-mermaid",
34+
"react-router"
2435
],
2536
"ignoreBinaries": ["docker-compose"]
2637
}

packages/app-migrated/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@
2323
"@backstage/frontend-plugin-api": "backstage:^",
2424
"@backstage/integration-react": "backstage:^",
2525
"@backstage/plugin-api-docs": "backstage:^",
26+
"@backstage/plugin-app": "backstage:^",
2627
"@backstage/plugin-app-react": "backstage:^",
28+
"@backstage/plugin-app-visualizer": "backstage:^",
2729
"@backstage/plugin-catalog": "backstage:^",
2830
"@backstage/plugin-catalog-graph": "backstage:^",
2931
"@backstage/plugin-catalog-react": "backstage:^",
3032
"@backstage/plugin-home": "backstage:^",
33+
"@backstage/plugin-home-react": "backstage:^",
3134
"@backstage/plugin-kubernetes": "backstage:^",
35+
"@backstage/plugin-mui-to-bui": "backstage:^",
3236
"@backstage/plugin-notifications": "backstage:^",
3337
"@backstage/plugin-org": "backstage:^",
3438
"@backstage/plugin-scaffolder": "backstage:^",
@@ -43,6 +47,7 @@
4347
"@backstage/ui": "backstage:^",
4448
"@material-ui/core": "^4.11.0",
4549
"@material-ui/icons": "^4.9.1",
50+
"@remixicon/react": "^4.6.0",
4651
"backstage-plugin-techdocs-addon-mermaid": "^0.26.0",
4752
"react": "^18.2.0",
4853
"react-dom": "^18.2.0",

0 commit comments

Comments
 (0)