-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Disable suggestion for installed add-ons #2226
Conversation
bca23f4
to
88e12b5
Compare
Job #1328: Bundle Size — 15.84MiB (+0.47%).Important Bundle introduced 1 and removed 1 duplicate package – View changed duplicate packages Warning Bundle introduced 13 new packages: @jsep-plugin/regex, @jsep-plugin/arrow, @jsep-plugin/object and 10 more – View changed packages Bundle metrics
Bundle size by type
View job #1328 report View mherwege:suggestions branch activity |
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
88e12b5
to
d12f72c
Compare
Ok, we should try to include that PR in 4.1RC. |
I will review that today 👍 |
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.
You used the wrong property, see my comment below.
I will fix that myself to get this merged.
@@ -226,7 +226,7 @@ export default { | |||
return Object.keys(this.addons).flatMap((k) => this.addons[k]) | |||
}, | |||
suggestedAddons () { | |||
return Object.keys(this.addons).flatMap((k) => this.addons[k]).filter((a) => this.suggestions.some((s) => s.id === a.id)) | |||
return Object.keys(this.addons).flatMap((k) => this.addons[k]).filter((a) => !a.isInstalled && this.suggestions.some((s) => s.id === a.id)) |
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.
return Object.keys(this.addons).flatMap((k) => this.addons[k]).filter((a) => !a.isInstalled && this.suggestions.some((s) => s.id === a.id)) | |
return Object.keys(this.addons).flatMap((k) => this.addons[k]).filter((a) => !a.installed && this.suggestions.some((s) => s.id === a.id)) |
Suggestions are being shown in the add-on store for add-ons that are already installed.
This PR removes suggestions for installed add-ons.
See request here openhab/openhab-core#3868 (comment)