Extend model so we can represent fact retrievers in the UI
Signed-off-by: sblausten <sam@roadie.io>
This commit is contained in:
+3
@@ -30,6 +30,9 @@ import isEmpty from 'lodash/isEmpty';
|
||||
export const entityMetadataFactRetriever: FactRetriever = {
|
||||
id: 'entityMetadataFactRetriever',
|
||||
version: '0.0.1',
|
||||
title: 'Entity Metadata',
|
||||
description:
|
||||
'Generates facts which indicate the completeness of entity metadata',
|
||||
schema: {
|
||||
hasTitle: {
|
||||
type: 'boolean',
|
||||
|
||||
+3
@@ -29,6 +29,9 @@ import { Entity } from '@backstage/catalog-model';
|
||||
export const entityOwnershipFactRetriever: FactRetriever = {
|
||||
id: 'entityOwnershipFactRetriever',
|
||||
version: '0.0.1',
|
||||
title: 'Entity Ownership',
|
||||
description:
|
||||
'Generates facts which indicate the quality of data in the spec.owner field',
|
||||
entityFilter: [
|
||||
{ kind: ['component', 'domain', 'system', 'api', 'resource', 'template'] },
|
||||
],
|
||||
|
||||
@@ -34,6 +34,9 @@ const techdocsAnnotationFactName =
|
||||
export const techdocsFactRetriever: FactRetriever = {
|
||||
id: 'techdocsFactRetriever',
|
||||
version: '0.0.1',
|
||||
title: 'Tech Docs',
|
||||
description:
|
||||
'Generates facts related to the completeness of techdocs configuration for entities',
|
||||
schema: {
|
||||
[techdocsAnnotationFactName]: {
|
||||
type: 'boolean',
|
||||
|
||||
Reference in New Issue
Block a user