NPM Resource Changed ? ? Success

User tests: Successful: Unsuccessful:

avatar bahl24
bahl24
6 Apr 2019

Pull Request for Issue #24480 .

Summary of Changes

Removed warning message as suggested #24480 (comment) & changed return to continue.

Testing Instructions

As given in issue

avatar bahl24 bahl24 - open - 6 Apr 2019
avatar bahl24 bahl24 - change - 6 Apr 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Apr 2019
Category Administration com_content
avatar Puneet-Jain-18
Puneet-Jain-18 - comment - 6 Apr 2019

I have tested this PR successfully.
But the Publish and Unpublish buttons are displayed ReadOnly in this case and Should be Accessible.

Screenshot (44)

avatar brianteeman
brianteeman - comment - 6 Apr 2019

how can that be a successful test then?

avatar brianteeman
brianteeman - comment - 6 Apr 2019

I have tested this item 🔴 unsuccessfully on 3872a11

It is now impossible to do anything


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

avatar brianteeman brianteeman - test_item - 6 Apr 2019 - Tested unsuccessfully
avatar Puneet-Jain-18
Puneet-Jain-18 - comment - 6 Apr 2019

how can that be a successful test then?

Sorry,
I meant the styling as read-only, the buttons were working and no error message was displayed as discussed in the issue

avatar brianteeman
brianteeman - comment - 6 Apr 2019

Which confirms that it is an unsuccessful test as obviously introducing a new bug is a failure

avatar Puneet-Jain-18
Puneet-Jain-18 - comment - 6 Apr 2019

does reloading of the page,(Probably sending a request to backend) on clicking on one Un-highlighted button, when a single article is selected considered to be an expected behavior??

avatar bahl24
bahl24 - comment - 6 Apr 2019

@brianteeman It is not a new bug, The buttons were readonly earlier as well, as 1 of the article is published. I will make changes to restore the active status asap

avatar brianteeman
brianteeman - comment - 6 Apr 2019

@bahl24 apologies then

avatar bahl24
bahl24 - comment - 7 Apr 2019

@brianteeman Should I remove the feature that publish button is disabled when we try to publish an already published item or modify the condition to not disable the button if an unpublished item is selected along with published item?
What is the expected behaviour, J3 has no such feature for disabling workflow buttons?

avatar bahl24 bahl24 - change - 7 Apr 2019
Labels Added: J4 Issue ?
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2019
Category Administration com_content Administration com_content JavaScript Repository NPM Change
avatar bahl24 bahl24 - change - 7 Apr 2019
Labels Added: NPM Resource Changed
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2019
Category Administration com_content JavaScript Repository NPM Change Administration com_content
avatar bahl24 bahl24 - change - 7 Apr 2019
Labels Removed: NPM Resource Changed
avatar joomla-cms-bot joomla-cms-bot - change - 7 Apr 2019
Category Administration com_content Administration com_content JavaScript Repository NPM Change
avatar bahl24 bahl24 - change - 7 Apr 2019
Labels Added: NPM Resource Changed
avatar bahl24
bahl24 - comment - 7 Apr 2019

@brianteeman Apology for the linting errors, but I have modified the condition for disabling of workflow buttons. Now Publish button will only be disabled only when all the selected items are published & active even if 1 of the selected is unpublished/archived/trashed (which is the expected behaviour).
Similarly for other workflow buttons.

avatar infograf768
infograf768 - comment - 8 Apr 2019

I have tested this item ✅ successfully on 53a6698

+1


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

avatar infograf768
infograf768 - comment - 8 Apr 2019

I have tested this item ✅ successfully on 53a6698

+1


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

avatar infograf768 infograf768 - test_item - 8 Apr 2019 - Tested successfully
avatar Puneet-Jain-18
Puneet-Jain-18 - comment - 8 Apr 2019

I have tested this item ✅ successfully on 53a6698


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

avatar Puneet-Jain-18 Puneet-Jain-18 - test_item - 8 Apr 2019 - Tested successfully
avatar infograf768 infograf768 - change - 8 Apr 2019
Status Pending Ready to Commit
Labels
avatar infograf768
infograf768 - comment - 8 Apr 2019

rtc


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

avatar infograf768 infograf768 - change - 8 Apr 2019
Labels Added: ?
avatar infograf768
infograf768 - comment - 8 Apr 2019

restarted drone

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Apr 2019

@infograf768 @Puneet-Jain-18 please retest.

avatar bembelimen
bembelimen - comment - 9 Apr 2019

Sorry this PR makes absolutely no sense.

  • Why should we skip published items? The "publish" method is a generic method for all states (also for unpublish etc). So unpublishing a published item could be very hard.
  • don't rely on the state field. The correct value is in the condition (state is only for b/c)
  • we're in Joomla! 4 now, there is a reason for this message. Publish != Publish now. It depends on the transitions. So if you're not allowed to execute the transition or there is none, you should get an error. (Just think: all of your articles are unpublished conditionwise, now you mark them and press publish, but there is no transition available, then nothing would happen (if the intention of this PR is correct implemented) that would confuse the user)

So please do not change the behaviour without seeing the big picture.

avatar bembelimen
bembelimen - comment - 9 Apr 2019

The problem, if this error appears is, that someone changed some code so a user can execute the publish call without transition available.

avatar bembelimen
bembelimen - comment - 9 Apr 2019

After checking the behaviour, it seems something throws an JS error, which breaks the initial check.
So fixing the JS error should recover the correct behaviour => you can't execute something without transition.

avatar bahl24
bahl24 - comment - 9 Apr 2019

@bembelimen Actually, the issue is when we mark 1 published & one unpublished article, and execute publish the unpublished article remains the same. It should be published IMO.
I will change the code to just continue and not return, that way it will just execute the publishing operation. Do you agree?

avatar bembelimen
bembelimen - comment - 9 Apr 2019

No, as stated above, please fix the JS error (in another PR) and then we can look again.

The issue is a combination of several bugs which we can solve, but not with this if

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2019
Category Administration com_content JavaScript Repository NPM Change Administration com_content JavaScript Repository
avatar bahl24
bahl24 - comment - 17 Apr 2019

Closed, see #24621

avatar bahl24 bahl24 - change - 17 Apr 2019
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2019-04-17 11:53:33
Closed_By bahl24
Labels Removed: J4 Issue
avatar bahl24 bahl24 - close - 17 Apr 2019
avatar joomla-cms-bot joomla-cms-bot - change - 17 Apr 2019
Category Administration com_content JavaScript Repository Administration com_content JavaScript Repository NPM Change

Add a Comment

Login with GitHub to post a comment