Skip to content

MID-9476: Problems with Search Box in Object Collection View#600

Draft
matisovaa wants to merge 10 commits intomasterfrom
tmp/9476
Draft

MID-9476: Problems with Search Box in Object Collection View#600
matisovaa wants to merge 10 commits intomasterfrom
tmp/9476

Conversation

@matisovaa
Copy link
Copy Markdown
Contributor

No description provided.

@matisovaa matisovaa marked this pull request as ready for review April 8, 2026 08:51
@1azyman 1azyman self-requested a review April 9, 2026 09:51
Copy link
Copy Markdown
Member

@1azyman 1azyman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, code looks fine, I noticed just one thing with ordering. Please have a look at it, maybe it can be removed and sorting have to take into account "null" order values...which I think it does. Thank you very much.

return searchItems;
}

private static List<SearchItemType> getSearchItemsWithDisplayOrder(SearchItemsType searchItems) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be a bit safer not to mutate custom search items displayOrder. What if user set order for their items 10, 20, 30? If I understand correctly if this is not done, then some items will have displayOrder=null which means we have to think about it during sorting.

@1azyman
Copy link
Copy Markdown
Member

1azyman commented Apr 9, 2026

I've also noticed if I use sample from ticket, reorder xml in this way: given (no display order), email (30), family (20) then order on page is given, family, email...Wasn't it described in schema as null order goes last? could it be because of my previous comment?

@matisovaa matisovaa marked this pull request as draft April 10, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants