[MGNLUI-6672] Cannot disable automatic sorting in comboBox/linkField Created: 26/Apr/21 Updated: 13/Aug/21 Resolved: 10/Aug/21 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | None |
| Affects Version/s: | 6.2.10 |
| Fix Version/s: | 6.2.12 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Viet Nguyen | Assignee: | Roman Kovařík |
| Resolution: | Fixed | Votes: | 13 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Template: | |||||||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||||||
| Task DoD: |
[X]*
Doc/release notes changes? Comment present?
[X]*
Downstream builds green?
[X]*
Solution information and context easily available?
[X]*
Tests
[X]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||||||
| Bug DoR: |
[X]*
Steps to reproduce, expected, and actual results filled
[X]*
Affected version filled
|
||||||||||||||||||||||||
| Testcase included: |
Yes
|
||||||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||||||
| Documentation update required: |
Yes
|
||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||
| Epic Link: | UI framework implementation | ||||||||||||||||||||||||
| Sprint: | UI FW 34 | ||||||||||||||||||||||||
| Story Points: | 3 | ||||||||||||||||||||||||
| Description |
Steps to reproduce
.. Logs, screenshots, gifs... Expected results
.. Justify non-trivial expectations with a link to a doc or a relevant discussion. Actual results
Workaround
Development notes
|
| Comments |
| Comment by Simon Tourville [ 18/May/21 ] | ||
|
Same issue here. | ||
| Comment by Jeffrey van der Heide [ 19/May/21 ] | ||
|
In the meantime, here's the workaround for my checkbox group fields, similar workarounds should work for other FieldDefinitions SourceSortedCheckBoxGroupFieldDefinition.java SourceSortedCheckBoxGroupFieldFactory.java
| ||
| Comment by Viet Nguyen [ 19/May/21 ] | ||
|
Thank you jvanderheide for your provided workaround. We will consider fixing this soon so that the benefits could wide spreading to other customers. | ||
| Comment by Jeffrey van der Heide [ 19/May/21 ] | ||
|
The underlying issue stems from info.magnolia.ui.contentapp.CaptionFilteringDataProviderWrapper#fetch. I think getting the sorting mechanism from the Datasource would be the best way forward, this would allow custom sorting logic for custom datasources and defaults could fallback to a default sorting mechanic (that should still be able to be set from a definition, to sort like intended AND allow just to return the order of the data is). | ||
| Comment by Roman Kovařík [ 01/Jun/21 ] | ||
|
Hi jvanderheide,
You're right, I can even see that this was fixed in a snapshot: Roman | ||
| Comment by Christopher Chard [ 08/Jul/21 ] | ||
|
Hi rkovarik, Many complaints from editors coming in saying that the comboboxes are confusing and unintuitive :/ Thanks! | ||
| Comment by Simon Tourville [ 08/Jul/21 ] | ||
|
+1 | ||
| Comment by Roman Kovařík [ 08/Jul/21 ] | ||
|
Hi, Can't promise but it's pretty close to the top of the backlog :crossed_fingers: Roman | ||
| Comment by Roman Kovařík [ 04/Aug/21 ] | ||
|
For release notes:
form:
properties:
optionSorted:
$type: comboBoxField
datasource:
$type: optionListDatasource
sort: true
options:
- name: b
label: b
- name: a
label: a
jcrSorted:
$type: comboBoxField
datasource:
$type: jcrDatasource
workspace: website
allowedNodeTypes:
- mgnl:page
describeByProperty: title
sortBy:
title: ASCENDING
| ||
| Comment by Christopher Chard [ 10/Aug/21 ] | ||
|
Awesome, thank you! | ||
| Comment by Roman Kovařík [ 13/Aug/21 ] | ||
|
For documentation:
|