? ? ? Pending

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
21 Apr 2019

Pull Request to add a Component filter to the "Menus: Items" overview.
It's PR #23566 re-done for Joomla 4.

Summary of Changes

This PR adds a Component filter to the menu items overview so that you can filter on specific Components.
Before Patch

menu-component-filter-before

Testing Instructions

  • Install the PR.
  • Open the Menus: All Menu Items page (Menus > All Menu Items)
  • Create a menu item of type Contact - Single Contact
  • Click on "Search Tools",
  • Select a component (e.g. Contacts)

Expected result

The list of menu items should be filtered to only show menu items to views of that selected Component.

menu-component-filter-after

avatar pe7er pe7er - open - 21 Apr 2019
avatar pe7er pe7er - change - 21 Apr 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 Apr 2019
Category Administration com_menus
avatar richard67
richard67 - comment - 21 Apr 2019

I have tested this item successfully on ac6b7ec


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

avatar richard67
richard67 - comment - 21 Apr 2019

I have tested this item successfully on ac6b7ec


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

avatar richard67 richard67 - test_item - 21 Apr 2019 - Tested successfully
avatar pe7er
pe7er - comment - 21 Apr 2019

btw: @Tchangue created a similar PR: [4.0] Implementation of feature 'filter menu items by component' #21358

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Apr 2019

@pe7er closing #21358?

avatar brianteeman
brianteeman - comment - 21 Apr 2019

Yes close #21358 as it has clearly been abandoned

avatar pe7er pe7er - change - 21 Apr 2019
Labels Added: ?
avatar richard67
richard67 - comment - 21 Apr 2019

I have tested this item successfully on 43bb5c1


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

avatar richard67 richard67 - test_item - 21 Apr 2019 - Tested successfully
avatar infograf768
infograf768 - comment - 22 Apr 2019

COM_MENUS_FILTER_COMPONENT_LABEL ini string missing.

avatar brianteeman
brianteeman - comment - 22 Apr 2019

I have tested this item successfully on f57ee0e


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

avatar brianteeman
brianteeman - comment - 22 Apr 2019

I have tested this item successfully on f57ee0e


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

avatar brianteeman brianteeman - test_item - 22 Apr 2019 - Tested successfully
avatar brianteeman
brianteeman - comment - 22 Apr 2019

COM_MENUS_FILTER_COMPONENT_LABEL ini string missing.

No it's not - the string didn't need to be added to this PR as it already existed.

image

avatar richard67
richard67 - comment - 22 Apr 2019

Hmm, I can't find the string "COM_MENUS_FILTER_COMPONENT_LABEL" in any language file.

When searching for "- Select Component -", I find:

administrator\language\en-GB\en-GB.com_menus.ini:COM_MENUS_OPTION_SELECT_COMPONENT="- Select Component -"
administrator\language\en-GB\en-GB.com_users.ini:COM_USERS_OPTION_SELECT_COMPONENT="- Select Component -"

avatar brianteeman
brianteeman - comment - 22 Apr 2019

I have tested this item 🔴 unsuccessfully on f57ee0e


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

avatar brianteeman brianteeman - test_item - 22 Apr 2019 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 22 Apr 2019

oops - my apologies. The label is indeed missing. I need more coffee

avatar richard67
richard67 - comment - 22 Apr 2019

Same for me, more coffee ;-)

avatar richard67
richard67 - comment - 22 Apr 2019

But why did everything look ok then when teesting it?

avatar richard67
richard67 - comment - 22 Apr 2019

I have not tested this item.


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

avatar richard67
richard67 - comment - 22 Apr 2019

I have not tested this item.


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

avatar richard67 richard67 - test_item - 22 Apr 2019 - Not tested
avatar brianteeman
brianteeman - comment - 22 Apr 2019

@richard67 View the source. The label is only visible for screen readers

avatar richard67
richard67 - comment - 22 Apr 2019

@brianteeman And what would be the right change? Add the missing text "COM_MENUS_FILTER_COMPONENT_LABEL" to the language file? Or use another already existing text with the same content, i.e. "COM_MENUS_OPTION_SELECT_COMPONENT"?

