-
-
Notifications
You must be signed in to change notification settings - Fork 394
Configuration: Predefine useTags #1774
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@rkoshak / @lolodomo / @jimtng in 4913 it was asked if useTags can be the default for new users and not (a breaking change) for existing ones. I think this file is installed on new installations but will not overwrite existing ones. So I think if this file has useTags=true then it would fulfil your requirements. Or?? => WDYT? |
Are you sure about this? Apt may overwrite this when it was not changed by the user (and show a conflict but not overwrite when it has). So I would be very careful with this. |
The change looks good, the parameter is commented and so default will be used To avoid any change of behaviour for existing OH instances, I finally believe it is better to consider it disabled by default. |
Ok. So I will leave this PR as is. |
distributions/openhab/src/main/resources/conf/services/runtime.cfg
Outdated
Show resolved
Hide resolved
Signed-off-by: Andrew Fiddian-Green <[email protected]>
@@ -289,4 +289,4 @@ | |||
|
|||
# If enabled, the ItemChannelLink Registry will always try to apply any tags from linked Channels to the respective Items |
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.
Maybe say here "...try to apply any tags from the first linked Channel of the respective Item" ?
I am not really sure how to word it more precisely. The general idea is that only the first link (with tags) gets to apply its tags, not all the links of the item.
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.
Or perhaps leave it as is, and provide a more detailed explanation in the docs
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.
provide a more detailed explanation in the docs
Signed-off-by: Andrew Fiddian-Green <[email protected]>
That's the part I'm unsure of also. I didn't think apt/yum replaced this file after the first install but I don't know that I would know if it did so for files I've never changed. It also occurs to me that if it were uncommented, that would take precedence over a change to this parameter made through the UI so UI users wouldn't be able to change it without editing the file later. Commented out is the way to go. |
Our assumption is that we are dealing with power users who are fluent with text files, so there is no code that would allow this to be changed via the UI. |
Right, but if it is uncommented by default it would change the behavior for all users with no way to change it back short of editing the file. That's my point. |
Depends on openhab/openhab-core#4913
Signed-off-by: Andrew Fiddian-Green [email protected]