Skip to content
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

Convert ancient Plugins to use lib.network instead of lib.connection #399

Closed
10 tasks done
bmxp opened this issue Aug 30, 2020 · 12 comments
Closed
10 tasks done

Convert ancient Plugins to use lib.network instead of lib.connection #399

bmxp opened this issue Aug 30, 2020 · 12 comments
Milestone

Comments

@bmxp
Copy link
Member

bmxp commented Aug 30, 2020

Currently the following plugins still use lib.connection but are deprecated and will be removed:

  • raumfeld (deprecated)
  • visu_websocket is deprecated and a module as replacement is in place @develop branch

The following plugins already have an implementation:

These plugins were converted by @Morg42 but are not pushed into develop:

The lib.connection should then be removed prior to SmartHomeNG 2.0

@onkelandy
Copy link
Member

Umgebaute Squeezebox und lirc funktionieren bei mit seit Wochen ohne Probleme.

@msinn msinn added this to the Version 1.9 milestone Dec 25, 2020
@Morg42
Copy link
Member

Morg42 commented Jan 1, 2021

Plugin network is finished and runs completely on lib.network.
Plugin cli is adapted and will be provided together with the new lib.network.
Plugins lirc, knx, squeezebox don't need updates and work out of the box.

@Morg42
Copy link
Member

Morg42 commented Jan 3, 2021

All modified and awaiting testing in https://github.com/Morg42/plugins/tree/network/, necessary lib.network in https://github.com/Morg42/smarthome/tree/libnetwork/

@bmxp
Copy link
Member Author

bmxp commented Jan 3, 2021

Maybe we should wait until the next release 1.8 which is prepared by @msinn for January
until the efforts of @Morg42 are pushed into develop?
This way we can get a more thorough test in develop instead of pulling from the private repo.

@Morg42
Copy link
Member

Morg42 commented Jan 3, 2021

That was my suggestion to @msinn already. Much as I'd like to see lib.network in 1.8, more testing and completion of plugin seems sensible.

@msinn
Copy link
Member

msinn commented Jan 15, 2021

That's why I added the milestone 1.9 before your comments.

@Morg42
Copy link
Member

Morg42 commented Mar 20, 2021

All lib and plugin code is integrated and running. References to lib.connection are removed in plugins; for core files, this is provided in PR smarthome/#402.

The last remaining point is actually removing lib.connection from the core.

This should probably be done earliest for 1.10, so privately used plugins can be adjusted.

Does this need some kind of deprecated-warning?

@bmxp
Copy link
Member Author

bmxp commented Mar 20, 2021

Yes, we should give a warning with each usage of lib.connection IMHO. @msinn did a great job with other deprecated warnings within the code.
The only fear I have is that some users won't get the deprecated warning due to misconfigured logging setup.

@Morg42
Copy link
Member

Morg42 commented Mar 20, 2021

The warning "system" might be upgraded to show a all-pages warning on the Admin UI.

On the other hand, we can't make sure to reach everyone. A best-effort approach should be enough on evolving OSS. As long as some users don't update their systems, nothing is going to happen anyway. I guess you can expect someone upgrading to read the release notes, or the readme?

@bmxp
Copy link
Member Author

bmxp commented Mar 20, 2021

If I've learned anything important in my life then the most important lesson is the one that people don't read anything until something goes wrong. And if this is the case, then they blame the docu that it was not presented in an understandable way.
Most people would easily sign their own death warrant ...

@Morg42
Copy link
Member

Morg42 commented Mar 21, 2021

I'm painfully aware. But not doing anything is not an option...

@Morg42
Copy link
Member

Morg42 commented Mar 30, 2021

Closing this issue as the plugin modification is complete.

The core issue is resumed at issue 410 @smarthome

@Morg42 Morg42 closed this as completed Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants