-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
catalog-model: make User spec.memberOf theoretically - but not practi…
…cally - optional Signed-off-by: Fredrik Adelöw <freben@gmail.com>
- Loading branch information
Showing
9 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@backstage/plugin-catalog-backend-module-github': patch | ||
'@backstage/plugin-catalog-backend-module-ldap': patch | ||
'@backstage/plugin-catalog-backend-module-msgraph': patch | ||
'@backstage/plugin-org': patch | ||
--- | ||
|
||
Updated the code to handle User kind `spec.memberOf` now being optional. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
'@backstage/catalog-model': minor | ||
--- | ||
|
||
**BREAKING**: The User kind has an updated TypeScript type where `spec.memberOf` | ||
is optional. | ||
|
||
**NOTE HOWEVER**, that this only applies to the TypeScript types `UserEntity` | ||
and `UserEntityV1alpha1`. The catalog validation still requires the field to be | ||
set, even if it's in the form of an empty array. If you try to ingest data that | ||
stops producing this field, those entities _will be rejected_ by the catalog. | ||
The reason for these choices is that consumers will get a long grace period | ||
where old code still can rely on the underlying data being present, giving users | ||
ample time to update before actual breakages could happen. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters