? Success

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
8 Jan 2015

This PR fixes the $hits_class generation for backend mod_popular

current behavior

every time the class is info

expected behavior

class should change for the hits. (red/yellow/blue)

Changes

Why we move it to red if the hits is more than 100? All my artikles have more that 100 hits (thats in that list) Maybe we need to increase the vaules?

Example
10.000 -> important
1.000 -> warning
all others -> info

$hits_class = ($hits >= 10000 ? 'important' : ($hits >= 1000 ? 'warning' : 'info'));

Orginal Bug reported in german

http://www.joomlaportal.de/joomla-3-x-erweiterungen-module/316386-kleiner-bug-mod_popular.html

avatar zero-24 zero-24 - open - 8 Jan 2015
avatar jissues-bot jissues-bot - change - 8 Jan 2015
Labels Added: ?
avatar zero-24
zero-24 - comment - 8 Jan 2015

Here two screenshots.

current behavior
current_behavior

expected/new behavior
fixed_mod_popular

How to test

  • install staging with testing sample data.
  • generate a lots of hits (or add them in the database)
  • see that they still blue
  • apply the patch
  • notice that they can have blue yellow and red as per hits

Alternative

avatar zero-24 zero-24 - change - 8 Jan 2015
Category Administration Modules UI/UX
avatar richard67
richard67 - comment - 8 Jan 2015

@test Tested with success.


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

avatar richard67 richard67 - test_item - 8 Jan 2015 - Tested successfully
avatar richard67
richard67 - comment - 8 Jan 2015

screen shot 2015-01-08 at 17 23 41


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

avatar chmst
chmst - comment - 8 Jan 2015

@test - it works as described.

avatar zero-24 zero-24 - alter_testresult - 9 Jan 2015 - chmst: Tested successfully
avatar zero-24
zero-24 - comment - 9 Jan 2015

Thanks @chmst and @richard67 moving here to RTC


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

avatar zero-24 zero-24 - change - 9 Jan 2015
Status Pending Ready to Commit
avatar teccrow
teccrow - comment - 9 Jan 2015

Hello, I wrote the report in the German forum. Before the change, there were 4 different colors (red >0 100, yellow >= 25, blue >= 10 and gray <10). After the change, there are only 3 colors (red, yellow, blue).

It would be better with the new values to use all 4 colors.

avatar jissues-bot jissues-bot - change - 9 Jan 2015
Labels Added: ?
avatar zero-24
zero-24 - comment - 9 Jan 2015

Thanks @teccrow

I have just add gray back. zero-24@2cf23b9

Expected after the change

  • >=10.000 -> important --> red
  • >=1.000 -> warning --> Yellow
  • =>100 -> info --> blue
  • others -> none --> gray
avatar zero-24
zero-24 - comment - 9 Jan 2015

@teccrow can you test the last changes?

the simples way is the patchtester:
https://docs.joomla.org/Component_Patchtester_for_Testers

Just install the patchtester component (via install from URL):
https://github.com/joomla-extensions/patchtester/releases/download/2.0.beta/com_patchtester.zip

After this apply the patch via com_patchtester:

  • Access the component in backend and klick the apply button for this patch (see title and ID)
  • test / Review that it works.
  • comment here.

see: https://www.youtube.com/watch?v=4OWgusZgIfk

Thanks. :+1:

avatar teccrow
teccrow - comment - 9 Jan 2015

if I use the patch, the extension does not work anymore because the file "default.php" is empty

avatar zero-24
zero-24 - comment - 9 Jan 2015

@teccrow as per message.

it works ok here (just tested) which version of joomla you use? I'm on 3.4-dev: http://developer.joomla.org/cms-packages/

can you revert and after this apply it again?

maybe you can try a clean install of joomla?

avatar teccrow
teccrow - comment - 9 Jan 2015

The test with the patch-tester does not work. The file is empty.

But when manually replacing the file everything works fine.

fixed_hits

avatar zero-24 zero-24 - alter_testresult - 9 Jan 2015 - teccrow: Tested successfully
avatar zero-24
zero-24 - comment - 9 Jan 2015

Thanks @teccrow moving back to RTC


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

avatar rdeutz rdeutz - close - 15 Jan 2015
avatar zero-24 zero-24 - close - 15 Jan 2015
avatar rdeutz rdeutz - change - 15 Jan 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-01-15 22:01:36
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment