-
-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a system setting to define how to sort group members #2417
Conversation
@cweitkamp for review. Once merged, I will add this setting in the distribution runtime.cfg in comment. |
c49e099
to
c17f859
Compare
@kaikreuzer : ideally I would include this PR in 3.1. If not, users will discover a new sort of group members in sitemap without any option to restore the behavior we had in 2.x and 3.0 (which takes into account the sort of items defined by the user in its item file) |
Related to openhab#2123 Signed-off-by: Laurent Garnier <[email protected]>
c17f859
to
db234b4
Compare
bundles/org.openhab.core.ui/src/main/resources/OH-INF/config/sitemap.xml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that this is a regression that we should fix for 3.1.
I would even be more aggressive than your suggestion and define the 2.5/3.0 behavior as the default and the new sorting options as a feature that can be enabled, if wished. Wdyt?
bundles/org.openhab.core.ui/src/main/resources/OH-INF/config/sitemap.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.core.ui/src/main/resources/OH-INF/config/sitemap.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.core.ui/src/main/resources/OH-INF/config/sitemap.xml
Outdated
Show resolved
Hide resolved
A suggestion, perhaps for later, would be to also consider the value of the |
@ghys Sounds like a good enhancement of this PR for 3.2 :-). |
Too late for that for 3.1 and that is probably not so easy as the current change. |
I fully agree with you, NONE is now the default. |
Signed-off-by: Laurent Garnier <[email protected]>
eafbc52
to
6934f92
Compare
...org.openhab.core.ui/src/main/java/org/openhab/core/ui/internal/items/ItemUIRegistryImpl.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Laurent Garnier <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, many thanks!
@kaikreuzer : do you think we should "show" this new setting in the default runtime.cfg file, helping users to change it from configuration files ? |
Would make sense yes. I can merge a distro PR, if you'd create it. |
* Add a system setting to define how to sort group members Related to openhab#2123 Signed-off-by: Laurent Garnier <[email protected]>
* Add a system setting to define how to sort group members Related to openhab#2123 Signed-off-by: Laurent Garnier <[email protected]> GitOrigin-RevId: 3f102c5
Related to #2123
Signed-off-by: Laurent Garnier [email protected]