Feature Language Change NPM Resource Changed PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
20 Jan 2022

Summary of Changes

In order to gain wider adoption from third party developers, we need to provide them with improved development tools. This PR implements a few features, which become visible when the debug mode is enabled.

Display indexed item

First of all we want to be able to see what has been indexed for an item. When you enable debugging, the list of entries in the index will now be linked and clicking on such an entry will give you a view which displays the common data from indexed items, the type specific items, the indexed terms and the associated taxonomies. This allows you to understand if the content was indexed the way you expected it, as well as with the weighing you expected.

Debug indexing of one specific item

Again, when debugging is enabled, a new dropdown button in the index view appears with "Index debugging". This button goes to a new view, where you can select a finder plugin and type in an ID to index and it will then run that plugin for that ID. It will then either return what has been prepared to be indexed by the indexer in the result object or whatever output the plugin generated. This should allow a developer to better write a new finder plugin to index their content.

Testing Instructions

  1. Install Joomla and provide some sample data. Please note that this PR requires "npm i" to be run again after it has been applied!
  2. Enable debugging mode in global configuration
  3. Go to Smart Search and click on an entry in the list to display the data in the index for this item
  4. Click on "Index > Index debugging" and select a finder plugin from the list.
  5. Type in an ID, for example "60" in case you are using the testing sample data, and click on "Index"

Notes

  1. The dropdown button seems to have a styling error when using a modal button as first entry. The spacing is wrong and I couldn't find out why.
  2. The Javascript is most likely "not optimal". I'm happy for corrections.
  3. I'm open for better language strings.
  4. Since 4.1 is in RC, this will have to go into 4.2. Since there is no 4.2-dev branch yet, I'm pointing this towards 4.1-dev for now.
avatar Hackwar Hackwar - open - 20 Jan 2022
avatar Hackwar Hackwar - change - 20 Jan 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jan 2022
Category Administration com_finder Language & Strings Repository NPM Change JavaScript
avatar Hackwar Hackwar - change - 20 Jan 2022
Labels Added: Language Change NPM Resource Changed ?
avatar Hackwar Hackwar - change - 20 Jan 2022
The description was changed
avatar Hackwar Hackwar - edited - 20 Jan 2022
avatar Hackwar Hackwar - change - 20 Jan 2022
The description was changed
avatar Hackwar Hackwar - edited - 20 Jan 2022
avatar richard67 richard67 - change - 20 Jan 2022
The description was changed
avatar richard67 richard67 - edited - 20 Jan 2022
avatar Hackwar Hackwar - change - 24 Jan 2022
Labels Added: ?
Removed: ?
avatar Quy
Quy - comment - 27 Jan 2022

Please change branch. Thanks.

avatar joomla-cms-bot joomla-cms-bot - change - 27 Jan 2022
Category Administration com_finder Language & Strings Repository NPM Change JavaScript Unit Tests Repository Administration com_finder Language & Strings NPM Change JavaScript Front End com_users
avatar Hackwar
Hackwar - comment - 27 Jan 2022

Hmm, that was a failure...

avatar Hackwar Hackwar - change - 27 Jan 2022
Labels Added: ?
avatar brianteeman
brianteeman - comment - 27 Jan 2022

Please update the markup of the table to follow the accessibility standards used on every table in the admin

avatar joomla-cms-bot joomla-cms-bot - change - 1 Feb 2022
Category Administration com_finder Language & Strings Repository NPM Change JavaScript Unit Tests Front End com_users Administration com_finder Language & Strings Repository NPM Change JavaScript
avatar Hackwar Hackwar - change - 3 Feb 2022
Labels Removed: ?
avatar richard67
richard67 - comment - 22 Apr 2022

@Hackwar Do you think you can implement @brianteeman 's suggestions?

avatar Hackwar Hackwar - change - 17 May 2022
Labels Added: ? PBF
avatar Hackwar
Hackwar - comment - 17 May 2022

@brianteeman can you have a look if the changes which I made would be acceptable?

avatar brianteeman
brianteeman - comment - 17 May 2022

The tables still do not have a caption. This is essential.

avatar Hackwar
Hackwar - comment - 17 May 2022

I kept the caption short. Fine like so? Can you mark those conversations then as resolved?

avatar brianteeman
brianteeman - comment - 17 May 2022

I need to review it in the browser. Which I will di in the next day or so

avatar brianteeman
brianteeman - comment - 17 May 2022

image

width issues

avatar brianteeman
brianteeman - comment - 17 May 2022

I kept the caption short. Fine like so? Can you mark those conversations then as resolved?

i do nnot have the access to mark the 3 a11y issues as resolved but they as far as i am concerned

avatar brianteeman
brianteeman - comment - 17 May 2022

image

For toolback please use the same icon and code as seen in com_workflows transitions

image

avatar Hackwar
Hackwar - comment - 18 May 2022

image

For toolback please use the same icon and code as seen in com_workflows transitions

image

I don't know how you got that, but my button already looks like the correct one.

avatar Hackwar
Hackwar - comment - 18 May 2022

image

width issues

fixed.

avatar brianteeman
brianteeman - comment - 18 May 2022

this is what I am seeing
image

image

avatar Hackwar
Hackwar - comment - 18 May 2022

