? ? ? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
31 May 2017

Pull Request for Issue #16381.

Summary of Changes

Adds an option to the debug system plugin to allow to disable the js/css assets auto-reload on every page load in system debug plugin.

Testing Instructions

  1. Apply patch
  2. Enable debug system plugin and debug in global config
  3. Check there is a media version hash in assets (js/css) in the page source code
  4. Now, in the debug system plugin disable the new "Refresh Assets" option
  5. Save, reload the page and check there is no media version hahs in assets (js/css) in the page source code

Expected result

Allow to disable js/css assets auto-reload in debug system plugin.

Actual result

Not allowed to disable js/css assets auto-reload in debug system plugin.

Documentation Changes Required

none.

avatar andrepereiradasilva andrepereiradasilva - open - 31 May 2017
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 May 2017
Category Front End Plugins
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 31 May 2017
Category Front End Plugins Administration Language & Strings Front End Plugins
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 31 May 2017
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 31 May 2017
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 31 May 2017
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 31 May 2017
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 31 May 2017
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
Title
Allow to disable media version in debug plugin
Allow to disable js/css assets auto-reload in system debug plugin
avatar andrepereiradasilva andrepereiradasilva - edited - 31 May 2017
avatar andrepereiradasilva andrepereiradasilva - change - 31 May 2017
Title
Allow to disable media version in debug plugin
Allow to disable js/css assets auto-reload in system debug plugin
avatar ggppdk
ggppdk - comment - 31 May 2017

I would say that this works,
-- and it would quite useful for developers
-- and for running the site faster when debug is ON

But it may cause problems due to misunderstanding / misuse of it by end users !
If some end-users, use the new option to disable the adding of the Version URL variable to the JS / CSS files

-- then when at some point they re-enable debug after a joomla upgrade, then their browsers maybe use old cached data from a previous Joomla version
(at least since it is inside a plugin they will probably never find it)

The description of new parameter says "so they never use the browser cache",

and "no browser cache" will sound bad to end users and they will disable it
also even for people that understand it , they may disable it , and then just leave it off and forget about it

maybe a better description (language string) is needed here

avatar brianteeman
brianteeman - comment - 1 Jun 2017

The language strings make sense to me

avatar andrepereiradasilva
andrepereiradasilva - comment - 1 Jun 2017

@Quy @brianteeman english is not my native language, please feel free to change the language strings to what you think is more correct.

But it may cause problems due to misunderstanding / misuse of it by end users !
If some end-users, use the new option to disable the adding of the Version URL variable to the JS / CSS files

-- then when at some point they re-enable debug after a joomla upgrade, then their browsers maybe use old cached data from a previous Joomla version
(at least since it is inside a plugin they will probably never find it)

@ggppdk not sure i understand, you are describing a hypothetical scenario in which a end-user deliberate enabled the debug plugin and deliberate disabled this new option in a live production site? ... if so is your opinion that this something joomla core need to that in consideration?

avatar ggppdk
ggppdk - comment - 1 Jun 2017

@andrepereiradasilva
This PR is good, what i described will be rare

avatar tonypartridge
tonypartridge - comment - 5 Jun 2017

I have tested this item successfully on a511e61

Working well. @GeraintEdwards Can you test when you get a minute please.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16406.

avatar tonypartridge tonypartridge - test_item - 5 Jun 2017 - Tested successfully
avatar Quy
Quy - comment - 5 Jun 2017

I have tested this item successfully on a058bf9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16406.

avatar Quy Quy - test_item - 5 Jun 2017 - Tested successfully
avatar andrepereiradasilva andrepereiradasilva - change - 5 Jun 2017
The description was changed
avatar andrepereiradasilva andrepereiradasilva - edited - 5 Jun 2017
avatar tonypartridge
tonypartridge - comment - 6 Jun 2017

Can someone run drone please

avatar andrepereiradasilva
andrepereiradasilva - comment - 6 Jun 2017

just updated branch to rerun tests

avatar tonypartridge
tonypartridge - comment - 6 Jun 2017

Great, can someone put an RTC on this? since it has passed two tests? @franz-wohlkoenig ?

avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jun 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jun 2017

RTC after two successful tests.

avatar tonypartridge
tonypartridge - comment - 6 Jun 2017

My Hero!

On 6 Jun 2017, 11:19 +0100, Franz Wohlkönig notifications@github.com, wrote:

RTC after two successful tests.

You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar Quy
Quy - comment - 6 Jun 2017

@andrepereiradasilva

Enable debug system plugin and debug in global config

It is not necessary to enable debug in global config for this to work. Is it ok?

avatar andrepereiradasilva andrepereiradasilva - change - 6 Jun 2017
Labels Added: ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 6 Jun 2017

@Quy fixed just added JDEBUG condition (forgot it)

avatar Quy
Quy - comment - 6 Jun 2017

I have tested this item successfully on 1036aaf


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16406.

avatar Quy Quy - test_item - 6 Jun 2017 - Tested successfully
avatar tonypartridge
tonypartridge - comment - 6 Jun 2017

I have tested this item successfully on 1036aaf


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16406.

avatar tonypartridge tonypartridge - test_item - 6 Jun 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jun 2017

RTC after two successful tests.

avatar rdeutz rdeutz - close - 13 Jun 2017
avatar rdeutz rdeutz - merge - 13 Jun 2017
avatar rdeutz rdeutz - change - 13 Jun 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-13 14:48:05
Closed_By rdeutz

Add a Comment

Login with GitHub to post a comment