Files
backstage/.changeset/tough-seahorses-learn.md
T
Niklas Aronsson c0352bbc69 Bazaar: Link to the member user catalog entity
If the optional user entity ref is available the link for a member will
point to the backstage catalog page for the user. Otherwise it will
default to the current "https://github.com/${displayName}".

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
2022-10-04 14:23:12 +02:00

745 B

@backstage/plugin-bazaar-backend
@backstage/plugin-bazaar-backend
minor

BREAKING The bazaar-backend createRouter now requires that the identityApi is passed to the router.

These changes are required to packages/backend/src/plugins/bazaar.ts

The user entity ref is now added to the members table and is taken from the requesting user using the identityApi.

import { PluginEnvironment } from '../types';
import { createRouter } from '@backstage/plugin-bazaar-backend';
import { Router } from 'express';

export default async function createPlugin(
  env: PluginEnvironment,
): Promise<Router> {
  return await createRouter({
    logger: env.logger,
    config: env.config,
    database: env.database,
+   identity: env.identity,
  });
}