Skip to content

Conversation

caddoo
Copy link
Contributor

@caddoo caddoo commented Oct 13, 2023

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:

  • That plugin is not activated
  • Ads for professional services are available.

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.
image

Review

@caddoo caddoo added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Oct 13, 2023
@caddoo caddoo requested a review from a team October 13, 2023 01:41
Copy link
Contributor

@bx80 bx80 left a 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 👍

@michalkleiner
Copy link
Contributor

I've added two extra checks as per the requirements — Marketplace enabled, Internet services enabled. Otherwise it works as expected.

Copy link
Contributor

@michalkleiner michalkleiner left a 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.

@michalkleiner
Copy link
Contributor

@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.

@caddoo caddoo force-pushed the dev-17228-add-menu-item-for-premium-plugins-5 branch from 6996bc5 to 153f019 Compare October 16, 2023 01:08
@caddoo caddoo merged commit 192944c into 5.x-dev Oct 16, 2023
@caddoo caddoo deleted the dev-17228-add-menu-item-for-premium-plugins-5 branch October 16, 2023 05:27
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 not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Development

Successfully merging this pull request may close these issues.

3 participants