Composability updates for Splunk On-Call plugin

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
Tim Hansen
2021-05-17 11:22:42 -06:00
parent 99dddfb610
commit 8aa0b60257
7 changed files with 97 additions and 57 deletions
+23
View File
@@ -0,0 +1,23 @@
---
'@backstage/plugin-splunk-on-call': minor
---
Updates the Splunk On-Call plugin for the [composability system
migration](https://backstage.io/docs/plugins/composability#porting-existing-plugins).
To upgrade, modify your `EntityPage` to use the updated export names. The
`EntitySplunkOnCallCard` should be wrapped in an `<EntitySwitch>` condition as
shown in the plugin README, which you may already have in place.
```diff
import {
- isPluginApplicableToEntity as isSplunkOnCallAvailable,
+ isSplunkOnCallAvailable,
- SplunkOnCallCard
+ EntitySplunkOnCallCard,
} from '@backstage/plugin-splunk-on-call';
...
- <SplunkOnCallCard entity={entity}>
+ <EntitySplunkOnCallCard />
```