Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up content editing models #15855

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ public class DocumentMapDefinition : ContentMapDefinition<IContent, DocumentValu

public DocumentMapDefinition(PropertyEditorCollection propertyEditorCollection, CommonMapper commonMapper)
: base(propertyEditorCollection)
{
_commonMapper = commonMapper;
}
=> _commonMapper = commonMapper;

public void DefineMaps(IUmbracoMapper mapper)
{
Expand Down Expand Up @@ -50,8 +48,8 @@ private void Map(IContent source, DocumentCollectionResponseModel target, Mapper
target.Id = source.Key;
target.DocumentType = context.Map<DocumentTypeCollectionReferenceResponseModel>(source.ContentType)!;
target.SortOrder = source.SortOrder;
target.Creator = _commonMapper.GetOwner(source, context)?.Name;
target.Updater = _commonMapper.GetCreator(source, context)?.Name;
target.Creator = _commonMapper.GetOwnerName(source, context);
target.Updater = _commonMapper.GetCreatorName(source, context);

// If there's a set of property aliases specified in the collection configuration, we will check if the current property's
// value should be mapped. If it isn't one of the ones specified in 'includeProperties', we will just return the result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ public class MediaMapDefinition : ContentMapDefinition<IMedia, MediaValueModel,

public MediaMapDefinition(PropertyEditorCollection propertyEditorCollection, CommonMapper commonMapper)
: base(propertyEditorCollection)
{
_commonMapper = commonMapper;
}
=> _commonMapper = commonMapper;

public void DefineMaps(IUmbracoMapper mapper)
{
Expand All @@ -42,7 +40,7 @@ private void Map(IMedia source, MediaCollectionResponseModel target, MapperConte
target.Id = source.Key;
target.MediaType = context.Map<MediaTypeCollectionReferenceResponseModel>(source.ContentType)!;
target.SortOrder = source.SortOrder;
target.Creator = _commonMapper.GetOwner(source, context)?.Name;
target.Creator = _commonMapper.GetOwnerName(source, context);

// If there's a set of property aliases specified in the collection configuration, we will check if the current property's
// value should be mapped. If it isn't one of the ones specified in 'includeProperties', we will just return the result
Expand Down
6 changes: 0 additions & 6 deletions src/Umbraco.Core/Models/AnchorsModel.cs

This file was deleted.

This file was deleted.

This file was deleted.

34 changes: 0 additions & 34 deletions src/Umbraco.Core/Models/ContentEditing/AuditLog.cs

This file was deleted.

27 changes: 0 additions & 27 deletions src/Umbraco.Core/Models/ContentEditing/BackOfficeNotification.cs

This file was deleted.

70 changes: 0 additions & 70 deletions src/Umbraco.Core/Models/ContentEditing/CodeFileDisplay.cs

This file was deleted.

56 changes: 0 additions & 56 deletions src/Umbraco.Core/Models/ContentEditing/ContentBaseSave.cs

This file was deleted.

13 changes: 0 additions & 13 deletions src/Umbraco.Core/Models/ContentEditing/ContentDomainsAndCulture.cs

This file was deleted.

Loading
Loading