? NPM Resource Changed ? Pending

User tests: Successful: Unsuccessful:

avatar Anu1601CS
Anu1601CS
3 Feb 2019

Pull Request for Issue #23755

Summary of Changes

PR after a long time ?

Media manager repo is not active these days thats why i am creating PR here.

  1. Now delete is using alert.
  2. Error if item not seleted.
  3. Change in logic : Unselect all selected item except that item, if single item is going to delete.

screenshot from 2019-02-03 16-57-37
screenshot from 2019-02-03 16-57-40

Testing Instructions

Try to use delete you should see alert.

Expected result

you should see alert.

Actual result

Alert not showing for toolbar delete.

Documentation Changes Required

NO

@dgrammatiko

6feeefd 3 Feb 2019 avatar Anu1601CS new
avatar Anu1601CS Anu1601CS - open - 3 Feb 2019
avatar Anu1601CS Anu1601CS - change - 3 Feb 2019
Status New Pending
avatar Anu1601CS Anu1601CS - change - 3 Feb 2019
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2019
Category Administration com_media JavaScript Language & Strings
567df91 3 Feb 2019 avatar Anu1601CS fix
64208cc 3 Feb 2019 avatar Anu1601CS new
avatar dgrammatiko
dgrammatiko - comment - 3 Feb 2019

Nice!

Can I ask for one more PR: update to the latest version of the deps (vue, etc) and also devDependencies (Webpack, etc)?

8b28f94 3 Feb 2019 avatar Anu1601CS push
avatar Anu1601CS
Anu1601CS - comment - 3 Feb 2019

Nice!

Can I ask for one more PR: update to the latest version of the deps (vue, etc) and also
devDependencies (Webpack, etc)?

Thanks
All done.

avatar infograf768
infograf768 - comment - 3 Feb 2019

Works fine. ?

As I guess we can't use Plural form in our js, I suggest to change the string
from
COM_MEDIA_CONFIRM_DELETE_MODEL_DESC="Are you sure you want to delete this item?"
to rather use JGLOBAL_CONFIRM_DELETE as the string is quite neuter.

JGLOBAL_CONFIRM_DELETE="Are you sure you want to delete? Confirming will permanently delete the selected item(s)!"

which is the global alert in core.

avatar Anu1601CS
Anu1601CS - comment - 3 Feb 2019

@infograf768

As I guess we can't use Plural form in our js, I suggest to change the string
from
COM_MEDIA_CONFIRM_DELETE_MODEL_DESC="Are you sure you want to delete this item?"
to rather use JGLOBAL_CONFIRM_DELETE as the string is quite neuter.

JGLOBAL_CONFIRM_DELETE="Are you sure you want to delete? Confirming will permanently delete the selected item(s)!"
which is the global alert in core.

I think for this another PR is fine :)

avatar rdeutz
rdeutz - comment - 4 Feb 2019

npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing.

Something didn't work while changing the package.json

avatar infograf768
infograf768 - comment - 4 Feb 2019

weird. It worked yesterday. I get that error today

avatar Anu1601CS
Anu1601CS - comment - 4 Feb 2019

Now I think it should be fine.

@dgrammatiko I have updated root package.json. Should I leave the changes or revert this one?

avatar Anu1601CS
Anu1601CS - comment - 4 Feb 2019

@rdeutz @dgrammatiko Now I think this is expected the behavior of system-testing because now Instead of direct delete program need to click the alert button to confirm.

screenshot from 2019-02-04 15-29-49

avatar infograf768
infograf768 - comment - 4 Feb 2019

npm ci now works.

I think for this another PR is fine :)

OK, will also modify MODEL to MODAL for confirm delete as this is obviously a typo.
Typo also for COM_MEDIA_ACTIN_RENAME="Rename item" as it should be ACTION

Also strings like COM_MEDIA_MEDIA_CREATED_AT="Created at" don't look nice.
It should be imho COM_MEDIA_MEDIA_CREATED="Date created"

ALSO as a note:
For the infobar.vue we have issues in the display as the <dl><dt><dd> will not only not fit quite a few languages (we should have at least the "label" and "value" on 2 different lines i.e. we may have to use <ul><li> instead, but also breaks when reducing window size in whatever language and as well when using RTL languages)

Many other aspects of the manager (tree, etc.) have to be dealt with in RTL
The date created and modified are not translated in Persian, in infobar.vue as well as in browser.vue.

I can solve some of these: the strings and some of the RTL, but not sure about the date format for Persian.

