change to ownedKinds, cleanup test file a bit
Signed-off-by: Peter Macdonald <peterm4c@pm.me>
This commit is contained in:
@@ -65,7 +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(),
|
||||
ownedKinds: z => z.array(z.string()).optional(),
|
||||
},
|
||||
},
|
||||
factory(originalFactory, { config }) {
|
||||
@@ -81,12 +81,7 @@ const EntityOwnershipCard = EntityCardBlueprint.makeWithOverrides({
|
||||
: !config.showAggregateMembersToggle
|
||||
}
|
||||
entityFilterKind={
|
||||
config.entityFilterKind ?? [
|
||||
'Component',
|
||||
'API',
|
||||
'System',
|
||||
'Resource',
|
||||
]
|
||||
config.ownedKinds ?? ['Component', 'API', 'System', 'Resource']
|
||||
}
|
||||
/>
|
||||
)),
|
||||
|
||||
@@ -36,11 +36,6 @@ const items = [
|
||||
{
|
||||
type: 'ownedBy',
|
||||
targetRef: 'group:default/my-team',
|
||||
target: {
|
||||
name: 'my-team',
|
||||
namespace: 'default',
|
||||
kind: 'group',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -56,11 +51,6 @@ const items = [
|
||||
{
|
||||
type: 'ownedBy',
|
||||
targetRef: 'group:default/my-team',
|
||||
target: {
|
||||
name: 'my-team',
|
||||
namespace: 'default',
|
||||
kind: 'group',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -76,11 +66,6 @@ const items = [
|
||||
{
|
||||
type: 'ownedBy',
|
||||
targetRef: 'group:default/my-team',
|
||||
target: {
|
||||
name: 'my-team',
|
||||
namespace: 'default',
|
||||
kind: 'group',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -97,11 +82,6 @@ const items = [
|
||||
{
|
||||
type: 'ownedBy',
|
||||
targetRef: 'group:default/my-team',
|
||||
target: {
|
||||
name: 'my-team',
|
||||
namespace: 'default',
|
||||
kind: 'group',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user