-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
Remove deprecated method of 'ConfigOptionProvider' #1541
Remove deprecated method of 'ConfigOptionProvider' #1541
Conversation
Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable Locale locale); | ||
// @Deprecated | ||
// @Nullable | ||
// default Collection<ParameterOption> getParameterOptions(URI uri, String param, @Nullable Locale locale) { |
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.
This method needs a little attention. If we remove it now it will break the openHAB 3 Add-ons build.
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.
So if I get it right, your plan now is to keep it as a deprecated "default" method in place and remove it later?
Which add-ons will break?
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.
Yes, that was the initial idea. We are talking about three bindings:
- Amazon Dash Button
- GPSTracker
- SmartMeter
There are two other options:
- We could exclude them from openHAB 3 Add-ons build.
or
- We could move them to "master"-branch and migrate them right now.
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.
We are talking about three bindings
Shouldn't it be fairly easy to adapt them?
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.
Shouldn't it be fairly easy to adapt them?
Yes, it is. But we cannot use the same code to compile against OHC 2.5 and OHC 3 (after this PR got merged). If we remove the deprecated method in the bindings it will fail on OH 2.5.x Add-ons build and if we remove the deprecated method here it will fail on OH 3 Add-ons build.
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.
Ok, I see. I had missed the fact that it is a "provider" interface and not a "consumer" interface.
So yeah, I think your approach is just fine - let's leave it in as a default method and remove it once we move all add-ons to master. Do you keep track of those open changes somewhere?
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.
We keep track of it in #1408. I added a note.
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
a7575ce
to
9b96b6c
Compare
Removes: * ConfigOptionProvider.getParameterOptions(URI, String, Locale) (see also openhab#1541) * DiscoveryListener.removeOlderResults(DiscoveryService, long, Collection<ThingTypeUID>) Related to openhab#1408 Signed-off-by: Wouter Born <github@maindrain.net>
Removes: * ConfigOptionProvider.getParameterOptions(URI, String, Locale) (see also openhab#1541) * DiscoveryListener.removeOlderResults(DiscoveryService, long, Collection<ThingTypeUID>) Related to openhab#1408 Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de> GitOrigin-RevId: 991ccd6
Removes: * ConfigOptionProvider.getParameterOptions(URI, String, Locale) (see also openhab#1541) * DiscoveryListener.removeOlderResults(DiscoveryService, long, Collection<ThingTypeUID>) Related to openhab#1408 Signed-off-by: Wouter Born <github@maindrain.net> GitOrigin-RevId: d33598a
ConfigOptionProvider
Related to #1408
Signed-off-by: Christoph Weitkamp github@christophweitkamp.de
Depends on openhab/openhab-addons#8093