? ? Pending

User tests: Successful: Unsuccessful:

avatar sakiss
sakiss
28 Jun 2021

Pull Request for Issue # .

Summary of Changes

The function getFinderPluginId is called more than once in the com_finder component (e.g. called both in the controller and the view in the same cycle). There is no need to query the database for something already fetched.

Testing Instructions

  1. Disable the "Smart Search Content Plugin".
  2. Check the warning message at the top of the Smart Search component.
  3. Click the link with the plugin name, in the warning to open the plugin's modal.

Actual result BEFORE applying this Pull Request

Click the link in the warning to open the plugin's modal.

Expected result AFTER applying this Pull Request

Click the link in the warning to open the plugin's modal.

Documentation Changes Required

No

avatar sakiss sakiss - open - 28 Jun 2021
avatar sakiss sakiss - change - 28 Jun 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jun 2021
Category Administration com_finder
avatar sakiss sakiss - change - 28 Jun 2021
Labels Added: ?
avatar sakiss sakiss - change - 28 Jun 2021
The description was changed
avatar sakiss sakiss - edited - 28 Jun 2021
avatar sakiss sakiss - change - 28 Jun 2021
The description was changed
avatar sakiss sakiss - edited - 28 Jun 2021
avatar sakiss sakiss - change - 28 Jun 2021
The description was changed
avatar sakiss sakiss - edited - 28 Jun 2021
avatar RickR2H RickR2H - test_item - 29 Jun 2021 - Tested successfully
avatar RickR2H
RickR2H - comment - 29 Jun 2021

I have tested this item successfully on e86933d

Popup still works!


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

avatar alikon alikon - test_item - 30 Jun 2021 - Tested successfully
avatar alikon
alikon - comment - 30 Jun 2021

I have tested this item successfully on e86933d


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

avatar alikon alikon - change - 30 Jun 2021
Status Pending Ready to Commit
avatar alikon
alikon - comment - 30 Jun 2021

RTC


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

avatar joomdonation
joomdonation - comment - 30 Jun 2021

Shouldn't we use our existing library method https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Extension/ExtensionHelper.php#L422 for this task? Something like

ExtensionHelper::getExtensionRecord('finder', 'plugin', 0, 'content')->extension_id;

avatar sakiss
sakiss - comment - 30 Jun 2021

Shouldn't we use our existing library method https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Extension/ExtensionHelper.php#L422 for this task? Something like

ExtensionHelper::getExtensionRecord('finder', 'plugin', 0, 'content')->extension_id;

@joomdonation The PR intents to improve the existing logic. You can create a new PR for changing the logic completely.

avatar sakiss sakiss - change - 30 Jun 2021
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2021-06-30 09:51:45
Closed_By sakiss
Labels Added: ?
avatar sakiss sakiss - close - 30 Jun 2021
avatar sakiss sakiss - change - 30 Jun 2021
Status Closed New
Closed_Date 2021-06-30 09:51:45
Closed_By sakiss
Labels Removed: ?
avatar sakiss sakiss - change - 30 Jun 2021
Status New Pending
avatar sakiss sakiss - reopen - 30 Jun 2021
avatar richard67 richard67 - change - 30 Jun 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 30 Jun 2021

RTC again after it has been closed by the author by accident, it seems.


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

avatar wilsonge wilsonge - close - 2 Jul 2021
avatar wilsonge wilsonge - merge - 2 Jul 2021
avatar wilsonge wilsonge - change - 2 Jul 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-07-02 07:21:40
Closed_By wilsonge
Labels Added: ?
avatar wilsonge
wilsonge - comment - 2 Jul 2021

Merging this as it’s clearly an improvement but @joomdonation youre right - definitely would be happy to see a PR using the library method

avatar joomdonation
joomdonation - comment - 8 Jul 2021

@wilsonge I made PR #34738 as agreed. Sorry for could not do that earlier, was too busy.

Add a Comment

Login with GitHub to post a comment