? ? Pending

User tests: Successful: Unsuccessful:

avatar SharkyKZ
SharkyKZ
23 May 2019

Pull Request for Issue #22395.

Summary of Changes

Corrects links to archived articles in search results.

Testing Instructions

Make sure Archived Articles option is enabled in Search - Content plugin.

Create an article. Set status to archived.
Search for the article using standard search (com_search).
Inspect link to article in search results.

Expected result

Link opens article, e.g. http://localhost/index.php/site-map/articles/9-uncategorised/67-whats-new-in-15

Actual result

Link opens archived view, e.g. http://localhost/index.php/using-joomla/extensions/components/content-component/archived-articles/2019?view=archive&month=5

Documentation Changes Required

No.

avatar SharkyKZ SharkyKZ - open - 23 May 2019
avatar SharkyKZ SharkyKZ - change - 23 May 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 May 2019
Category Front End Plugins
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2019
avatar beejay41
beejay41 - comment - 23 May 2019

@HerKle @beejay41 please test > https://docs.joomla.org/Testing_Joomla!_patches

I've applied the change to my test system and it now returns the expected link. Bug fixed.

My only criticism is that there are now 2 identical pieces of code ( for normal and archived articles), so if there is a need to make changes in future, the duplicate (archive) code could be overlooked. Also, only do things once.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2019
avatar SharkyKZ
SharkyKZ - comment - 23 May 2019

@beejay41 I was thinking the same thing. But I'll leave code cleanup for another time.

I'm also not sure whether the queries are correct. They don't look for articles in archived categories.

avatar alikon
alikon - comment - 23 May 2019

there is no archived category iirc it's a value of the state field maybe (2)

avatar brianteeman
brianteeman - comment - 23 May 2019

This doesnt look correct to me. You need to also see what the archive module and archive view create

avatar SharkyKZ
SharkyKZ - comment - 23 May 2019

@alikon same thing. Query looks for articles in published but not in archived categories. Both when looking for published and archived articles.

avatar SharkyKZ
SharkyKZ - comment - 23 May 2019

@brianteeman this is fine. Links to archive view were added as a workaround for some 1.5 issue. See https://developer.joomla.org/joomlacode-archive/issue-23764.html.

avatar beejay41 beejay41 - test_item - 23 May 2019 - Tested successfully
avatar beejay41 beejay41 - test_item - 23 May 2019 - Tested successfully
avatar beejay41 beejay41 - test_item - 23 May 2019 - Tested successfully
avatar beejay41
beejay41 - comment - 23 May 2019

@beejay41 please mark your test as successfully > https://docs.joomla.org/Testing_Joomla!_patches#Recording_test_results

Sorry, new to this. I did as requested, and it looks to have updated the Joomla tracker, but not here. 2FA error, but I'm not using 2FA anywhere here.

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 23 May 2019 - beejay41: Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2019

tried to alter test of @beejay41 but get:

Screen Shot 2019-05-23 at 15 44 01

avatar alikon alikon - alter_testresult - 23 May 2019 - beejay41: Tested successfully
avatar brianteeman
brianteeman - comment - 23 May 2019

@franz-wohlkoenig you will need to speak to @HLeithner about this. There has been a change in the authentication settings on github which you are hitting and need to resolve

avatar infograf768 infograf768 - alter_testresult - 23 May 2019 - beejay41: Tested unsuccessfully
avatar HLeithner
HLeithner - comment - 23 May 2019

Michael is working on this problem.

avatar brianteeman
brianteeman - comment - 23 May 2019

@HLeithner I assumed someone was - I just wanted to let @franz-wohlkoenig know

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2019

thanks for info, guys.

@beejay41 so please wait until this Problem is solved.

avatar mbabker mbabker - alter_testresult - 23 May 2019 - beejay41: Tested successfully
avatar mbabker
mbabker - comment - 23 May 2019

It's all sorted.

avatar infograf768
infograf768 - comment - 23 May 2019

@mbabker
In the meanwhile this PR is not displaying in issues:
#24993

Can you help?

avatar mbabker
mbabker - comment - 23 May 2019

Comment on it, update it, do anything that triggers a webhook from GitHub to the tracker and that will sort it. It'll take me longer to log into the server and run the CLI command than it will for someone to do that.

avatar infograf768
infograf768 - comment - 23 May 2019

tks, that worked.

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 23 May 2019 - beejay41: Not tested
avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 23 May 2019 - beejay41: Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2019

thanks @mbabker

@beejay41 your testresult is altered.

avatar infograf768 infograf768 - alter_testresult - 23 May 2019 - Quy: Tested successfully
avatar infograf768 infograf768 - alter_testresult - 23 May 2019 - Quy: Not tested
avatar beejay41
beejay41 - comment - 23 May 2019

thanks @mbabker

@beejay41 your testresult is altered.

Cheers.

avatar Quy
Quy - comment - 5 Jun 2019

I have tested this item successfully on ba42aa2


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

avatar Quy Quy - test_item - 5 Jun 2019 - Tested successfully
avatar Quy Quy - change - 5 Jun 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 5 Jun 2019

RTC


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

avatar Quy
Quy - comment - 5 Jun 2019

RTC


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

avatar SniperSister SniperSister - change - 9 Jun 2019
Labels Added: ?
avatar SniperSister SniperSister - change - 9 Jun 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-09 08:45:30
Closed_By SniperSister
avatar SniperSister SniperSister - close - 9 Jun 2019
avatar SniperSister SniperSister - merge - 9 Jun 2019
avatar SniperSister
SniperSister - comment - 9 Jun 2019

Merged, thanks!

Add a Comment

Login with GitHub to post a comment