V14: List view reference in ContentType (#15687)

* Replace all IsContainer mentions with new ListView property

* Map the list view when creating and updating

* Implement list view migration

* Refactor listview to collection

* Do not assign listview if IsContainer is false

* Fix up HasContainerInPath query

* Update OpenApi.json

* fix up according to review

* Refactor duplicate code to use extension method instead

* Dont make new guid, check for null

* Make extension internal

* Fix up after merge

* Use ReferenceById static method instead of extension
This commit is contained in:
Nikolaj Geisle
2024-02-22 09:11:31 +01:00
committed by GitHub
parent ce24845907
commit 4eb1ea6205
49 changed files with 400 additions and 97 deletions

View File

@@ -460,7 +460,11 @@ internal class EntityRepository : RepositoryBase, IEntityRepositoryExtended
{
sql
.AndSelect<ContentVersionDto>(x => Alias(x.Id, "versionId"), x => x.VersionDate)
.AndSelect<ContentTypeDto>(x => x.Alias, x => x.Icon, x => x.Thumbnail, x => x.IsContainer,
.AndSelect<ContentTypeDto>(
x => x.Alias,
x => x.Icon,
x => x.Thumbnail,
x => x.ListView,
x => x.Variations);
}
@@ -589,7 +593,11 @@ internal class EntityRepository : RepositoryBase, IEntityRepositoryExtended
{
sql
.AndBy<ContentVersionDto>(x => x.Id, x => x.VersionDate)
.AndBy<ContentTypeDto>(x => x.Alias, x => x.Icon, x => x.Thumbnail, x => x.IsContainer,
.AndBy<ContentTypeDto>(
x => x.Alias,
x => x.Icon,
x => x.Thumbnail,
x => x.ListView,
x => x.Variations);
}