? ? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
8 Jul 2021

Pull Request for Issue # .

Summary of Changes

Instead of writing code to query #__extensions table to get finder plugin ID, this PR uses our extension ExtensionHelper::getExtensionRecord library method to get ID of the plugin as agreed by @wilsonge as #34645 (comment)

Testing Instructions

  1. Apply patch
  2. Go to Extensions -> Plugins, disable Content - Smart Search plugin.
  3. Access to Components -> Smart Search -> Index, there should be a warning message ask you to enable the plugin
  4. Click on the link (see the screenshot), make sure the right plugin is opened on modal popup so that you can enable it

Smart-Search-Indexed-Content-Joomla-4-Administration

Actual result BEFORE applying this Pull Request

Works, but more code than needed.

Expected result AFTER applying this Pull Request

Works and less code to maintain.

avatar joomdonation joomdonation - open - 8 Jul 2021
avatar joomdonation joomdonation - change - 8 Jul 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Jul 2021
Category Administration com_finder
avatar RickR2H RickR2H - test_item - 8 Jul 2021 - Tested successfully
avatar RickR2H
RickR2H - comment - 8 Jul 2021

I have tested this item successfully on 1981f7f

Works like described.


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

avatar alikon
alikon - comment - 9 Jul 2021

on today 4.0-dev

  1. Access to Components -> Smart Search -> Index, there should be a warning message ask you to enable the plugin

there is not

image

avatar joomdonation
joomdonation - comment - 9 Jul 2021

@alikon Did you disable the plugin Content - Smart Search ? That warning message will only be shown if the plugin is disabled.

avatar alikon
alikon - comment - 9 Jul 2021

yes i have disabled all finder plugins

avatar alikon
alikon - comment - 9 Jul 2021

ahh me silly not content smart search

avatar alikon
alikon - comment - 9 Jul 2021

anyway when clicking js error
image

avatar joomdonation
joomdonation - comment - 9 Jul 2021

Yes. Just realized that. It is because the modal is not loaded in empty state (happens before this PR, too).

If you index something, then empty state layout is not used and it should work well.

avatar alikon
alikon - comment - 9 Jul 2021

yeah , sure not depend from your pr, just discovered now me too ?

avatar joomdonation joomdonation - change - 9 Jul 2021
Labels Added: ?
avatar joomdonation
joomdonation - comment - 9 Jul 2021

@alikon Should be fixed in last commit

avatar alikon
alikon - comment - 9 Jul 2021

should'nt refresh the return page after enabling the content - smart search plugin ?

ie after clicking the link and enabling the content - smart search plugin

it report that the plugin is still disabled

image

avatar joomdonation
joomdonation - comment - 9 Jul 2021

@alikon Yes. @dgrammatiko Could you please give instructions for refresh ?

avatar brianteeman
brianteeman - comment - 9 Jul 2021

we have this update and refresh problem in lots of places

avatar sakiss
sakiss - comment - 9 Jul 2021

@joomdonation
You can refresh the page after closing the modal, using a script like that, inside the modal:

document.addEventListener('DOMContentLoaded', function() {
	document.querySelector('#Modal_id').addEventListener('hide.bs.modal', function() {
	    window.parent.location.reload();
	});
});
// Modal_id => The id of the modal window

But the "Save and Close" button is error prone, as in many cases the save will finish after the page is refreshed.

avatar joomdonation
joomdonation - comment - 9 Jul 2021

Hmm. Maybe we should do that in a separate PR, then as this is unrelated to the main change from this PR.

avatar alikon alikon - test_item - 9 Jul 2021 - Tested successfully
avatar alikon
alikon - comment - 9 Jul 2021

I have tested this item successfully on 22ca77e


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

avatar Quy Quy - test_item - 9 Jul 2021 - Tested successfully
avatar Quy
Quy - comment - 9 Jul 2021

I have tested this item successfully on 22ca77e


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

avatar Quy Quy - change - 9 Jul 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 9 Jul 2021

RTC


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

avatar wilsonge wilsonge - close - 10 Jul 2021
avatar wilsonge wilsonge - merge - 10 Jul 2021
avatar wilsonge wilsonge - change - 10 Jul 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-07-10 11:30:12
Closed_By wilsonge
Labels Added: ?
avatar wilsonge
wilsonge - comment - 10 Jul 2021

Thankyou!

Add a Comment

Login with GitHub to post a comment