It is just ToolbarHelper::back() and that is returning different code here. Maybe you got some other stuff in your codebase interfering there? That is just not what is in the code and what is being returned on my end. And comparing this with our current 4.2-dev, my version and 4.2-dev agree with each other.

avatar brianteeman
brianteeman - comment - 18 May 2022

@Hackwar I have verified once again my previous findings by building a completely new site on a new server using the pre-built package for this PR. I will submit a PR to your branch to fix that

avatar brianteeman
brianteeman - comment - 18 May 2022
avatar Hackwar
Hackwar - comment - 18 May 2022

done

avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2022
Category Administration com_finder Language & Strings Repository NPM Change JavaScript Administration com_finder Language & Strings Repository NPM Change JavaScript Libraries
avatar joomla-cms-bot joomla-cms-bot - change - 19 May 2022
Category Administration com_finder Language & Strings Repository NPM Change JavaScript Libraries Administration com_finder Language & Strings Repository NPM Change JavaScript
avatar Hackwar Hackwar - change - 21 Jun 2022
Labels Removed: ? PBF
avatar chmst
chmst - comment - 23 Jun 2022

I am confused.

I expected that I can select an item in the overview
then click on the debug action
then come to the checker view where the Id and type of the plugin are already known from the list view
and there is no need for input (can be disabled)

As it is now, I would not know how to find the Id (of course it is in the slug, but mybe users don't know that.

avatar joomla-bot
joomla-bot - comment - 27 Jun 2022

This pull requests has been automatically converted to the PSR-12 coding standard.

avatar HLeithner HLeithner - change - 27 Jun 2022
Labels Added: ?
avatar Hackwar Hackwar - change - 30 Aug 2022
Title
[4.2] Smart Search: Add debugging features
[4.3] Smart Search: Add debugging features
avatar Hackwar Hackwar - edited - 30 Aug 2022
avatar Hackwar Hackwar - change - 30 Aug 2022
Labels Added: PR-4.3-dev
avatar Hackwar Hackwar - change - 21 Oct 2022
Labels Removed: ?
avatar Hackwar Hackwar - change - 27 Oct 2022
Labels Removed: ?
avatar Quy
Quy - comment - 1 Feb 2023

Leave ID blank or enter a non-existing ID.

36753

avatar carlitorweb
carlitorweb - comment - 6 Mar 2023

@Hackwar can you fix the conflicting file here, to give a test

avatar Hackwar Hackwar - change - 8 Mar 2023
Labels Added: Conflicting Files
avatar Hackwar Hackwar - change - 23 Mar 2023
Title
[4.3] Smart Search: Add debugging features
[4.4] Smart Search: Add debugging features
avatar Hackwar Hackwar - edited - 23 Mar 2023
avatar laoneo
laoneo - comment - 28 Mar 2023

Thank you for your contribution, unfortunately the 4.4-dev branch doesn't get new features. When #40181 is merged this pr should be rebased to 5.0-dev. Thanks for understanding.

avatar joomla-cms-bot joomla-cms-bot - change - 28 Mar 2023
Category Administration com_finder Language & Strings Repository NPM Change JavaScript Administration com_banners com_config com_contact com_content com_fields com_finder
avatar Hackwar Hackwar - change - 28 Mar 2023
Title
[4.4] Smart Search: Add debugging features
[5.0] Smart Search: Add debugging features
avatar Hackwar Hackwar - edited - 28 Mar 2023
avatar Hackwar Hackwar - change - 28 Mar 2023
Labels Added: PR-5.0-dev PR-4.4-dev
Removed: Language Change Conflicting Files NPM Resource Changed PR-4.3-dev
avatar joomla-cms-bot joomla-cms-bot - change - 3 Apr 2023
Category Administration com_finder com_banners com_config com_contact com_content com_fields Administration com_finder Language & Strings Repository NPM Change JavaScript
avatar Hackwar Hackwar - change - 3 Apr 2023
Labels Removed: PR-4.4-dev
avatar HLeithner
HLeithner - comment - 3 Apr 2023

I would mark all debuging functions/class "@internal" since it's not intended to be used by 3rd party developer.

avatar Hackwar Hackwar - change - 3 Apr 2023
Labels Added: Language Change NPM Resource Changed
avatar HLeithner HLeithner - change - 7 Apr 2023
Labels Added: ?
avatar Hackwar
Hackwar - comment - 17 Apr 2023

I would like to merge this in to j5 do we already have documentation?

No, I need to write the complete documentation for Smart Search still.

avatar Hackwar Hackwar - change - 18 Apr 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-04-18 12:06:26
Closed_By Hackwar
avatar Hackwar Hackwar - close - 18 Apr 2023
avatar Hackwar Hackwar - change - 18 Apr 2023
Status Closed New
Closed_Date 2023-04-18 12:06:26
Closed_By Hackwar
avatar Hackwar Hackwar - change - 18 Apr 2023
Status New Pending
avatar Hackwar Hackwar - reopen - 18 Apr 2023
avatar HLeithner HLeithner - close - 29 May 2023
avatar HLeithner HLeithner - merge - 29 May 2023
avatar HLeithner HLeithner - change - 29 May 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-05-29 08:16:23
Closed_By HLeithner
Labels Added: Feature
Removed: ?
avatar HLeithner
HLeithner - comment - 29 May 2023

Thanks

Add a Comment

Login with GitHub to post a comment