NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
23 Jul 2020

Pull Request for Issue #30155

Summary of Changes

mod_menu js is comparing a lowercase url to one that may not be

Testing Instructions

Install Joomla in a subfolder and use UpperCase letters for that subfolder name.
For example:
domain.org/newFolder/

Click the "Content" item in the admin menu, it reveals its sub-items.
Click the "Articles" item.

Patch. Run npm ci and test again.

Actual result BEFORE applying this Pull Request

see #30155

The admin menu returns to its default closed state

Expected result AFTER applying this Pull Request

The admin menu remains open with the submenu highlighted, as should.

Here Joomla is in a sub-sub-folder, one of them with a Uppercase letter in its name.

Screen Shot 2020-07-23 at 08 26 05

@JackJoeJack
@PhocaCz
@Fedik

avatar infograf768 infograf768 - open - 23 Jul 2020
avatar infograf768 infograf768 - change - 23 Jul 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jul 2020
Category JavaScript Repository NPM Change
avatar infograf768
infograf768 - comment - 23 Jul 2020

@dgrammatiko
I guess you were the one who first created this js. Any comment?

avatar dgrammatiko
dgrammatiko - comment - 23 Jul 2020

It’s fine

avatar PhocaCz
PhocaCz - comment - 23 Jul 2020

I am trying to test the patch, but get following message:

"There are no files to patch from this pull request. This may mean that the files in the pull request are not present in your installation."

?

30170

Jan

avatar richard67
richard67 - comment - 23 Jul 2020

@PhocaCz This PR requires the build folder to be present and to run npm. This works only when testing on a git clone. If you have a regular installation of J4 where the build folder is not present, patchtester can't apply this PR.

avatar infograf768
infograf768 - comment - 23 Jul 2020
avatar richard67
richard67 - comment - 23 Jul 2020

Here is the link to a prebuilt package to install into your folder
https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/30170/downloads/34141/Joomla_4.0.0-beta3-dev+pr.30170-Development-Full_Package.zip

@PhocaCz Additional info: The package contains already the changes from this PR, including the results of the npm run. So just make a new installation with that package and you can test.

avatar PhocaCz
PhocaCz - comment - 23 Jul 2020

@PhocaCz This PR requires the build folder to be present and to run npm. This works only when testing on a git clone. If you have a regular installation of J4 where the build folder is not present, patchtester can't apply this PR.

I use standard composer|npm. The folder "build" is included, running npm after clicking on "apply patch" in fact didn't do any change as the patch was not applied.

build

avatar Fedik Fedik - test_item - 23 Jul 2020 - Tested successfully
avatar Fedik
Fedik - comment - 23 Jul 2020

I have tested this item βœ… successfully on 02be9f9


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

avatar richard67
richard67 - comment - 23 Jul 2020

I use standard composer|npm. The folder "build" is included, running npm after clicking on "apply patch" in fact didn't do any change as the patch was not applied.

@PhocaCz Seems to be a problem with Patchtester. @roland-d Known issue?

avatar PhocaCz
PhocaCz - comment - 23 Jul 2020

@PhocaCz Seems to be a problem with Patchtester. @roland-d Known issue?

Running Joomla! Patch Tester 4.0.0 RC2

patchtester

Testing another patch, which works OK (of course not sure if it is build with the same conditions)

another patch

avatar richard67
richard67 - comment - 23 Jul 2020

@PhocaCz It might have an issue. Maybe it is easier if you just apply the changes of this PR manually and then run "npm ci".

avatar PhocaCz
PhocaCz - comment - 23 Jul 2020

@PhocaCz It might have an issue. Maybe it is easier if you just apply the changes of this PR manually and then run "npm ci".

This is not a problem, but will I be able to automatically confirm it?

avatar richard67
richard67 - comment - 23 Jul 2020

This is not a problem, but will I be able to automatically confirm it?

@PhocaCz What do you mean with "automatically confirm"?

avatar PhocaCz PhocaCz - test_item - 23 Jul 2020 - Tested successfully
avatar PhocaCz
PhocaCz - comment - 23 Jul 2020

I have tested this item βœ… successfully on 02be9f9

Tested successfully:

Patch enabled


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

avatar JackJoeJack
JackJoeJack - comment - 23 Jul 2020

Here is the link to a prebuilt package to install into your folder
https://ci.joomla.org/artifacts/joomla/joomla-cms/4.0-dev/30170/downloads/34141/Joomla_4.0.0-beta3-dev+pr.30170-Development-Full_Package.zip

I can confirm that this fix is working, the menus behave as expected on an UpperCase subfolder.

Thank you!

avatar PhocaCz
PhocaCz - comment - 23 Jul 2020

BTW, @richard67 thank you for your help.

The problem, why I was not able to patch it, was inside "installation" folder. No idea why, but "language" folder was missing there.
After copying it back, everything went OK.

language folder missing

@PhocaCz What do you mean with "automatically confirm"?

I thought it was necessary to have an active patch in the administration to confirm. Now I see, it is not needed.

Thank you, Jan

avatar richard67
richard67 - comment - 23 Jul 2020

@JackJoeJack Could you mark your test result as successful on the issue tracker here https://issues.joomla.org/tracker/joomla-cms/30170? Just use the "Test this" button, select the right test result and submitt. Thanks in advance.

avatar richard67 richard67 - change - 23 Jul 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 23 Jul 2020

RTC


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

avatar richard67 richard67 - change - 23 Jul 2020
Labels Added: ? ? NPM Resource Changed
avatar JackJoeJack JackJoeJack - test_item - 23 Jul 2020 - Tested successfully
avatar JackJoeJack
JackJoeJack - comment - 23 Jul 2020

I have tested this item βœ… successfully on 02be9f9


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

avatar Quy Quy - close - 23 Jul 2020
avatar Quy Quy - merge - 23 Jul 2020
avatar Quy Quy - change - 23 Jul 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-07-23 13:47:13
Closed_By Quy
Labels
avatar roland-d
roland-d - comment - 23 Jul 2020

@PhocaCz The patchtester does not work for pull requests that have NPM resources changed. This is a known issue.

Add a Comment

Login with GitHub to post a comment