? ? NPM Resource Changed Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
4 Aug 2021

Pull Request for Issue #35018 .

Summary of Changes

  • Fixes the empty textarea (but not the other 2 points from the initial issue)
  • update short and sweet to 1.0.4
  • remove unneeded document.addEventListener('DOMContentLoaded', ... as the script is loaded with defer attribute

Testing Instructions

  • Create an article
  • Edit the database row and increase the value of the description to more than 160 characters
  • Try to edit the article in the backend, the description shouldn't be empty

Probably a Release Blocker

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

avatar dgrammatiko dgrammatiko - open - 4 Aug 2021
avatar dgrammatiko dgrammatiko - change - 4 Aug 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Aug 2021
Category JavaScript Repository NPM Change
avatar brianteeman
brianteeman - comment - 4 Aug 2021

Thanks for the upstream PR to address the empty area

when you save the article with the character count greater than the maximum allowed it will be saved truncated

avatar dgrammatiko
dgrammatiko - comment - 4 Aug 2021

when you save the article with the character count greater than the maximum allowed it will be saved truncated

I think by editing the db directly we can replicate the issue (eg j3 article with more than 160chrs in the description). But after editing the article in the backend then the description will be <= 160chrs

avatar brianteeman
brianteeman - comment - 4 Aug 2021

Tested this PR and it doesnt work :(

image

image

avatar dgrammatiko
dgrammatiko - comment - 4 Aug 2021

Tested this PR and it doesnt work :(

Delete the media folder and run again npm install

avatar brianteeman
brianteeman - comment - 4 Aug 2021

weird. I thought that npm i already did the media folder bit

anyway works now

avatar brianteeman
brianteeman - comment - 4 Aug 2021

ah - see the problem (i think)

Before this PR the folder media/vendor/short-and-sweet/js had three files .js, .min.js, .min,.js.gz

The npm i script only copies files to the media folder it doesnt remove existing files

avatar dgrammatiko
dgrammatiko - comment - 4 Aug 2021

The npm i script only copies files to the media folder it doesnt remove existing files

Maybe the build tools should remove any existing .gz files, will do a PR later

avatar brianteeman
brianteeman - comment - 4 Aug 2021

or just remove everything?

avatar dgrammatiko
dgrammatiko - comment - 4 Aug 2021

or just remove everything?

I didn't do that on purpose, eg someone tries to test a PR but also has installed some 3rd PT extension. In such case, testing will require uninstalling and reinstalling the extension(s), since the media assets will be deleted, and thus making the process significantly slower.

avatar brianteeman
brianteeman - comment - 4 Aug 2021

The real problem in this specific example is that an existing install of rc5 will have the three files in it but for some reason when you run the install script now now only one file is created. When someone upgrades from rc5 to the final release wouldn't that cause problems

avatar dgrammatiko
dgrammatiko - comment - 4 Aug 2021

but for some reason when you run the install script now now only one file is created.

I have 2 files and once you run the compress part will get also the .gz

Screenshot 2021-08-04 at 11 57 27

avatar dgrammatiko dgrammatiko - change - 4 Aug 2021
Labels Added: NPM Resource Changed ?
avatar dgrammatiko
dgrammatiko - comment - 4 Aug 2021

@brianteeman can you retest deleting the media folder and re run npm i? You should now get 2 files

avatar brianteeman
brianteeman - comment - 4 Aug 2021

image

avatar dgrammatiko
dgrammatiko - comment - 4 Aug 2021

@brianteeman should be ok now with 01e89f8

avatar RickR2H RickR2H - test_item - 6 Aug 2021 - Tested successfully
avatar RickR2H
RickR2H - comment - 6 Aug 2021

I have tested this item successfully on 01e89f8

Patch works. On loding the article the description gets truncated to 160 characters.


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

avatar Quy Quy - test_item - 6 Aug 2021 - Tested successfully
avatar Quy
Quy - comment - 6 Aug 2021

I have tested this item successfully on 01e89f8


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

avatar Quy Quy - change - 6 Aug 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 6 Aug 2021

RTC


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

avatar wilsonge
wilsonge - comment - 7 Aug 2021

@dgrammatiko can you fix conflicts here and @brianteeman you able to test this on windows?

avatar brianteeman
brianteeman - comment - 7 Aug 2021
avatar wilsonge
wilsonge - comment - 7 Aug 2021

@brianteeman but then dimitris fixed the two files thing. which you gave a negative test on and he attempted a second fix on (see #35039 (comment))

avatar brianteeman
brianteeman - comment - 7 Aug 2021

ah sorry. taking another look

avatar brianteeman
brianteeman - comment - 7 Aug 2021

ok now

avatar brianteeman brianteeman - test_item - 7 Aug 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 7 Aug 2021

I have tested this item successfully on 01e89f8


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

avatar wilsonge
wilsonge - comment - 7 Aug 2021

Amazing. Thanks @dgrammatiko just conflicts and I'll get this in then

avatar dgrammatiko dgrammatiko - change - 8 Aug 2021
Labels Added: ? ?
Removed: ?
avatar wilsonge wilsonge - change - 8 Aug 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-08-08 17:35:14
Closed_By wilsonge
Labels Added: ? ?
Removed: ? ?
avatar wilsonge wilsonge - close - 8 Aug 2021
avatar wilsonge wilsonge - merge - 8 Aug 2021
avatar wilsonge
wilsonge - comment - 8 Aug 2021

Thanks!

Add a Comment

Login with GitHub to post a comment