renamed fields configuration
Signed-off-by: Ladislav Vitásek <vity@vity.cz>
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
'@backstage/plugin-scaffolder': minor
|
||||
---
|
||||
|
||||
Scaffolding - EntityPicker component - now it does not load full entity data, only a specified set - defaults to `['metadata.name', 'metadata.namespace', 'metadata.title', 'kind']`. It can significantly reduce loaded time bigger data set. It's possible to set fields to ignore configure via `fieldsToIgnore` in UI options of the EntityPicker component.
|
||||
Scaffolding - EntityPicker component - now it does not load full entity data, only a specified set - defaults to `['metadata.name', 'metadata.namespace', 'metadata.title', 'kind']`. It can significantly reduce loaded time bigger data set. It's possible to set fields to ignore configure via `fields` in UI options of the EntityPicker component.
|
||||
|
||||
@@ -61,7 +61,7 @@ export const EntityPicker = (props: EntityPickerProps) => {
|
||||
} = props;
|
||||
const catalogFilter = buildCatalogFilter(uiSchema);
|
||||
const defaultKind = uiSchema['ui:options']?.defaultKind;
|
||||
const fieldsToIgnore = uiSchema['ui:options']?.fieldsToIgnore;
|
||||
const fieldsToIgnore = uiSchema['ui:options']?.fields;
|
||||
const defaultNamespace =
|
||||
uiSchema['ui:options']?.defaultNamespace || undefined;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ export const EntityPickerFieldSchema = makeFieldSchemaFromZod(
|
||||
.describe(
|
||||
'DEPRECATED: Use `catalogFilter` instead. List of kinds of entities to derive options from',
|
||||
),
|
||||
fieldsToIgnore: z
|
||||
fields: z
|
||||
.array(z.string())
|
||||
.optional()
|
||||
.describe(
|
||||
|
||||
Reference in New Issue
Block a user