Files
backstage/.changeset/selfish-phones-smoke.md
T
2022-12-21 13:01:44 -08:00

1.2 KiB

@backstage/plugin-scaffolder, @backstage/plugin-scaffolder-backend-module-cookiecutter, @backstage/plugin-scaffolder-backend-module-rails, @backstage/plugin-scaffolder-backend-module-yeoman, @backstage/plugin-scaffolder-backend
@backstage/plugin-scaffolder @backstage/plugin-scaffolder-backend-module-cookiecutter @backstage/plugin-scaffolder-backend-module-rails @backstage/plugin-scaffolder-backend-module-yeoman @backstage/plugin-scaffolder-backend
minor patch patch patch patch

Added catalogFilter field to OwnerPicker and EntityPicker components to support filtering options by any field(s) of an entity.

The allowedKinds field has been deprecated. Use catalogFilter instead. This field allows users to specify a filter on the shape of EntityFilterQuery, which can be passed into the CatalogClient. See examples below:

  • Get all entities of kind Group

    owner:
      title: Owner
      type: string
      description: Owner of the component
      ui:field: OwnerPicker
      ui:options:
        catalogFilter:
          - kind: Group
    
  • Get entities of kind Group and spec.type team

    owner:
      title: Owner
      type: string
      description: Owner of the component
      ui:field: OwnerPicker
      ui:options:
        catalogFilter:
          - kind: Group
            spec.type: team