Plugin whitelist now uses file system, #PG-5137#35
Conversation
|
@AltamashShaikh From codex, but this is intended behaviour from us. |
| */ | ||
| public function getPluginsForSpecGeneration(): array | ||
| { | ||
| $pluginNames = []; |
There was a problem hiding this comment.
@lachiebol Why don't we do something like this ?
$pluginNames = $this->pluginManager->getActivatedPlugins();
Piwik.postEvent('OpenApiDocs.filterActivePlugins', [&$pluginNames]);
Later Cloud code will remove, below plugins and add other if needed
public const PLUGIN_BLOCKLIST = ['Billing', 'Cloud', 'ConnectAccounts', 'CDN', 'ProxySite'];
There was a problem hiding this comment.
I'll just use the updatePluginList hook in Cloud.php to handle this, I'll update that PR
There was a problem hiding this comment.
Wasn't aware of getActivatedPlugins(), much better :)
|
The Cloud plugin list should not be part of this code now, as we were not going to release this plugin earlier. |
|
Note: We should also inform to keep the task setting disabled by default on Cloud and should be enabled only for demo.matomo.cloud |
@AltamashShaikh It's off by default at the moment, what options do we have to automatically enable for on prem? |
@lachiebol Is should be on by default! |
Description
Third party plugins will now be discovered and supported.
Event added that we will hook into with cloud plugin to add extra non-activated plugins.
Can see what gets pulled through the whitelist now with this method: index.php?module=API&method=OpenApiDocs.getPluginWhitelist&format=JSON&token_auth=anonymous
Issue No
Steps to Replicate the Issue
Checklist