? ? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
27 Mar 2016

Unfortunately this PR does a lot. It started just trying to clean up some of the tests but then several bits of dead code and bug fixes were needed to, so...

Summary of Changes

This PR makes the following changes:

  • General changes
    • Creates an abstract TestCaseCache for all JCacheStorage handler tests and rewrites the test classes for those objects to use this test case (results in more consistent testing of all handlers when the environment supports it)
    • Standardizes doc blocks on all JCache classes for full consistency and removes some outdated or unneeded comments
    • Uses late static bindings where practical (enables better class inheritance)
  • Bug fixes
    • JCacheStorageMemcache::store() was manipulating the handler's lifetime setting after being instantiated
    • JCacheStorageRedis::store() was manipulating the handler's lifetime setting after being instantiated, had some dead code (copy/paste from Memcache(d) not needed here), and used a hardcoded lifetime instead of the handler's configured lifetime

Testing Instructions

avatar mbabker mbabker - open - 27 Mar 2016
avatar mbabker mbabker - change - 27 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Mar 2016
Labels Added: ? ?
avatar brianteeman brianteeman - change - 27 Mar 2016
Category Cache Libraries Unit Tests
avatar brianteeman brianteeman - change - 27 Mar 2016
Labels
avatar brianteeman
brianteeman - comment - 27 Mar 2016

(a bit above my skill set but sounds like this might address some existing issues here https://issues.joomla.org/tracker/joomla-cms/?state=open&sort=issue&direction=desc&category=cache&stools-active=1 )


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

avatar mbabker mbabker - change - 27 Mar 2016
Labels
avatar mbabker
mbabker - comment - 27 Mar 2016

#9382 is included in here. #8707 I've added the fix for (when JCache creates a handler the lifetime is already injected in as a constructor parameter and JCacheStorage handles conversion of minutes to seconds, as noted there this line just screws things up). Ironically #6796 also makes that same change based on #2539.

avatar brianteeman
brianteeman - comment - 27 Mar 2016

Thanks for checking can you update those issues as needed

On 27 March 2016 at 19:12, Michael Babker notifications@github.com wrote:

#9382 #9382 is included in
here. #8707 #8707 I've added
the fix for (when JCache creates a handler the lifetime is already
injected in as a constructor parameter and JCacheStorage handles
conversion of minutes to seconds, as noted there this line just screws
things up). Ironically #6796
#6796 also makes that same
change based on #2539 #2539.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#9622 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar brianteeman
brianteeman - comment - 27 Mar 2016

@mbabker I have updated the other issues. Thanks for reviewing them

avatar andrepereiradasilva andrepereiradasilva - test_item - 28 Mar 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 28 Mar 2016

I have tested this item :white_check_mark: successfully on 9228a86

Wow that's really a massive review!

Did a code review (except the unit tests) and all seems fine.

Installed the patch turned on File cache and all seems fine.

Didn't test all the other cache handlers, but by looking at code changes, it seems fine and also corrects some bugs.


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

avatar alikon
alikon - comment - 29 Mar 2016

i've tested successfully using only the redis handler

avatar Kubik-Rubik
Kubik-Rubik - comment - 29 Mar 2016

@alikon Please use the Joomla! issue tracker to enter your test result. Thanks!

avatar Kubik-Rubik Kubik-Rubik - change - 29 Mar 2016
Milestone Added:
avatar alikon alikon - test_item - 29 Mar 2016 - Tested successfully
avatar alikon
alikon - comment - 29 Mar 2016

I have tested this item :white_check_mark: successfully on 9228a86

Tested on Redis cache handler


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

avatar brianteeman brianteeman - change - 31 Mar 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 31 Mar 2016

RTC thanks


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

avatar joomla-cms-bot joomla-cms-bot - change - 31 Mar 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 12 Apr 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-04-12 20:02:31
Closed_By rdeutz
avatar rdeutz rdeutz - reference | 6b98303 - 12 Apr 16
avatar rdeutz rdeutz - merge - 12 Apr 2016
avatar rdeutz rdeutz - close - 12 Apr 2016
avatar mbabker mbabker - head_ref_deleted - 12 Apr 2016
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Added:
avatar rdeutz rdeutz - change - 1 May 2016
Milestone Removed:
avatar brianteeman brianteeman - change - 11 May 2016
Labels Removed: ?
avatar csthomas
csthomas - comment - 18 Aug 2016

It is fixed at #11565.

avatar rdeutz
rdeutz - comment - 18 Aug 2016

@csthomas Thanks!

Add a Comment

Login with GitHub to post a comment