-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1566 from alex-mckay/addDefaultFilter
add default entity filter to datadog plugin (new FE sys only)
- Loading branch information
Showing
7 changed files
with
97 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@roadiehq/backstage-plugin-datadog': patch | ||
--- | ||
|
||
Filter entity cards and content to components and resources by default, add documentation on how to override if needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 19 additions & 18 deletions
37
plugins/frontend/backstage-plugin-datadog/src/alpha/entityCards.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
plugins/frontend/backstage-plugin-datadog/src/alpha/entityCards.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import React from 'react'; | ||
import { createEntityCardExtension } from '@backstage/plugin-catalog-react/alpha'; | ||
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha'; | ||
|
||
/** | ||
* @alpha | ||
*/ | ||
export const entityDatadogGraphCard = createEntityCardExtension({ | ||
export const entityDatadogGraphCard = EntityCardBlueprint.make({ | ||
name: 'datadog-graph', | ||
loader: () => | ||
import('../components/GraphWidget').then(m => <m.GraphWidget />), | ||
params: { | ||
filter: 'kind:component,resource', | ||
loader: () => | ||
import('../components/GraphWidget').then(m => <m.GraphWidget />), | ||
}, | ||
}); |
42 changes: 19 additions & 23 deletions
42
plugins/frontend/backstage-plugin-datadog/src/alpha/entityContent.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters