? Success

User tests: Successful: Unsuccessful:

avatar izharaazmi
izharaazmi
29 Aug 2015

Minimizing JArrayHelper by using Joomla\Utilities\ArrayHelper internally with appropriate deprecation warnings. All functionality of JArrayHelper is already available there, so no point keeping duplicate code.

avatar izharaazmi izharaazmi - open - 29 Aug 2015
avatar izharaazmi izharaazmi - change - 29 Aug 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Aug 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 31 Aug 2015
Category Libraries
avatar roland-d
roland-d - comment - 4 Sep 2015

@izharaazmi Does this PR need to wait for your fix in joomla-framework/utilities#12 ?

avatar izharaazmi
izharaazmi - comment - 5 Sep 2015

@roland-d No. The fix in joomla-framework/utilities#12 is independent of this PR.

avatar izharaazmi
izharaazmi - comment - 9 Sep 2015

Kindly let me know If there is something awaited from my part.

avatar roland-d
roland-d - comment - 14 Sep 2015

@izharaazmi Please provide test instructions that touches this code so users can test that nothing is broken. Code review looks good but that is not enough in this case. Thanks.

avatar izharaazmi
izharaazmi - comment - 14 Sep 2015

@roland-d There is no special instruction for this change as I have not made any logical change. No feature added or removed or fixed or improved. The normal tests that applies to JArrayHelper (without this patch) or Joomla\Utilities\ArrayHelper is applicable for this PR as well.
This means the existing unit test cases are well sufficient for this purpose.

However, I might be wrong in saying so, please enlighten me with your perspective.

avatar izharaazmi
izharaazmi - comment - 29 Sep 2015

Please advise if I need to make any changes/improvements to this.
Thanks.

avatar roland-d
roland-d - comment - 3 Oct 2015

@izharaazmi Finally I had some time to test and the proxies are working fine. Only issue I did find is you changed in the logs the names to FUNCTION and this is not working. The value of FUNCTION is always empty, so I would suggest to revert this change. So your point that the existing unit test cases are sufficient is not correct because they do not test the logging.

To test this issue, you will need to enable debugging mode with XDebug for example to see the changes at work. Editing a category will trigger most changed methods except for the pivot and arrayUnique methods, these are only unit tested.

avatar roland-d roland-d - test_item - 3 Oct 2015 - Tested unsuccessfully
avatar roland-d
roland-d - comment - 3 Oct 2015

I have tested this item :red_circle: unsuccessfully on 7f9ff9d


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 3 Oct 2015

This PR has received new commits.

CC: @roland-d


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

avatar izharaazmi
izharaazmi - comment - 3 Oct 2015

I just tested the 5 methods in JArrayHelper with object type arguments. I got these lines in my log file. I see the __FUNCTION__ is not empty.

#Fields: datetime   priority clientip   category    message
2015-10-03T08:47:20+00:00   WARNING ::1 deprecated  This method is typehinted to be an array in \Joomla\Utilities\ArrayHelper::toObject.
2015-10-03T08:47:21+00:00   WARNING ::1 deprecated  This method is typehinted to be an array in \Joomla\Utilities\ArrayHelper::toString.
2015-10-03T08:47:21+00:00   WARNING ::1 deprecated  This method is typehinted to be an array in \Joomla\Utilities\ArrayHelper::getColumn.
2015-10-03T08:47:21+00:00   WARNING ::1 deprecated  This method is typehinted to be an array in \Joomla\Utilities\ArrayHelper::pivot.
2015-10-03T08:47:21+00:00   WARNING ::1 deprecated  This method is typehinted to be an array in \Joomla\Utilities\ArrayHelper::sortObjects.

However, I have still changed those 5 lines to fixed string for the method names.
Thanks.

avatar roland-d roland-d - test_item - 3 Oct 2015 - Tested unsuccessfully
avatar roland-d
roland-d - comment - 3 Oct 2015

I have tested this item :red_circle: unsuccessfully on ad48dac


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

avatar roland-d
roland-d - comment - 3 Oct 2015

@wilsonge Can you have a look at this too? Looks good to go for me.

avatar izharaazmi
izharaazmi - comment - 3 Oct 2015

@roland-d In your last comment you say 'looks good to me', but your recent test status says: tested unsuccessfully on ad48dac. Was there any issue?

avatar roland-d
roland-d - comment - 3 Oct 2015

@izharaazmi Look at the issue and the test results, I have set the test to successful after your last change.

avatar izharaazmi
izharaazmi - comment - 3 Oct 2015

Sorry, but I see the 2nd test too marked as 'tested unsuccessfully' only. May be I'm missing something!


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

avatar roland-d roland-d - test_item - 3 Oct 2015 - Tested successfully
avatar roland-d
roland-d - comment - 3 Oct 2015

I have tested this item :white_check_mark: successfully on ad48dac


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

avatar roland-d
roland-d - comment - 3 Oct 2015

Now it is successful :)

avatar izharaazmi
izharaazmi - comment - 3 Oct 2015

Thanks!

avatar anibalsanchez anibalsanchez - test_item - 6 Nov 2015 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 6 Nov 2015

I have tested this item :white_check_mark: successfully on ad48dac

Applied the patch and worked for a while, no issues so far. Ok


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

avatar zero-24 zero-24 - change - 6 Nov 2015
Milestone Added:
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 6 Nov 2015

RTC. for 3.5.0 Thanks.


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

avatar joomla-cms-bot joomla-cms-bot - change - 6 Nov 2015
Labels Added: ?
avatar rdeutz rdeutz - change - 16 Nov 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-11-16 20:22:34
Closed_By rdeutz
avatar rdeutz rdeutz - close - 16 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - close - 16 Nov 2015
avatar joomla-cms-bot joomla-cms-bot - change - 16 Nov 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment