Fix owner references to guest user

If the user guest is used as an example value of the owner field, we should make sure to specify it as user:guest instead as the default is group.

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-04-22 13:21:33 +02:00
parent d203c9e901
commit 6eaecbd81d
7 changed files with 12 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core': patch
---
Improve owner example value in `MissingAnnotationEmptyState`.
@@ -30,7 +30,7 @@ metadata:
spec:
type: website
lifecycle: production
owner: guest`;
owner: user:guest`;
type Props = {
annotation: string;
@@ -38,7 +38,7 @@ describe('parseEntityYaml', () => {
spec:
type: website
lifecycle: production
owner: guest
owner: user:guest
`,
'utf8',
),
@@ -60,7 +60,7 @@ describe('parseEntityYaml', () => {
spec: {
type: 'website',
lifecycle: 'production',
owner: 'guest',
owner: 'user:guest',
},
}),
]);
+1 -1
View File
@@ -30,7 +30,7 @@ TBD
spec:
type: website
lifecycle: production
owner: guest
owner: user:guest
```
### Standalone app requirements
+1 -1
View File
@@ -9,4 +9,4 @@ metadata:
spec:
type: website
lifecycle: production
owner: guest
owner: user:guest
@@ -10,4 +10,4 @@ metadata:
spec:
type: service
lifecycle: production
owner: guest
owner: user:guest
@@ -5,4 +5,4 @@ metadata:
spec:
type: website
lifecycle: experimental
owner: guest
owner: user:guest