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

Remove obsolete addons from managed configuration #1530

Merged
merged 2 commits into from
Jul 15, 2023
Merged

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented May 4, 2023

It has been reported that the removal of the javascript transformation in openHAB 4 results in warnings because the add-on could not be found during installation. Since the add-on is no longer present, it does not show up in the UI and can't be uninstalled from there. This adds an update instruction to remove it from the addons.config.

It has been reported that the removal of the javascript transformation in openHAB 4 results in warnings because the add-on could not be found during installation. Since the add-on is no longer present, it does not show up in the UI and can't be uninstalled from there. This adds an update instruction to remove it from the addons.config.

Signed-off-by: Jan N. Klug <github@klug.nrw>
@J-N-K J-N-K requested a review from a team as a code owner May 4, 2023 17:43
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the other add-ons (#1481 (comment)) can also be removed similarly?

@J-N-K
Copy link
Member Author

J-N-K commented Jul 15, 2023

Yes. Do you see any better solution than these three lines? The problem is that we can only do simple "replace" instructions here and have the following cases:

  • binding = b1,remove,b3 -> matched by 1 and 2, 3 would result in binding = b1,,b3 which is invalid
  • binding = b1,b2,remove -> matched by 2 only, 3 would result in binding = b1,b2, which is invalid
  • binding = remove,b2,b3 -> matched by 1 only, 3 would result in binding = ,b2,b3 which is invalid
  • binding = remove -> only matched by 3

@wborn
Copy link
Member

wborn commented Jul 15, 2023

Do you see any better solution than these three lines?

The only better solution I can think of is adding dedicated update commands for removing or renaming add-ons. Then you can just use one command per add-on. Though adding new commands is quite involved because they need to work on Linux/macOS/Windows and added to all repos used for packaging openHAB (distro, linuxpkg, docker, etc).

@J-N-K
Copy link
Member Author

J-N-K commented Jul 15, 2023

I'll add commands for the other addons

Signed-off-by: Jan N. Klug <github@klug.nrw>
@J-N-K J-N-K changed the title Remove javascript transformation from managed configuration Remove obsolete addons from managed configuration Jul 15, 2023
@J-N-K J-N-K requested a review from wborn July 15, 2023 11:29
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@wborn wborn merged commit 8f465a6 into openhab:main Jul 15, 2023
2 checks passed
@wborn wborn added this to the 4.0 milestone Jul 15, 2023
@J-N-K J-N-K deleted the javascript branch July 15, 2023 11:58
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

Successfully merging this pull request may close these issues.

2 participants