? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
23 Apr 2017

Pull Request for Issue # .

Summary of Changes

As title says, this PR convert com_banners and it's module to Namespace MVC.

Testing Instructions

  1. Install Joomla 4 (with sample data for easier testing)
  2. Apply patch
  3. Access to com_banners from backend of the site, try to add/edit/publish/unpublish, delete Banners, Clients, make sure it is working as expected.
  4. Edit the Support Joomla! banner, look at Banner Details tab, set Track Impressions and Track Clicks parameter to Yes (so that you can test Tracks management in later step
  5. Access to frontend, click on Banner link in All Modules module. There will be a banner displayed, click on it, see that it works
  6. Access to com_banners from backend again, try to access to Tracks link, see list of Tracks. Click on Export Button and make sure the tracks data is downloaded

Overall, the test is just to make sure it works as how it was (non-namespaced version)

avatar joomdonation joomdonation - open - 23 Apr 2017
avatar joomdonation joomdonation - change - 23 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Apr 2017
Category Administration com_banners Front End
avatar joomdonation
joomdonation - comment - 23 Apr 2017

If you review code, please ignore the ugly code in the banner module which register component autoloader. Once the autoload PR from @laoneo merged, we can remove that ugly code

f3d97d6 23 Apr 2017 avatar joomdonation CS
avatar joomdonation joomdonation - change - 23 Apr 2017
Labels Added: ?
avatar rjcf18
rjcf18 - comment - 25 Apr 2017

I have tested this item ? unsuccessfully on f3d97d6

In banners found no problems adding, deleting, editing, publishing and unpublishing items, however on clients found problems adding or editing a client (no problems publishing/unpublishing, archiving and deleting clients):
deepinscreenshot20170425021850

Also found another problem unpinning banners:
deepinscreenshot20170425021620


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15481.
avatar rjcf18 rjcf18 - test_item - 25 Apr 2017 - Tested unsuccessfully
avatar joomdonation
joomdonation - comment - 25 Apr 2017

Many thanks for testing @rjcf18. There were some typos and I fxied it. Please help testing it again

avatar joomdonation
joomdonation - comment - 25 Apr 2017

Regarding the Tracks, according to your screenshot, it is downloaded properly :)

avatar rjcf18
rjcf18 - comment - 25 Apr 2017

No problem. Let me test it again ;)

avatar rjcf18 rjcf18 - test_item - 25 Apr 2017 - Tested successfully
avatar rjcf18
rjcf18 - comment - 25 Apr 2017

I have tested this item successfully on 8e3c24c

Tested everything in banners and clients, no longer any problems, banner on frontend working, tracks exporting also working well. Everything seems to be fixed now.

deepinscreenshot20170425040035

deepinscreenshot20170425040413

deepinscreenshot20170425040644


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15481.
avatar joomdonation
joomdonation - comment - 25 Apr 2017

Many thanks again for testing Ricardo.

avatar rjcf18
rjcf18 - comment - 25 Apr 2017

No problem :)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Apr 2017

I have tested this item ? unsuccessfully on 8e3c24c

> 5. Access to frontend, click on Banner link in All Modules module. There will be a banner displayed, click on it, see that it works

At this Step got: Fatal error: Class 'Joomla\Component\Banners\Administrator\Helper\BannersHelper' not found in /Applications/MAMP/htdocs/J4/administrator/components/com_banners/helpers/banners.php on line 17


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 25 Apr 2017 - Tested unsuccessfully
avatar joomdonation
joomdonation - comment - 25 Apr 2017

Could you please let me know exactly on what step you get this error? Right after you click on Banner link in All Modules or click on the banner ?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Apr 2017

Right after click on "Banner"-Link in "All Modules".

avatar joomdonation
joomdonation - comment - 25 Apr 2017

Strange. It works well here for me. Could you please zip the folder modules\mod_banners in your install and attach it here so that I can take a look? I am thinking that there might be some old files left and it causes the issue

Or if it is possible, please download a fresh copy of my branch https://github.com/joomdonation/joomla-cms/tree/namespace_com_banners , install and test it (just need to start from step #5 to save time)

Thanks for help testing

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Apr 2017
avatar joomdonation
joomdonation - comment - 25 Apr 2017

The module you sent me is still using the old code, that explains why it doesn't work for you. See the the code of new file https://github.com/joomdonation/joomla-cms/blob/namespace_com_banners/modules/mod_banners/mod_banners.php

Maybe patchtester doesn't work well. Please install a copy of my branch https://github.com/joomdonation/joomla-cms/tree/namespace_com_banners and help testing it again

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Apr 2017

Installing your branch got:
bildschirmfoto 2017-04-25 um 11 50 14

avatar rjcf18
rjcf18 - comment - 25 Apr 2017

I didn't have that problem. It may very likely be a patchtester problem, I used git and cloned this PR, did a fresh installation and found no problems, everything works fine.

avatar joomdonation
joomdonation - comment - 25 Apr 2017

@franz-wohlkoenig Please give it a final try

  1. Option 1 : Replace the modules/mod_banners folder on your install with the module I attached here

  2. Or download my branch again https://github.com/joomdonation/joomla-cms/archive/namespace_com_banners.zip (I just synchronized with 4.0-dev brach), install and test it

avatar joomdonation
joomdonation - comment - 25 Apr 2017

Hmm, for some reason, the zip module could not be uploaded. So I think the easiest way would be download my branch https://github.com/joomdonation/joomla-cms/archive/namespace_com_banners.zip , install and test it

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Apr 2017

Will test on your branch.

avatar joomdonation
joomdonation - comment - 25 Apr 2017

Thanks. I downloaded, tested and make sure it is installed properly :)

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Apr 2017

I have tested this item successfully on d22ae78


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 25 Apr 2017 - Tested successfully
avatar joomdonation
joomdonation - comment - 25 Apr 2017

Thanks. Please mark this as ready to commit as we now have two successful tests. Look like the test result from Ricardo was reset for some reasons

@wilsonge This can be merged now. I will take care of necessary changes once autoload PR is merged (just need to remove some lines of code from the module)

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 25 Apr 2017 - rjcf18: Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 Apr 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Apr 2017

RTC after two successful tests.

avatar wilsonge wilsonge - change - 25 Apr 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-25 11:23:43
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 25 Apr 2017
avatar wilsonge wilsonge - merge - 25 Apr 2017
avatar rjcf18
rjcf18 - comment - 25 Apr 2017

My test results were for a previous commit thats why it looks like it was reset :)

avatar joomdonation
joomdonation - comment - 25 Apr 2017

Thanks all :)

avatar wilsonge
wilsonge - comment - 25 Apr 2017

Thanks :)

Add a Comment

Login with GitHub to post a comment