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
M3: Plugin bundle upgrade #8128
Conversation
…le\Helper\IntegrationHelper
…tegration::setFactory" This reverts commit fef2552.
…tegration constructor
Failing tests in Travis. Please check. |
Test is failing on staging and master too for me. When DNC is removed, the record in lead_donotcontact is removed too.
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 clicked through all plugins and I got the following error in the app/logs.
Could you please have a look?
[2019-12-09 17:32:39] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Type error: Argument 7 passed to MauticPlugin\MauticSocialBundle\Integration\SocialIntegration::__construct() must be an instance of Symfony\Component\Translation\DataCollectorTranslator, instance of Mautic\CoreBundle\Translation\Translator given, called in /Users/anton.vlasenko/html/community.test/app/cache/prod/appProdProjectContainer.php on line 11673" at /Users/anton.vlasenko/html/community.test/plugins/MauticSocialBundle/Integration/SocialIntegration.php line 60 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Type error: Argument 7 passed to MauticPlugin\\MauticSocialBundle\\Integration\\SocialIntegration::__construct() must be an instance of Symfony\\Component\\Translation\\DataCollectorTranslator, instance of Mautic\\CoreBundle\\Translation\\Translator given, called in /Users/anton.vlasenko/html/community.test/app/cache/prod/appProdProjectContainer.php on line 11673 at /Users/anton.vlasenko/html/community.test/plugins/MauticSocialBundle/Integration/SocialIntegration.php:60)"} []
I can't reproduce this. Did you upade your cache and use |
Co-Authored-By: John Linhart <jan@linhart.email>
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.
Could you please also change DataCollectorTranslator
interface to TranslatorInterface
for the following classes (they all extend \Mautic\PluginBundle\Integration\AbstractIntegration
's constructor):
\MauticPlugin\MauticCrmBundle\Integration\SugarcrmIntegration
\MauticPlugin\MauticCrmBundle\Integration\PipedriveIntegration
\MauticPlugin\MauticCrmBundle\Integration\HubspotIntegration
Found it. Thanx. |
Test is failing with notice. Do not merge it before fix. @anton-vlasenko @escopecz |
I'm not sure if there was workaround in tests for this cases, but I don't know where and why it is not working anymore. Stacktrace:
@alanhartless Do you have an idea?
|
This was introduced in #8137 - travis log here https://travis-ci.org/mautic/mautic/builds/623066898?utm_source=github_status&utm_medium=notification. This has nothing to do with plugin bundle and it is already merged in I think we can merge this and I'll create ticket for bug described above #8128 (comment) as I'm not able to fix it in reasonable time now. What do you think @escopecz |
@hluchas I'd like to test it again before we merge. Just to be sure that everything is OK, because it's a big PR. |
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 code reviewed and tested this PR and at the moment I can't find any errors using the test steps provided by the author.
Therefore I approve it.
Thanks guys! You are right @hluchas. I missed it in the LeadBundle PR. Please create the issue for it. |
New issue here #8217 |
Please be sure you are submitting this against the staging branch.
Description:
Upgrade plugin bundle to support S3 and remove deprecations.
Steps to test this PR:
List backwards compatibility breaks:
Leaved as it is:
\Mautic\PluginBundle\Helper\EventHelper::pushLead()
It is called from
\Mautic\PointBundle\Model\TriggerModel::triggerEvents
which is part of PluginBundle.\Mautic\PluginBundle\Bundle\PluginBundleBase
This needs to be separated Issue/PR I think.
Testing steps: