Merge pull request #17125 from dawngerpony/dawngerpony/parent-domain-v1

Allow a domain entity to have an optional domain
This commit is contained in:
Fredrik Adelöw
2024-04-22 17:20:56 +02:00
committed by GitHub
14 changed files with 91 additions and 6 deletions
@@ -1265,6 +1265,7 @@ metadata:
description: Everything about artists
spec:
owner: artist-relations-team
subdomainOf: audio-domain
```
In addition to the [common envelope metadata](#common-to-all-kinds-the-metadata)
@@ -1293,6 +1294,15 @@ but there will always be one ultimate owner.
| ------------------------------------------------------ | ------------------------------------------ | ------------------------------------------------------------------------------- |
| [`Group`](#kind-group) (default), [`User`](#kind-user) | Same as this entity, typically `default` | [`ownerOf`, and reverse `ownedBy`](well-known-relations.md#ownedby-and-ownerof) |
### `spec.subdomainOf` [optional]
An [entity reference](references.md#string-references) to another domain of
which the domain is a part, e.g. `audio`. This field is optional.
| [`kind`](#apiversion-and-kind-required) | Default [`namespace`](#namespace-optional) | Generated [relation](well-known-relations.md) type |
| --------------------------------------- | ------------------------------------------ | ----------------------------------------------------------------------------- |
| [`Domain`](#kind-domain) (default) | Same as this entity, typically `default` | [`partOf`, and reverse `hasPart`](well-known-relations.md#partof-and-haspart) |
## Kind: Location
Describes the following entity kind:
@@ -99,11 +99,12 @@ A relation with a [Domain](descriptor-format.md#kind-domain),
[System](descriptor-format.md#kind-system) or
[Component](descriptor-format.md#kind-component) entity, typically from a
[Component](descriptor-format.md#kind-component),
[API](descriptor-format.md#kind-api), or
[System](descriptor-format.md#kind-system).
[API](descriptor-format.md#kind-api),
[System](descriptor-format.md#kind-system), or
[Domain](descriptor-format.md#kind-domain),
These relations express that a component belongs to a larger component; a
component, API or resource belongs to a system; or that a system is grouped
under a domain.
component, API or resource belongs to a system; that a system is grouped
under a domain; or that a domain belongs to a larger domain.
This relation is commonly based on `spec.system` or `spec.domain`.