avatar infograf768
infograf768 - comment - 22 Apr 2019

just compare with the other similar filters label in the ini file, i.e value should be “Component” if I do not mistake.

avatar joomla-cms-bot joomla-cms-bot - change - 23 Apr 2019
Category Administration com_menus Administration com_menus Language & Strings
avatar pe7er
pe7er - comment - 23 Apr 2019

I've made the suggested corrections.
Thank you all for the corrections and for testing!

avatar richard67
richard67 - comment - 23 Apr 2019

I have tested this item successfully on 7c6176b


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

avatar richard67 richard67 - test_item - 23 Apr 2019 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Apr 2019

@brianteeman can you please retest?

avatar infograf768 infograf768 - change - 24 Apr 2019
Labels Added: ?
avatar sanderpotjer
sanderpotjer - comment - 4 May 2019

I have tested this item successfully on 6bad408


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

avatar sanderpotjer sanderpotjer - test_item - 4 May 2019 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 May 2019

@richard67 can you please retest?

avatar alikon
alikon - comment - 5 May 2019

I have tested this item successfully on 6bad408


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

avatar alikon alikon - test_item - 5 May 2019 - Tested successfully
avatar alikon alikon - change - 5 May 2019
Status Pending Ready to Commit
avatar alikon
alikon - comment - 5 May 2019

RTC


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

avatar infograf768 infograf768 - change - 5 May 2019
Labels Added: ?
avatar pe7er
pe7er - comment - 5 May 2019

Thanks for testing @sanderpotjer @alikon

avatar richard67
richard67 - comment - 18 May 2019

@franz-wohlkoenig Any reason why this is not merged? Has 2 good tests, has RTC, drone and appveyor failures seem not to be related to this PR. Only thing is it needs a "rebase" (i.e. merge from 4.0-dev).

avatar infograf768
infograf768 - comment - 18 May 2019

@richard67
Please ping @wilsonge when you want to get attention for 4.0 merging.

avatar richard67
richard67 - comment - 18 May 2019

@wilsonge Any reason why this is not merged? Has 2 good tests, has RTC, drone and appveyor failures seem not to be related to this PR. Only problem is that "rebase" merge commits kill the test results in the issue tracker. Bul last "rebase" was clean, so test results are still valid.

avatar infograf768
infograf768 - comment - 18 May 2019

Looks like we have an issue with drone. Informed maintainers.

avatar richard67
richard67 - comment - 18 May 2019

@infograf768 Thanks, and thanks for helping me with pinging the right people.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 May 2019

@richard67 mergin j3 is @HLeithner j4 @wilsonge. i'm only managing at a low level ;-)

avatar richard67
richard67 - comment - 18 May 2019

@franz-wohlkoenig Yes, JM meanwhile englighted me that I was pinging the wrong people.

avatar roland-d
roland-d - comment - 19 May 2019

@pe7er I have removed the RTC because I am failing to make this work.

The component filter works fine for me on the All Menu Items but when I go to the Main menu, the filter won't be applied nor will it stick as selected.

This works:
image

This does not work:
image

As you can see my selection is not there.

Another issue is, when I do select a filter on the All Menu Items and I go to Main Menu, the filter cannot be reset. The screen will be stuck to this:
image

Finally, I am missing this code in the populateState function:

$componentName = $this->getUserStateFromRequest($this->context . '.filter.componentName', 'filter_componentName');
		$this->setState('filter.componentName', $componentName);
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 May 2019

@roland-d RTC is set.

avatar roland-d
roland-d - comment - 19 May 2019

I have tested this item 🔴 unsuccessfully on bb364f8

The filter is not working on all pages. See my comment.


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

avatar roland-d roland-d - test_item - 19 May 2019 - Tested unsuccessfully
avatar infograf768
infograf768 - comment - 19 May 2019

Testing now

avatar roland-d
roland-d - comment - 19 May 2019

@franz-wohlkoenig It was the bot, I now marked my test as unsuccessful, hopefully that will stop it :)

avatar roland-d
roland-d - comment - 19 May 2019

