Skip to content

[RFC] Unlock some components/plugins#12961

Closed
andrepereiradasilva wants to merge 3 commits intojoomla:stagingfrom
andrepereiradasilva:patch-27
Closed

[RFC] Unlock some components/plugins#12961
andrepereiradasilva wants to merge 3 commits intojoomla:stagingfrom
andrepereiradasilva:patch-27

Conversation

@andrepereiradasilva
Copy link
Contributor

@andrepereiradasilva andrepereiradasilva commented Nov 21, 2016

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:

  • com_wrapper (only used if the user wants too)
  • com_messages (only used if the user wants too)
  • com_redirect (only used if the user wants too)
  • plg_editors_codemirror (an editor - used in template manager)
  • plg_system_languagefilter (only used in multilngual sites)
  • plg_system_cache (only used if the user wants too)
  • plg_system_redirect (only used if the user wants too)
  • plg_quickicon_joomlaupdate (only used if the user wants too - doubt)
  • plg_quickicon_extensionupdate (only used if the user wants too - doubt)
  • plg_quickicon_phpversioncheck (only used if the user wants too)

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.

@mbabker
Copy link
Contributor

mbabker commented Nov 21, 2016

plg_editors_codemirror (it's an optional editor)

IIRC it's hardcoded into the template manager so I don't think I'd change this one.

@andrepereiradasilva
Copy link
Contributor Author

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.

@brianteeman
Copy link
Contributor

brianteeman commented Nov 21, 2016 via email

@andrepereiradasilva
Copy link
Contributor Author

ok i will lock that one again

@brianteeman
Copy link
Contributor

brianteeman commented Nov 21, 2016 via email

@andrepereiradasilva
Copy link
Contributor Author

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

@brianteeman
Copy link
Contributor

It's different. Com_redirect requires plg_redirect. Com_search doesn't
require plg_search_contact

On 21 Nov 2016 5:14 p.m., "andrepereiradasilva" notifications@github.com
wrote:

@brianteeman https://github.com/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.


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/ABPH8S3pLiMQcNoqSvEBpepdT5q2s1VKks5rAdFqgaJpZM4K4csv
.

@andrepereiradasilva
Copy link
Contributor Author

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 that's the worst case scenario, ie, when a user disable the com_redirect and enables the plg_system_redirect plugin.

@brianteeman
Copy link
Contributor

brianteeman commented Nov 21, 2016 via email

@andrepereiradasilva
Copy link
Contributor Author

the same that happens when click on the message in com_finder ... goes to the edit plugin (which is disabled)

@ggppdk
Copy link
Contributor

ggppdk commented Nov 21, 2016

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,
-- but users will not be able to read the messages

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,
i was thinking of using com_messages

@andrepereiradasilva
Copy link
Contributor Author

andrepereiradasilva commented Nov 21, 2016

IIRC com_messages was one of the components that would be removed from the core
Right: https://developer.joomla.org/cms/roadmap.html

assume is not a word i use in programming 😄

@mbabker
Copy link
Contributor

mbabker commented Nov 21, 2016

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.

@brianteeman
Copy link
Contributor

the same that happens when click on the message in com_finder ... goes to the edit plugin (which is disabled)

Except that removing the protection enables me to uninstall the plugin
If I do that then I just get a list of plugins when i follow the link

@richard67
Copy link
Member

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.

@andrepereiradasilva
Copy link
Contributor Author

andrepereiradasilva commented Nov 21, 2016

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

@richard67
Copy link
Member

@andrepereiradasilva Yes, I agree. Just wanted to mention that some of the schema update scripts can cause problems if not fully decoupled.

@alikon
Copy link
Contributor

alikon commented Nov 24, 2016

Should'nt this be more correclty handled in the 4.X branch ?

@infograf768
Copy link
Member

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.

@brianteeman
Copy link
Contributor

brianteeman commented Nov 24, 2016 via email

@infograf768
Copy link
Member

Alas, yes, Does not mean we have to do it for others until we find a way to get this process more user friendly.

@andrepereiradasilva
Copy link
Contributor Author

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.

@brianteeman
Copy link
Contributor

brianteeman commented Nov 24, 2016 via email

@andrepereiradasilva
Copy link
Contributor Author

andrepereiradasilva commented Nov 27, 2016

please comment on this RFC #13037 if this solves all the issues found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants