Skip to content

V14: Fix sorting by "creator" on collection view#16182

Merged
Zeegaan merged 1 commit into
v14/devfrom
v14/bugfix/collection-view-sort-by-creator
May 6, 2024
Merged

V14: Fix sorting by "creator" on collection view#16182
Zeegaan merged 1 commit into
v14/devfrom
v14/bugfix/collection-view-sort-by-creator

Conversation

@elit0451

Copy link
Copy Markdown
Contributor

Details

  • Allows for items in a collection view to be sortable by "creator", aka "Created by" field;
    • Changing the order of transforming "creator" to "owner" since we are performing a check against the collection view properties and there it is named "creator" => we need to do the check first.

Test

  • Create a root doc type with collection view enabled & a child doc type;
  • Create some content to be able to sort items in the collection view;
    • Use at least 2 users when creating the content items, so that you can see a difference when sorting.
  • Modify the "Columns Displayed" on the "List View - Content" data type to have the "Created by" property - you can find it under "Document type" > the child doc type > "Created by"
  • In the Content section, navigate to the Collection app;
  • Verify that by clicking on the "Created by", the items get sorted.

@Zeegaan

Zeegaan commented Apr 30, 2024

Copy link
Copy Markdown
Member

Theres a front end bug preventing us from getting out collection view's at the moment, will test this out ASAP when that is fixed 😁

Comment thread src/Umbraco.Infrastructure/Services/ContentListViewServiceBase.cs
@Zeegaan

Zeegaan commented May 6, 2024

Copy link
Copy Markdown
Member

LGTM 🚀

@Zeegaan Zeegaan merged commit 4736683 into v14/dev May 6, 2024
@Zeegaan Zeegaan deleted the v14/bugfix/collection-view-sort-by-creator branch May 6, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants