@@ -30,6 +30,9 @@ app:
|
||||
config:
|
||||
showAggregateMembersToggle: true
|
||||
initialRelationAggregation: aggregated
|
||||
# - entity-card:org/ownership:
|
||||
# config:
|
||||
# entityFilterKind: ['Component', 'API', 'Resource', 'System']
|
||||
|
||||
# - apis.plugin.graphiql.browse.gitlab: true
|
||||
# - graphiql-endpoint:graphiql/gitlab: true
|
||||
|
||||
@@ -65,6 +65,7 @@ const EntityOwnershipCard = EntityCardBlueprint.makeWithOverrides({
|
||||
initialRelationAggregation: z =>
|
||||
z.enum(['direct', 'aggregated']).optional(),
|
||||
showAggregateMembersToggle: z => z.boolean().optional(),
|
||||
entityFilterKind: z => z.array(z.string()).optional(),
|
||||
},
|
||||
},
|
||||
factory(originalFactory, { config }) {
|
||||
@@ -79,6 +80,9 @@ const EntityOwnershipCard = EntityCardBlueprint.makeWithOverrides({
|
||||
? undefined
|
||||
: !config.showAggregateMembersToggle
|
||||
}
|
||||
entityFilterKind={
|
||||
config.entityFilterKind ?? ['Component', 'API', 'System']
|
||||
}
|
||||
/>
|
||||
)),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user