I am powerless to the bot 😄

Although it should not mark it RTC when there is a failed test.

avatar infograf768
infograf768 - comment - 19 May 2019

Agree with @roland-d findings. Same errors here.

avatar alikon alikon - change - 19 May 2019
Status Ready to Commit Pending
Labels
avatar alikon
alikon - comment - 19 May 2019

back to pending


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

avatar alikon
alikon - comment - 19 May 2019

back to pending


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

avatar brianteeman
brianteeman - comment - 19 May 2019

@roland-d I haven't tested it as I am still traveling but won't namespacing the XML type cause issues with the way that custom elements are used?

avatar roland-d
roland-d - comment - 19 May 2019

It is not about the file itself but just the field name. Perhaps I should have used the word camel case instead of namespace as that seems to be a loaded word 😜

avatar uthorat uthorat - test_item - 19 Oct 2019 - Tested successfully
avatar uthorat
uthorat - comment - 19 Oct 2019

I have tested this item successfully on bb364f8

Able to select the menu from all menu & main menu section as per component selection Also able to reset the filters.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24665.
avatar Neppert Neppert - test_item - 19 Oct 2019 - Tested unsuccessfully
avatar Neppert
Neppert - comment - 19 Oct 2019

I have tested this item 🔴 unsuccessfully on bb364f8

The result was not quite negative, because in the test installation on joomlapbf.com no component was found connected to the menu data - so there could not be displayed a data list of components to filter. I just saw a void input field.


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

avatar deepa-g deepa-g - test_item - 19 Oct 2019 - Tested unsuccessfully
avatar deepa-g
deepa-g - comment - 19 Oct 2019

I have tested this item 🔴 unsuccessfully on bb364f8


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

avatar nadjak77 nadjak77 - test_item - 19 Oct 2019 - Tested successfully
avatar nadjak77
nadjak77 - comment - 19 Oct 2019

I have tested this item successfully on bb364f8

works like subscriped


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

avatar neotrendch neotrendch - test_item - 19 Oct 2019 - Tested unsuccessfully
avatar neotrendch
neotrendch - comment - 19 Oct 2019

I have tested this item 🔴 unsuccessfully on bb364f8

tested unsuccessfully, 5th field is not a dropdown, but a text input field


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

avatar adiheutschi adiheutschi - test_item - 19 Oct 2019 - Tested unsuccessfully
avatar adiheutschi
adiheutschi - comment - 19 Oct 2019

I have tested this item 🔴 unsuccessfully on bb364f8

For me, only a text box appears

Printscreen

Printscreen

Setting Value
PHP Built On Linux server2.adiheutschi.ch 3.10.0-962.3.2.lve1.5.24.9.el7.x86_64 #1 SMP Wed Feb 13 08:24:50 EST 2019 x86_64
Database Type mysql
Database Version 10.2.27-MariaDB
Database Collation latin1_swedish_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.3.10
Web Server LiteSpeed
WebServer to PHP Interface litespeed
Joomla! Version Joomla! 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36


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

avatar idefax idefax - test_item - 19 Oct 2019 - Tested unsuccessfully
avatar idefax
idefax - comment - 19 Oct 2019

I have tested this item 🔴 unsuccessfully on bb364f8

It does not work. It adds a textfield with no value instead of a dropdown.

Screenshot

PHP Version 7.3.8
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 4.0.0-beta1-dev Development [ Amani ] 17-October-2019 20:21 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0


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

avatar berndkohlen
berndkohlen - comment - 19 Oct 2019

Does not work with "Contacts". Needs the component name "com_contact".
grafik

avatar pe7er
pe7er - comment - 27 Apr 2020

Thank you all for testing & your suggestions for improvements!

As I did not have the branch for this PR in my local git repo (hence it says "from unknown repository"),
I redid the PR with the suggested improvements.

New PR: #28832

I'm closing this one...

avatar pe7er pe7er - change - 27 Apr 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-04-27 12:48:38
Closed_By pe7er
Labels Added: ?
avatar pe7er pe7er - close - 27 Apr 2020

Add a Comment

Login with GitHub to post a comment