Closed joana-fb closed 4 months ago
Build command:
mvn clean verify -B -e -Daudit -Djs.no.sandbox -DrunITs -pl workbench
:information_source: This is an automatic message
The change looks good, and would fix the current bug, but it's not a good practice to rely on the order of the items in a configuration file to be displayed to the user. If the expected order is sorted, why not sort it before it's displayed, or even better, wherever the list of values is being stored in memory upon read? This will avoid us dealing with this kind of bugs again.
Edit: I was looking for the place where the combo box is defined, and I think I found it: https://github.com/pentaho/mondrian/blob/8e8072da607a89ee5e02a69f0e8b4a893f03b618/workbench/src/main/java/mondrian/gui/SchemaPropertyCellEditor.java#L330 Something like this could work (⚠️ needs to be tested):
List<String> dialects = new ArrayList(MondrianGuiDef.SQL._dialect_values)
Collections.sort(dialects);
listEditor.setModel(new DefaultComboBoxModel(dialects);
SonarQube Quality Gate
Build command:
mvn clean verify -B -e -Daudit -Djs.no.sandbox -DrunITs -pl workbench
:information_source: This is an automatic message
@pentaho/tatooine_dev