NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
18 Feb 2021

Pull Request for Issue # .

Summary of Changes

The main course here is the remove of webpack and compiling Media Manager with Rollup, but there are couple more:

  • drop the dependency FileSaver, we can do that in few lines:
    Screenshot 2021-02-18 at 15 31 14
  • drop the path dependency (the reason is that it is commonJS and ruins the whole package) for own implementation (based on the actual code of NODEJS)
  • Moved the scss files in the build/media_source/com_media where is the appropriate place
  • drop webpack with all the related dependencies
  • Move the javascript tests to it's own package.json
  • Move the selenium-standalone dependency directly to done.yml

Testing Instructions

On a clean locally git cloned repo run npm install (or npm ci)
Check that the media manager has no bugs (create a folder, delete it, rename a folder, upload a file, rename a file, delete a file, download a file, edit a file)

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

avatar dgrammatiko dgrammatiko - open - 18 Feb 2021
avatar dgrammatiko dgrammatiko - change - 18 Feb 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2021
Category Unit Tests JavaScript Administration com_media NPM Change Repository
avatar brianteeman
brianteeman - comment - 18 Feb 2021

The installation process will be a bit verbose about the polyfills the Media manager needs for the IE11 version, this is expected

I thought we weren't supporting ie?

avatar dgrammatiko
dgrammatiko - comment - 18 Feb 2021

I thought we weren't supporting ie?

Well, the build tools still produce IE compatible scripts, but there is a discussion about this #32148 In short I'm just fixing things without imposing decisions, if the PT decides to drop IE scripts it will be a modification of few lines...

avatar dgrammatiko
dgrammatiko - comment - 18 Feb 2021

@richard67 can you accept the Drone.yml changes in the Drone GUI?

avatar richard67
richard67 - comment - 18 Feb 2021

@dgrammatiko You mean if I can re-sign that with a new checksum? Theoretically (privileges) I think yes, practically (experience) not yet. Maybe @HLeithner can help faster than I could?

avatar dgrammatiko dgrammatiko - change - 18 Feb 2021
Labels Added: NPM Resource Changed ? ?
avatar jwaisner jwaisner - test_item - 18 Feb 2021 - Tested successfully
avatar jwaisner
jwaisner - comment - 18 Feb 2021

I have tested this item βœ… successfully on b295c55

Media manager works as expected.

Created folder
Deleted folder
Renamed folder and files
Uploaded a file
Deleted files
Edited multiple files
Downloaded files


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

avatar richard67
richard67 - comment - 18 Feb 2021

@jwaisner Your test doesn't include the last 2 commits. The test shows commit b295c55 , but meanwhile we have a6adafc . Could you just pull the patch again and test again? Thanks in advance.

avatar richard67
richard67 - comment - 18 Feb 2021

@dgrammatiko Can't help you with signing the .drone.yml file, sorry.

avatar richard67
richard67 - comment - 18 Feb 2021

@dgrammatiko Ahh wait, I did not read right .. you wrote drone GUI. Am checking now and see I have an "approve" buttons, so seems I can ;-)

avatar richard67
richard67 - comment - 18 Feb 2021

Hmm, no, doesn't work for me.

avatar dgrammatiko dgrammatiko - change - 18 Feb 2021
Labels Added: ?
Removed: ?
avatar dgrammatiko dgrammatiko - change - 18 Feb 2021
The description was changed
avatar dgrammatiko dgrammatiko - edited - 18 Feb 2021
7102dca 18 Feb 2021 avatar dgrammatiko meh
avatar dgrammatiko
dgrammatiko - comment - 18 Feb 2021

Hmm, no, doesn't work for me.

Yeah some changes require the changes from #32315. Reverted that part, will do another PR for those

avatar richard67
richard67 - comment - 18 Feb 2021

@dgrammatiko My "Hmm, no, doesn't work for me." was referring to that drone signature thing, not to testing your PR.

avatar jwaisner jwaisner - test_item - 18 Feb 2021 - Tested successfully
avatar jwaisner
jwaisner - comment - 18 Feb 2021

I have tested this item βœ… successfully on 21d2579

Testing is still good after changes.


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

avatar dgrammatiko
dgrammatiko - comment - 18 Feb 2021

@HLeithner could you unlock the drone here? Thanks

avatar dgrammatiko dgrammatiko - change - 19 Feb 2021
Labels Added: ?
Removed: ?
avatar dgrammatiko dgrammatiko - change - 19 Feb 2021
Labels Added: ?
Removed: ?
avatar wilsonge
wilsonge - comment - 19 Feb 2021

Can we leave the tests in the main package.json please. After our previous experience I think it's a bad thing to have this separated. I understand it makes most people's build times faster - but I'm sure it's bad from an overall maintenance perspective

avatar dgrammatiko
dgrammatiko - comment - 19 Feb 2021

sure

@wilsonge done

avatar dgrammatiko dgrammatiko - change - 19 Feb 2021
Labels Added: ?
Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2021
Category Unit Tests JavaScript Administration com_media NPM Change Repository JavaScript Administration com_media NPM Change Repository
avatar wilsonge
wilsonge - comment - 20 Feb 2021

Tests are passing here on media manager so I'm happy with this

avatar wilsonge wilsonge - close - 20 Feb 2021
avatar wilsonge wilsonge - merge - 20 Feb 2021
avatar wilsonge wilsonge - change - 20 Feb 2021
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-02-20 21:30:46
Closed_By wilsonge
Labels Removed: ?
avatar wilsonge
wilsonge - comment - 20 Feb 2021

Thanks!

avatar dgrammatiko
dgrammatiko - comment - 20 Feb 2021

Thanks
@wilsonge I'm pretty confident that Media manager is now usable on IE (I mean the js part) but I'll ask @Fedik to check it

avatar Fedik
Fedik - comment - 21 Feb 2021

well, Media manager works "very clear" in IE πŸ˜„
Screenshot_2021-02-21_15-15-26

avatar dgrammatiko
dgrammatiko - comment - 21 Feb 2021

@Fedik try again with #32485 I missed a rollup plugin πŸ€¦β€β™‚οΈ

But the question is: do you get errors in the console?

avatar Fedik
Fedik - comment - 21 Feb 2021

errors I posted in another PR, they all the same on every page,
but I did not seen errors related to MediaManager scripts

avatar Fedik
Fedik - comment - 21 Feb 2021

I tried to clear cache, a couple times, all the same,
but guess it not much important πŸ˜„

if you like to play with it, you can use this https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
as I made

Add a Comment

Login with GitHub to post a comment