change to ownedKinds, cleanup test file a bit

Signed-off-by: Peter Macdonald <peterm4c@pm.me>
This commit is contained in:
Peter Macdonald
2026-01-15 19:32:22 +01:00
parent 4a1235c878
commit 32f92281ff
3 changed files with 3 additions and 28 deletions
+2 -7
View File
@@ -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',
},
},
],
},