[RFC] Unlock some components/plugins#12961
[RFC] Unlock some components/plugins#12961andrepereiradasilva wants to merge 3 commits intojoomla:stagingfrom
Conversation
IIRC it's hardcoded into the template manager so I don't think I'd change this one. |
yes, you are right https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_templates/models/template.php#L368 so i guess that one needs to be locked ... anyway i think by reading the code we get a warning if we have it disabled. |
|
Yes that's correct
|
|
ok i will lock that one again |
|
I am not convinced about some of this. Some of these are dependant on
others but this enables them to be disabled independently. Pretty sure
thats why they are protected
|
|
@brianteeman if you are referring to com_redirect and plg_system_redirect, look at com_search and com_finder and their plugins they are all unlocked. |
|
It's different. Com_redirect requires plg_redirect. Com_search doesn't On 21 Nov 2016 5:14 p.m., "andrepereiradasilva" notifications@github.com
|
|
well i tried to disable com_redirect and enable plg_system_redirect to check the worst case scenario, and i think the only thing that happens is that i cannot manage the redirect urls, it probably will use the ones already in that are already in the database table. |
|
And what happens when the user clicks on the link in the warning to enable
the plugin?
|
|
the same that happens when click on the message in com_finder ... goes to the edit plugin (which is disabled) |
|
Content plugin "joomla" is using com_messages to send emails about new content submitted in frontend, I guess the email message will be sent even if component is disabled, I guess administrators will see this and reenable the component ? Also 3rd party extensions, now assume that the component is always active and never disabled, |
|
IIRC com_messages was one of the components that would be removed from the core assume is not a word i use in programming 😄 |
|
Decoupling was basically cancelled since nobody can figure out how to fully manage it. I think that's the Reader's Digest of that decision anyway. |
Except that removing the protection enables me to uninstall the plugin |
|
The problem is that unlocking them enables the user to uninstall them ... and this will cause errors because some of the plugins were once added in the core's schema update scripts ... and this will cause errors on updating from old versions like e.g. 2.5. I think that's why they were locked. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12961. |
|
hi @richard67 ! if that's so a decision is needed on this, either lock all core extensions (including the ones unlocked now, eg, com_banners, com_contact, com_finder, com_search, etc) or only lock the ones essencial for the cms functioning (like it is now + plus this PR). |
|
@andrepereiradasilva Yes, I agree. Just wanted to mention that some of the schema update scripts can cause problems if not fully decoupled. |
|
Should'nt this be more correclty handled in the 4.X branch ? |
|
The other problem, as I see it, is that if one uninstalls stuff like the language filter plugin, there is no easy way to install back. |
|
@infograf768 thats true for the existing unprotected extensions
…On 24 November 2016 at 07:42, infograf768 ***@***.***> wrote:
The other problem, as I see it, is that if one uninstalls stuff like the
language filter plugin, there is no easy way to install back.
Also, uninstalling them may also delete the related language strings.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12961 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABPH8eRynjfGoW-_ppFpOJomW5u2Rtzfks5rBT_3gaJpZM4K4csv>
.
--
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ <http://brian.teeman.net/>
|
|
Alas, yes, Does not mean we have to do it for others until we find a way to get this process more user friendly. |
|
the problem i see is that "lock" does two things:
Maybe it should do just one thing. Not able to uninstall. |
|
I hear you about it being useful to disable the extension
…On 24 November 2016 at 09:25, andrepereiradasilva ***@***.***> wrote:
the problem i see is that "lock" does two things:
- not able to uninstall the extension
- not able to enable/disable the extension
Maybe it should do just one thing. Not able to uninstall.
And we would have another field for able to enable/disable... Just
lanching the idea.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12961 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABPH8dOHPH6Whe0XWq_NwbpXidiW40xTks5rBVgKgaJpZM4K4csv>
.
--
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ <http://brian.teeman.net/>
|
|
please comment on this RFC #13037 if this solves all the issues found here. |
Summary of Changes
This PR unblocks several extensions (component/plugins) in installation sql files so they can be disabled in "Extensions" -> "Manage".
Extensions unlocked in this PR:
Testing Instructions
Just code review.
Documentation Changes Required
None.
Note
this PR only does the installation part to validate the concept and the extensions to be unlocked.
if accepted i will add the update SQLs.