Just have to remember to make a patch for all these after this PR is merged.

avatar dgrammatiko
dgrammatiko - comment - 5 Feb 2019

@Anu1601CS please revert the changes in the root package.json, I was only referring to the package.json for the media manager

avatar infograf768
infograf768 - comment - 8 Feb 2019

Restarted drone

avatar Anu1601CS
Anu1601CS - comment - 8 Feb 2019

@rdeutz @laoneo Need to update the system testing.

avatar joomla-cms-bot joomla-cms-bot - change - 20 Feb 2019
Category Administration com_media JavaScript Language & Strings Administration com_media NPM Change JavaScript Language & Strings
avatar infograf768 infograf768 - change - 21 Feb 2019
Labels Added: NPM Resource Changed
avatar infograf768
infograf768 - comment - 21 Feb 2019

@Anu1601CS
Please update sytem tests as they are broken.

avatar Anu1601CS
Anu1601CS - comment - 21 Feb 2019

Please update sytem tests as they are broken.

@infograf768
Ok, I will try to update system testing.

Is this system testing repo https://github.com/joomla/test-system

avatar infograf768
infograf768 - comment - 22 Feb 2019

Is this system testing repo https://github.com/joomla/test-system

Yep, for now. But we have a PR to move these back to main repo.
See #23962

avatar wilsonge
wilsonge - comment - 25 Feb 2019

Can you add a id on line 10 of confirm-delete-modal.vue please? So it's <button class="btn btn-danger" id="confirm_delete_item" @click="deleteItem()">{{ translate('COM_MEDIA_CONFIRM_DELETE_MODEL') }}</button>

So that it is selectable in the system tests please

avatar Anu1601CS
Anu1601CS - comment - 25 Feb 2019

@wilsonge Done

avatar wilsonge
wilsonge - comment - 25 Feb 2019

I think joomla/test-system#53 should solve the tests here

avatar Anu1601CS
Anu1601CS - comment - 25 Feb 2019

I think joomla/test-system#53 should solve the tests here

@wilsonge

I think yes. Instead of direct delete, we need to click modal confirm button.

avatar wilsonge
wilsonge - comment - 25 Feb 2019

@rdeutz can i have some help here please. I merged the system tests fix - but the composer update doesn't seem to be making a difference here. Is that related to cache'ing or am i doing something stupid?

avatar dgrammatiko
dgrammatiko - comment - 25 Feb 2019

@wilsonge use [NO CACHE] in the title, eg
[4.0][NO CACHE] Fix Media Manager delete alert not used.

avatar wilsonge wilsonge - change - 25 Feb 2019
Title
[4.0] Fix Media Manager delete alert not used.
[4.0] [NO CACHE] Fix Media Manager delete alert not used.
avatar wilsonge wilsonge - edited - 25 Feb 2019
avatar wilsonge
wilsonge - comment - 25 Feb 2019

Done. It did skip the restore-cache step - but still not getting the updated test

avatar wilsonge
wilsonge - comment - 25 Feb 2019

OK Packagist hasn't actually updated with the hash of the new commit :( i don't know if there's even a good way to trigger that https://packagist.org/packages/joomla/test-system#dev-4.0-dev

avatar dgrammatiko
dgrammatiko - comment - 25 Feb 2019

Well, that's the docs for the caching but I guess the problem is in the composer.
screenshot 2019-02-25 at 19 13 02

Can you change

- composer update joomla/test-system --no-progress --no-suggest
so it fetches the head similar to the npm approach?

avatar wilsonge
wilsonge - comment - 25 Feb 2019

@rdeutz there's no webhook to packagist configured for the system test repo - i don't own the packagist repo so you need to fix that i'm afraid

avatar rdeutz
rdeutz - comment - 26 Feb 2019

[NO CACHE] must be part of the commit message

webhooks are all fine

avatar wilsonge
wilsonge - comment - 27 Feb 2019

@SniperSister @zero-24 can you have a look at RIPS here please

avatar wilsonge wilsonge - change - 27 Feb 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-02-27 10:35:53
Closed_By wilsonge
avatar wilsonge wilsonge - close - 27 Feb 2019
avatar wilsonge wilsonge - merge - 27 Feb 2019
avatar wilsonge
wilsonge - comment - 27 Feb 2019

Thanks!

avatar infograf768
infograf768 - comment - 20 Mar 2019

Please test #24258

Add a Comment

Login with GitHub to post a comment