Extend model so we can represent fact retrievers in the UI

Signed-off-by: sblausten <sam@roadie.io>
This commit is contained in:
sblausten
2022-07-06 13:46:10 +02:00
parent e27874a203
commit d6ab0613a3
3 changed files with 9 additions and 0 deletions
@@ -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',
@@ -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',