Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions workspaces/tech-insights/.changeset/bright-lies-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage-community/plugin-tech-insights': patch
---

Update correct param name in README.
6 changes: 3 additions & 3 deletions workspaces/tech-insights/plugins/tech-insights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ If you are using Backstage's [new frontend system](https://backstage.io/docs/fro

#### Creating custom scorecards with TechInsightsScorecardBlueprint

The `TechInsightsScorecardBlueprint` allows you to create custom scorecard content that can be filtered to specific entities. This is useful when you want different scorecards to appear for different entity types or based on entity metadata. The `filter` parameter uses the same entity predicate format as other Backstage entity filters, allowing you to match on `kind`, `metadata`, `spec` fields, and more.
The `TechInsightsScorecardBlueprint` allows you to create custom scorecard content that can be filtered to specific entities. This is useful when you want different scorecards to appear for different entity types or based on entity metadata. The `entityFilter` parameter uses the same entity predicate format as other Backstage entity filters, allowing you to match on `kind`, `metadata`, `spec` fields, and more.

```ts
import { createFrontendModule } from '@backstage/frontend-plugin-api';
Expand All @@ -40,7 +40,7 @@ const techInsightsModule = createFrontendModule({
TechInsightsScorecardBlueprint.make({
name: 'apis',
params: {
filter: { kind: 'api' },
entityFilter: { kind: 'api' },
title: 'API Scorecard',
description: 'Checks specific to API entities',
checkIds: ['apiDefinitionCheck'],
Expand All @@ -49,7 +49,7 @@ const techInsightsModule = createFrontendModule({
TechInsightsScorecardBlueprint.make({
name: 'production-apis',
params: {
filter: { kind: 'api', 'spec.lifecycle': 'production' },
entityFilter: { kind: 'api', 'spec.lifecycle': 'production' },
title: 'Production API Scorecard',
checkIds: ['groupOwnerCheck', 'productionReadinessCheck'],
},
Expand Down
Loading