Skip to content

Commit 0b1d8dd

Browse files
authored
Fix to management API models reverting addition of read-only property (#19951)
* Removed readonly Signs property to re-align client models. * Regenerate client types. * Applied changes from code review.
1 parent 806fde4 commit 0b1d8dd

File tree

7 files changed

+177
-92
lines changed

7 files changed

+177
-92
lines changed

src/Umbraco.Cms.Api.Management/Mapping/DocumentType/DocumentTypeMapDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private void Map(ISimpleContentType source, DocumentTypeCollectionReferenceRespo
118118
target.Collection = ReferenceByIdModel.ReferenceOrNull(source.ListView);
119119
}
120120

121-
// Umbraco.Code.MapAll
121+
// Umbraco.Code.MapAll -Signs
122122
private void Map(IContent source, DocumentTypeBlueprintItemResponseModel target, MapperContext context)
123123
{
124124
target.Id = source.Key;

src/Umbraco.Cms.Api.Management/Mapping/Item/ItemTypeMapDefinition.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private static void Map(ILanguage source, LanguageItemResponseModel target, Mapp
4242
target.IsoCode = source.IsoCode;
4343
}
4444

45-
// Umbraco.Code.MapAll
45+
// Umbraco.Code.MapAll -Signs
4646
private static void Map(IDataType source, DataTypeItemResponseModel target, MapperContext context)
4747
{
4848
target.Name = source.Name ?? string.Empty;
@@ -52,14 +52,14 @@ private static void Map(IDataType source, DataTypeItemResponseModel target, Mapp
5252
target.IsDeletable = source.IsDeletableDataType();
5353
}
5454

55-
// Umbraco.Code.MapAll
55+
// Umbraco.Code.MapAll -Signs
5656
private static void Map(IDictionaryItem source, DictionaryItemItemResponseModel target, MapperContext context)
5757
{
5858
target.Name = source.ItemKey;
5959
target.Id = source.Key;
6060
}
6161

62-
// Umbraco.Code.MapAll
62+
// Umbraco.Code.MapAll -Signs
6363
private static void Map(IContentType source, DocumentTypeItemResponseModel target, MapperContext context)
6464
{
6565
target.Name = source.Name ?? string.Empty;
@@ -69,46 +69,46 @@ private static void Map(IContentType source, DocumentTypeItemResponseModel targe
6969
target.Description = source.Description;
7070
}
7171

72-
// Umbraco.Code.MapAll
72+
// Umbraco.Code.MapAll -Signs
7373
private static void Map(IMediaType source, MediaTypeItemResponseModel target, MapperContext context)
7474
{
7575
target.Name = source.Name ?? string.Empty;
7676
target.Id = source.Key;
7777
target.Icon = source.Icon;
7878
}
7979

80-
// Umbraco.Code.MapAll
80+
// Umbraco.Code.MapAll -Signs
8181
private static void Map(IEntitySlim source, MemberGroupItemResponseModel target, MapperContext context)
8282
{
8383
target.Name = source.Name ?? string.Empty;
8484
target.Id = source.Key;
8585
}
8686

87-
// Umbraco.Code.MapAll
87+
// Umbraco.Code.MapAll -Signs
8888
private static void Map(ITemplate source, TemplateItemResponseModel target, MapperContext context)
8989
{
9090
target.Name = source.Name ?? string.Empty;
9191
target.Id = source.Key;
9292
target.Alias = source.Alias;
9393
}
9494

95-
// Umbraco.Code.MapAll
95+
// Umbraco.Code.MapAll -Signs
9696
private static void Map(IMemberType source, MemberTypeItemResponseModel target, MapperContext context)
9797
{
9898
target.Name = source.Name ?? string.Empty;
9999
target.Id = source.Key;
100100
target.Icon = source.Icon;
101101
}
102102

103-
// Umbraco.Code.MapAll
103+
// Umbraco.Code.MapAll -Signs
104104
private static void Map(IRelationType source, RelationTypeItemResponseModel target, MapperContext context)
105105
{
106106
target.Id = source.Key;
107107
target.Name = source.Name ?? string.Empty;
108108
target.IsDeletable = source.IsDeletableRelationType();
109109
}
110110

111-
// Umbraco.Code.MapAll
111+
// Umbraco.Code.MapAll -Signs
112112
private static void Map(IUserGroup source, UserGroupItemResponseModel target, MapperContext context)
113113
{
114114
target.Id = source.Key;
@@ -117,7 +117,7 @@ private static void Map(IUserGroup source, UserGroupItemResponseModel target, Ma
117117
target.Alias = source.Alias;
118118
}
119119

120-
// Umbraco.Code.MapAll
120+
// Umbraco.Code.MapAll -Signs
121121
private static void Map(IWebhook source, WebhookItemResponseModel target, MapperContext context)
122122
{
123123
target.Id = source.Key;

0 commit comments

Comments
 (0)