? NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar maliouris
maliouris
4 Sep 2020

Pull Request for Issue #25379

Summary of Changes

In com_media change _handleError js function in order to show error messages if there are any thrown by an exception, otherwise show some defaults based on error code.

Testing Instructions

Run:
npm run dev:com_media
npm run build:js

reload browser with: CTL+F5

Set max file size to 1 and upload a larger file

Actual result BEFORE applying this Pull Request

Error message will show "You are not authorized"

Expected result AFTER applying this Pull Request

Error message This file is too large to upload.

Documentation Changes Required

Some other constants may have to be declared to /administrator/language/en-GB as /language/en-GB files are not loaded in the administrator view

avatar maliouris maliouris - open - 4 Sep 2020
avatar maliouris maliouris - change - 4 Sep 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2020
Category JavaScript Administration com_media NPM Change Language & Strings Repository
avatar maliouris maliouris - change - 4 Sep 2020
Title
Show exception messages on media error #25379
Show exception messages on media error
avatar maliouris maliouris - edited - 4 Sep 2020
avatar alikon
alikon - comment - 5 Sep 2020

i've applyed the patch
then i've runned npm ci
but uploading a large img give me this result:

Screenshot from 2020-09-05 09-49-26

what i'm missing ?

avatar maliouris
maliouris - comment - 5 Sep 2020

i've applyed the patch
then i've runned npm ci
but uploading a large img give me this result:

Screenshot from 2020-09-05 09-49-26

what i'm missing ?

Can you give me more info ? Because in my point of view I see this:
Screenshot_2020-09-05 Media - Test - Administration

Did you run "npm run dev:com_media" and "npm run build:js" ? If you did just tell my all the steps to reproduce it.
(Also refresh your browser page CTL+F5 in order to load the compiled js)

avatar alikon
alikon - comment - 5 Sep 2020

ok after running
npm run dev:com_media
npm run build:js
plus
CTL+F5
i've got the expected results
thank you..... maybe better to update the Testing Instructions
to help dumb people like me ?

avatar alikon alikon - test_item - 5 Sep 2020 - Tested successfully
avatar alikon
alikon - comment - 5 Sep 2020

I have tested this item successfully on 4a699d4


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

avatar maliouris maliouris - change - 5 Sep 2020
The description was changed
avatar maliouris maliouris - edited - 5 Sep 2020
avatar maliouris maliouris - change - 5 Sep 2020
The description was changed
avatar maliouris maliouris - edited - 5 Sep 2020
avatar Quy
Quy - comment - 5 Sep 2020

Message should not be in upper case.

avatar maliouris maliouris - change - 5 Sep 2020
Labels Added: ? NPM Resource Changed ?
avatar maliouris
maliouris - comment - 5 Sep 2020

Message should not be in upper case.

I resolved it. You can check again

avatar Quy Quy - test_item - 5 Sep 2020 - Tested successfully
avatar Quy
Quy - comment - 5 Sep 2020

I have tested this item successfully on b4963ea


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

avatar alikon alikon - test_item - 6 Sep 2020 - Tested successfully
avatar alikon
alikon - comment - 6 Sep 2020

I have tested this item successfully on 6277015


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

avatar richard67 richard67 - alter_testresult - 6 Sep 2020 - Quy: Tested successfully
avatar richard67
richard67 - comment - 6 Sep 2020

@Quy 's test result is still valid, because changes after that was only code style (white space) and a clean update to the base branch. => 2 good tests => Ready to Commit.

avatar richard67 richard67 - change - 6 Sep 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 6 Sep 2020

RTC


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

avatar infograf768 infograf768 - change - 6 Sep 2020
The description was changed
avatar infograf768 infograf768 - edited - 6 Sep 2020
avatar infograf768 infograf768 - change - 6 Sep 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-09-06 08:55:53
Closed_By infograf768
Labels Added: ?
avatar infograf768 infograf768 - close - 6 Sep 2020
avatar infograf768 infograf768 - merge - 6 Sep 2020
avatar infograf768
infograf768 - comment - 6 Sep 2020

I just had to use npm ci

Thanks.

Add a Comment

Login with GitHub to post a comment