-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add premium plugin menu items to professional services (V5) #21401
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
Add premium plugin menu items to professional services (V5) #21401
Conversation
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.
I've tested this and it's working well, the code look fine. I've left a couple of minor suggestions but nothing that should prevent it from being merged 👍
plugins/ProfessionalServices/tests/Unit/PromoWidgetApplicableTest.php
Outdated
Show resolved
Hide resolved
I've added two extra checks as per the requirements — Marketplace enabled, Internet services enabled. Otherwise it works as expected. |
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.
Works as expected. Detail view and content integration in a follow up PR.
@caddoo it seems that me adding the checks for Marketplace and Internet features broke the newly added test. Also worth noting (though unrelated to the changes here) is that some other tests started failing simply by adding a new test. |
6996bc5
to
153f019
Compare
Description:
5.x version of #21394
This is an addition to the professional services plugin that will show premium plugins in the reporting menu with an empty widget if:
The content / title of the widgets is being worked on in a seperate PR.
In this PR I have force disabled showing the menu items intentionally so we can merge this without impact, there are unit test s for the logic around whether to show the item or not.
Once approved / merged, the follow up for the promotional page can be added.
Screenshot when the logic is used without being fixed as false.

Review