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

Do not show bundles in premium feature widgets #12179

Merged
merged 2 commits into from Oct 19, 2017
Merged

Do not show bundles in premium feature widgets #12179

merged 2 commits into from Oct 19, 2017

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Oct 12, 2017

In "Latest Marketplace Updates" and "Premium Features" widgets which are on the admin home page, do not show bundles as it seems less confusing etc and I think it is not needed to show them there. Better to show individual features.

@tsteur tsteur added the Needs Review PRs that need a code review label Oct 12, 2017
@tsteur tsteur added this to the 3.2.1 milestone Oct 12, 2017
@@ -1,6 +1,6 @@
<div class="getNewPlugins getPremiumFeatures widgetBody">
<div class="row">
{% for plugin in plugins %}
{% for plugin in plugins if not plugin.isBundle %}
Copy link
Member

Choose a reason for hiding this comment

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

Is there a special case preventing you from using the same array_filter like the plugin listing? Filtering the entries here seems to add an unintuitive extra limit to the already max 20 entries.

Copy link
Member Author

Choose a reason for hiding this comment

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

good point, will update PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated :)

Copy link
Member

@mneudert mneudert left a comment

Choose a reason for hiding this comment

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

LGTM.

Btw the empty($plugins) check in GetPremiumFeatures.php could also be removed. It probably was not needed for a long time as searchForPlugins should always return an array.

(Tests should of course still work before merging. The current failures however seem unrelated to this specific change)

@mattab mattab merged commit 016f0b2 into 3.x-dev Oct 19, 2017
@mattab mattab deleted the bundleupdate branch October 19, 2017 22:21
@matomo-org matomo-org deleted a comment from MatomoForumBot Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants