? ? Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
16 Aug 2018

This is a cleanup PR to remove com_content references

Summary of Changes

Remove all 'com_content' constants from workflow code.

Testing Instructions

Create, Delete, Edit

for com_content

  • articles

for com_workflow

  • stages
  • transitions
  • workflows

Expected result

All works fine

31a2fb2 14 Aug 2018 avatar HLeithner CS
353dd28 15 Aug 2018 avatar HLeithner CS
7e82fa4 15 Aug 2018 avatar HLeithner cs
1145e90 16 Aug 2018 avatar HLeithner cs
avatar HLeithner HLeithner - open - 16 Aug 2018
avatar HLeithner HLeithner - change - 16 Aug 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Aug 2018
Category SQL Administration com_admin Postgresql com_content com_workflow Front End Installation
avatar HLeithner
HLeithner - comment - 16 Aug 2018

This PR is based on #21585

avatar HLeithner HLeithner - change - 16 Aug 2018
Labels Added: ?
avatar brianteeman
brianteeman - comment - 16 Aug 2018

I thought it looks familiar - so can you close that one please

avatar HLeithner HLeithner - change - 17 Aug 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Aug 2018
Category SQL Administration com_admin Postgresql com_content com_workflow Front End Installation Administration com_workflow Libraries
avatar HLeithner
HLeithner - comment - 17 Aug 2018

So #21585 is merged now this PR much smaller maybe I we get some testers here?

The countItems function rewrite @laoneo mentioned will get it's own PR.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 17 Aug 2018 - Tested unsuccessfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Aug 2018

I have tested this item ? unsuccessfully on 76535dc

Delete an Stage got Error (see Screenshot), but Stage is trashed.

screen shot 2018-08-17 at 15 12 29


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/21641.
avatar HLeithner
HLeithner - comment - 17 Aug 2018

Delete an Stage got Error (see Screenshot), but Stage is trashed.

Not sure if this is related, does this not happen with the dev-4.0 branch?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Aug 2018

it happen with applied Pull Request.

avatar HLeithner
HLeithner - comment - 17 Aug 2018

This is unrelated seams to be a problem with state->stage renaming please open a new issue.

avatar bembelimen
bembelimen - comment - 18 Aug 2018

Not sure about this PR, the idea was to use com_content as fallback like in categories. If we remove this fallback (which is OK with me), we have to add checks and throw an error if extension is missing.

avatar HLeithner
HLeithner - comment - 18 Aug 2018

There is ni reason to let com content be the fallback, this only makes it more error prone.

I found 3 places where a 3rd party component would fail to use the workflow because com_content was hardcoded or the default fallback.

In my opinion the same should be done for categories.

avatar wilsonge
wilsonge - comment - 18 Aug 2018

I agree with this PR - we should remove com_content as the default but @bembelimen is correct we should probably hard bail if we can't find an extension.

avatar HLeithner
HLeithner - comment - 18 Aug 2018

Sure it should have correct amd useful error messages I will adopt this PR

avatar wilsonge wilsonge - change - 8 Sep 2018
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-09-08 09:58:15
Closed_By wilsonge
avatar wilsonge wilsonge - close - 8 Sep 2018
avatar wilsonge wilsonge - merge - 8 Sep 2018
avatar wilsonge
wilsonge - comment - 8 Sep 2018

LGTM!

avatar HLeithner
HLeithner - comment - 8 Sep 2018

that was a bit too early... I create a new PR fixing 2 things

Add a Comment

Login with GitHub to post a comment