Frontend plugin to view unprocessed entities.
You can see entities that are in a failed state:
You can see entities that are in a pending state:
In either of the failed or pending tabs you have the option to see the raw entity as JSON:
Requires the @backstage/plugin-catalog-backend-module-unprocessed
module to be installed.
yarn --cwd packages/app add @backstage/plugin-catalog-unprocessed-entities
Import into your App.tsx
and include into the <FlatRoutes>
component:
import { CatalogUnprocessedEntitiesPage } from '@backstage/plugin-catalog-unprocessed-entities';
//...
<Route
path="/catalog-unprocessed-entities"
element={<CatalogUnprocessedEntitiesPage />}
/>;
If you want to use the provided endpoints in a different way, you can use the ApiRef doing the following:
import { catalogUnprocessedEntitiesApiRef } from '@backstage/plugin-catalog-unprocessed-entities';
import { useApi } from '@backstage/core-plugin-api';
const catalogUnprocessedEntitiesApi = useApi(catalogUnprocessedEntitiesApiRef);
Note that if you are not rendering the CatalogUnprocessedEntitiesPage
in the App.tsx
tree, you will need to export the catalogUnproccessedEntitiesPlugin
from your plugins.ts
file to setup the plugin otherwise you will receive an error like No implementation available for apiRef{plugin.catalog-unprocessed-entities.service}
// In packages/app/src/plugins.ts
...
export { catalogUnprocessedEntitiesPlugin } from '@backstage/plugin-catalog-unprocessed-entities';
If you don't have a plugins.ts
file, you can create it with the path packages/app/src/plugins.ts
and then import it into your App.tsx
:
+ import * as plugins from './plugins';
const app = createApp({
apis,
+ plugins: Object.values(plugins),
bindRoutes({ bind }) {
/* ... */
},
});
Your plugin has been added to the example app in this repository,
meaning you'll be able to access it by running yarn start
in the root directory,
and then navigating to /catalog-unprocessed-entities.
You can also serve the plugin in isolation by running yarn start
in the plugin directory.
This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
It is only meant for local development, and the setup for it can be found inside the /dev directory.