NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
16 Apr 2020

Pull Request for Issue comment in #28211 (comment)

Summary of Changes

Note: This does NOT close the issue above, it's just a fix.

In JS, you cannot call a static function from within the instance using this.foo().

Testing Instructions

  1. Go to the Plugin manager
  2. Open the Codemirror plugin and navigate to the "Appearance" tab
  3. Click anywhere in the gutter (within red box in screenshot below)
    screeny

Expected result

Clicking the gutter should add a dot marker

Actual result

JS error

avatar C-Lodder C-Lodder - open - 16 Apr 2020
avatar C-Lodder C-Lodder - change - 16 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Apr 2020
Category JavaScript Repository NPM Change
avatar C-Lodder C-Lodder - change - 16 Apr 2020
The description was changed
avatar C-Lodder C-Lodder - edited - 16 Apr 2020
avatar brianteeman
brianteeman - comment - 16 Apr 2020

I "guess" the issue arose when the code was converted from jquery in j3 to es6 here

avatar Quy
Quy - comment - 16 Apr 2020

I have tested this item successfully on fff28f6


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

avatar Quy Quy - test_item - 16 Apr 2020 - Tested successfully
avatar BertaOctech
BertaOctech - comment - 16 Apr 2020

I have tested this item ? unsuccessfully on fff28f6

I got the js error mentioned at #28211 (comment) when making click on the grey area just next to the code

When I tried to apply this patch from the patch tester, I got the following error

The patch could not be applied because it would break the site. Check the pull request to see if it is up-to-date.

I was using Patch Tester component version 4.0.0-rc2 04-April-2020

My Joomla version is Joomla version, ‎4.0.0-beta1-dev.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28696.
avatar BertaOctech BertaOctech - test_item - 16 Apr 2020 - Tested unsuccessfully
avatar C-Lodder
C-Lodder - comment - 16 Apr 2020

@BertaOctech You need to run node build.js --compile-js from your terminal before testing

Sorry I should have mentioned that before

avatar jwaisner
jwaisner - comment - 16 Apr 2020

I have tested this item successfully on fff28f6

No JS error now.


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

avatar jwaisner jwaisner - test_item - 16 Apr 2020 - Tested successfully
avatar jwaisner
jwaisner - comment - 16 Apr 2020

Looks like some drone errors. @C-Lodder can you look into those? They may be expected and not related to this PR.

avatar brianteeman
brianteeman - comment - 16 Apr 2020

They will probably be fixed if you update your branch to include the recent commit from George

avatar C-Lodder C-Lodder - change - 16 Apr 2020
Labels Added: NPM Resource Changed ?
avatar C-Lodder
C-Lodder - comment - 16 Apr 2020

Merged 4.0-dev into my branch. No idea why Drone is still failing for MySQL tests, but not something I can do anything about as this PR only changes a JS file

avatar jwaisner
jwaisner - comment - 16 Apr 2020

Looks like the drone errors are not related to this PR. It is calling out a connectivity problem with Webdriver. I will retest just to confirm it works as expected.

avatar jwaisner
jwaisner - comment - 16 Apr 2020

I have tested this item successfully on 1d78157


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

avatar jwaisner jwaisner - test_item - 16 Apr 2020 - Tested successfully
avatar Quy Quy - alter_testresult - 16 Apr 2020 - Quy: Tested successfully
avatar Quy Quy - change - 16 Apr 2020
Status Pending Ready to Commit
avatar Quy
Quy - comment - 16 Apr 2020

RTC


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

avatar wilsonge wilsonge - change - 16 Apr 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-04-16 21:47:08
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 16 Apr 2020
avatar wilsonge wilsonge - merge - 16 Apr 2020
avatar wilsonge
wilsonge - comment - 16 Apr 2020

Thanks. Drone failed to start the webdriver itself.

Add a Comment

Login with GitHub to post a comment