Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@backstage/plugin-catalog-unprocessed-entities

Package Overview
Dependencies
Maintainers
0
Versions
523
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/plugin-catalog-unprocessed-entities

  • 0.2.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12K
increased by13.07%
Maintainers
0
Weekly downloads
 
Created
Source

Catalog Unprocessed Entities

Features

Frontend plugin to view unprocessed entities.

Failed Entities

You can see entities that are in a failed state:

Example of failed entities tab

Pending Entities

You can see entities that are in a pending state:

Example of pending entities tab

Raw View

In either of the failed or pending tabs you have the option to see the raw entity as JSON:

Example of raw entity

Requirements

Requires the @backstage/plugin-catalog-backend-module-unprocessed module to be installed.

Installation

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 />}
/>;

Customization

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 }) {
    /* ... */
  },
});

Getting started

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.

FAQs

Package last updated on 21 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc