? ? ? Success

User tests: Successful: 0 Unsuccessful: 0

avatar HLeithner
HLeithner
17 Aug 2018

This pull requests removes the countItems() function from contentComponent (will also be done for other components). As part of this PR a now Component variable is introduced because its not possible to detect the current component name in a ServiceTrait.

Now I would like to know if there is a better way to do this.

Summary of Changes

Removed ContentComponent::countItems
Update CategoriesServicesTrait::countItems to support WorkflowServiceInterface
Added $name variable to all "services" components

Testing Instructions

Test components using categories specially the numbers per publish state in the category overview.

Expected result

Works

Actual result

Should work

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
6a0332c 17 Aug 2018 avatar HLeithner Typo
avatar HLeithner HLeithner - open - 17 Aug 2018
avatar HLeithner HLeithner - change - 17 Aug 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Aug 2018
Category Administration com_admin com_banners com_content com_menus com_modules com_templates Libraries
avatar HLeithner
HLeithner - comment - 17 Aug 2018

This is the follow up PR of #21641 discussion.

avatar laoneo
laoneo - comment - 17 Aug 2018

I like the move of the countItems function. But the name attribute looks for me somehow not right. I would do in the trait a function like getWorkfloowExtensionNameand which returns the name per default out of the classname. If a component does something special, then there is a possibility to override it. Just an idea.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
[4.0][Workflow][RFC] Optimize countItems and introduce component name
[4.0] [RFC] Optimize countItems and introduce component name
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar HLeithner HLeithner - change - 29 Mar 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-03-29 19:17:58
Closed_By HLeithner
Labels Added: ? ?
Removed: J4 Issue ?
avatar HLeithner HLeithner - close - 29 Mar 2020

Add a Comment

Login with GitHub to post a comment