RTC NPM Resource Changed bug PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
4 Feb 2024

Summary of Changes

This PR fixes a JS error when trying to view the "diff" between content versions, due the dependency not being called.

Testing Instructions

  1. Ensure "Versions" is enabled
  2. Create an article with some dummy content and save it
  3. Add or remove some content to the same article as save it
  4. Compare the two versions of the article

Actual result BEFORE applying this Pull Request

Uncaught TypeError: window.Diff is undefined

before

Expected result AFTER applying this Pull Request

The diff is displayed, showing green/red blocks

after

Note

I'm aware the diff fails a11y standards for dark mode, but this should be fixed in a separate PR

avatar C-Lodder C-Lodder - open - 4 Feb 2024
avatar C-Lodder C-Lodder - change - 4 Feb 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Feb 2024
Category Repository NPM Change
avatar C-Lodder C-Lodder - change - 4 Feb 2024
The description was changed
avatar C-Lodder C-Lodder - edited - 4 Feb 2024
avatar Quy Quy - test_item - 4 Feb 2024 - Tested successfully
avatar Quy
Quy - comment - 4 Feb 2024

I have tested this item ✅ successfully on 9025a91


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

avatar alikon alikon - test_item - 4 Feb 2024 - Tested successfully
avatar alikon
alikon - comment - 4 Feb 2024

I have tested this item ✅ successfully on 9025a91


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

avatar alikon alikon - change - 4 Feb 2024
Status Pending Ready to Commit
avatar alikon
alikon - comment - 4 Feb 2024

RTC


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

avatar Quy Quy - change - 4 Feb 2024
Labels Added: NPM Resource Changed PR-5.1-dev RTC
avatar Quy Quy - change - 4 Feb 2024
Labels
avatar Quy Quy - change - 5 Feb 2024
Labels Added: bug
avatar crimle crimle - test_item - 24 Feb 2024 - Tested unsuccessfully
avatar crimle
crimle - comment - 24 Feb 2024

I have tested this item ? unsuccessfully on 1eb9c68

Pressing [Apply Patch] results in error 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.»


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

avatar Nuyonuyonoina
Nuyonuyonoina - comment - 24 Feb 2024

"Apply patch" button doesn't work. Error message is "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."

avatar eddiekonczal eddiekonczal - test_item - 24 Feb 2024 - Tested unsuccessfully
avatar eddiekonczal
eddiekonczal - comment - 24 Feb 2024

I have tested this item ? unsuccessfully on 1eb9c68

Cannot apply patch.

Also, actual error is:

Uncaught TypeError: Cannot read properties of undefined (reading 'diffWords')
at l (admin-compare-compare.min.js?907a40:4:169)
at admin-compare-compare.min.js?907a40:4:566
at Array.forEach ()
at HTMLDocument.c (admin-compare-compare.min.js?907a40:4:554)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42755.
avatar Quy
Quy - comment - 24 Feb 2024

@eddiekonczal FYII: PRs with NPM Resource Changed label cannot be tested with PatchTester.

avatar richard67
richard67 - comment - 25 Feb 2024

@crimle @Nuyonuyonoina @eddiekonczal I will reset the negative test results as they are not caused by this PR. The PR modifies an NPM dependency, which can be seen by the label "NPM Resource Changed". Such PRs can't be tested with Patchtester, they require either a development environment with composer and NPM, or they need to be applied by using the packages created by drone, which can be found in the "Downloads" section of the integration checks at the bottom of the PR.

avatar richard67 richard67 - alter_testresult - 25 Feb 2024 - crimle: Not tested
avatar richard67 richard67 - alter_testresult - 25 Feb 2024 - eddiekonczal: Not tested
avatar richard67 richard67 - alter_testresult - 25 Feb 2024 - Quy: Tested successfully
avatar richard67 richard67 - alter_testresult - 25 Feb 2024 - alikon: Tested successfully
avatar richard67 richard67 - alter_testresult - 25 Feb 2024 - eddiekonczal: Not tested
avatar richard67 richard67 - alter_testresult - 25 Feb 2024 - eddiekonczal: Not tested
avatar richard67 richard67 - alter_testresult - 25 Feb 2024 - eddiekonczal: Not tested
avatar bembelimen bembelimen - change - 25 Feb 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-02-25 22:24:00
Closed_By bembelimen
avatar bembelimen bembelimen - close - 25 Feb 2024
avatar bembelimen bembelimen - merge - 25 Feb 2024
avatar bembelimen
bembelimen - comment - 25 Feb 2024

Thx

Add a Comment

Login with GitHub to post a comment