? Success

User tests: Successful: Unsuccessful:

avatar shur
shur
20 Jan 2016

This PR just removes part of sql request which retrieves catslug because it's not used anywhere.

There is a query part that retrieves catslug, but this catslug parameter is never used in this module and doesn't impact anything because later another catslug is created.

How to test:

Just print_r($item->catslug); after this line and make sure that this parameter is still present even after we remove this part of the sql request.

avatar shur shur - open - 20 Jan 2016
avatar shur shur - change - 20 Jan 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2016
Labels Added: ?
avatar brianteeman
brianteeman - comment - 20 Jan 2016

Before patch the list of related articles is sorted in alphabetical order
After the patch the list of related articles is not

Before

screen shot 2016-01-20 at 04 37 56

After

screen shot 2016-01-20 at 04 38 30


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

avatar brianteeman brianteeman - test_item - 20 Jan 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 20 Jan 2016

I have tested this item :red_circle: unsuccessfully on d04a7ad


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

avatar shur
shur - comment - 20 Jan 2016

@brianteeman I don't see such behavior in my tests.
Moreover this module doesn't have any ordering option at all.

avatar brianteeman
brianteeman - comment - 20 Jan 2016

I can only go by the screenshot
On 20 Jan 2016 1:06 pm, "Alex B." notifications@github.com wrote:

@brianteeman https://github.com/brianteeman I don't see such behavior
in my tests.
Moreover this module doesn't have any ordering option at all.


Reply to this email directly or view it on GitHub
#8946 (comment).

avatar Bakual
Bakual - comment - 20 Jan 2016

The difference is because there is no ordering specified in the query, which means the results are sort of random. Changing the query may result in different ordering because MySQL does a different intern processing. So that is expected behavior.

However I don't think it's good to remove the data from the query as it may be used in template overrides. Maybe it's better to just a deprecate note so it can be removed with 4.0 safely without a potential to break something.

It was only becoming obsolete with #5276, before that it was (wrongly) used to generate the URL.

avatar shur
shur - comment - 22 Jan 2016

...which means the results are sort of random.

Exactly! That's why only screenshots are not informative. Thanks for the detailed explanation.

However I don't think it's good to remove the data from the query as it may be used in template overrides. Maybe it's better to just a deprecate note so it can be removed with 4.0 safely without a potential to break something.

I was the one who insisted on removing catslug a while ago ( #4363 ). Yes, you are right, it can be used in template overrides. But somehow I confused the version, I thought Joomla 3.5 is the major version that is going to be without catslug.

No problem, I'll adjust this PR and add deprecated note.

avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar shur
shur - comment - 22 Jan 2016

One more crazy thing in this module. There is a query part that retrieves catslug, but this catslug parameter is never used in this module and doesn't impact anything because later another catslug is created.

That's why I deleted this part of the query.

avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar shur shur - change - 22 Jan 2016
Title
Delete unnecesary catslug from mod_related_items
Delete unnecesary catslug query from mod_related_items
avatar shur shur - change - 22 Jan 2016
The description was changed
Title
Delete unnecesary catslug from mod_related_items
Delete unnecesary catslug query from mod_related_items
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Jan 2016

This PR has received new commits.

CC: @brianteeman


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

avatar shur
shur - comment - 5 Feb 2016

How to test added to description.

avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Feb 2016

This PR has received new commits.

CC: @brianteeman


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

avatar brianteeman brianteeman - change - 1 Mar 2016
Category Router / SEF
avatar shur
shur - comment - 2 Mar 2016

Joomla 3.5 is soon to come, but this simple PR hasn't got any response for almost a month.
I'd like to know what is the final decision - include or not in Joomla 3.5?
Or maybe something else is needed from me?

avatar Bakual
Bakual - comment - 2 Mar 2016

As it has no tests, it will not go into 3.5. Simple as that.

avatar joomla-cms-bot
joomla-cms-bot - comment - 14 Apr 2016

This PR has received new commits.

CC: @brianteeman


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

avatar euismod2336 euismod2336 - test_item - 4 Nov 2016 - Tested successfully
avatar euismod2336
euismod2336 - comment - 4 Nov 2016

I have tested this item successfully on 83b85b8

Deprecated message is added and output is unchanged.


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

avatar Martijn-Boomsma Martijn-Boomsma - test_item - 4 Nov 2016 - Tested successfully
avatar Martijn-Boomsma
Martijn-Boomsma - comment - 4 Nov 2016

I have tested this item successfully on 83b85b8

I applied the patch and don't see any difference in the front-end as it shouldn't.


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

avatar shur
shur - comment - 4 Nov 2016

Thanks for testing.

avatar dgt41 dgt41 - change - 4 Nov 2016
The description was changed
Status Pending Ready to Commit
avatar joomla-cms-bot joomla-cms-bot - edited - 4 Nov 2016
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2016
Category Router / SEF Modules Front End Router / SEF
avatar roland-d roland-d - change - 13 Nov 2016
Milestone Added:
avatar roland-d roland-d - change - 13 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-13 05:15:51
Closed_By roland-d
avatar roland-d roland-d - close - 13 Nov 2016
avatar roland-d roland-d - merge - 13 Nov 2016
avatar roland-d roland-d - reference | 90d218b - 13 Nov 16
avatar roland-d roland-d - merge - 13 Nov 2016
avatar roland-d roland-d - close - 13 Nov 2016

Add a Comment

Login with GitHub to post a comment