-
Notifications
You must be signed in to change notification settings - Fork 17
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
[BUGFIX] Add plugin-enabled check condition to CustomObjectPermissions… #292
base: staging
Are you sure you want to change the base?
Conversation
….php to solve issue acquia#290
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.
Makes sense. Thanks! 👍
I noticed your comment and testing it you are right. It's checking the feature flag which is true by default. Let me see if I'll find a way. |
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.
LGTM! Thanks @Moongazer!
We'll have to extend the https://github.com/acquia/mc-cs-plugin-custom-objects/blob/staging/Provider/ConfigProvider.php#L22 to have the Doctrine's |
Yes, hope I will find some time ASAP |
…r tests if the plugin was installed successfully
Change is done and works (tested by deleting the record from
Not sure if you like the try-catch block in case of Doctrine exceptions, usually these queries should not fail, so I could also remove it if you want. |
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.
Can you please still check for (bool) $this->coreParametersHelper->get(self::CONFIG_PARAM_ENABLED, true);
? We heavily depend on that as not all customers want to use this plugin. So we use this feature flag to turn it on only for those who want to use it. From the performance stand point it would be great to first check if the feature flag (the configuration) is ON. If it is off then do not execute the SQL queries at all. If it is on then also check that the plugin is installed with the queries.
OK done.
Question: where exactly you turn this flag on/off? I could not find it anywhere, that's why it returned always |
It is set as true by default so it wouldn't complicate the installation process. Here is the documentation for the feature flag: https://github.com/acquia/mc-cs-plugin-custom-objects/wiki/Feature-flag |
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.
Thanks! 👍
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.
LGTM! Thank you @Moongazer
To solve the issue #290, tag
1.0.0
(94ff1e5
) was checked out. Because this resulted in a detached head, I had to create a branch which isfix/issue-290
.