? ? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
30 Dec 2020

Pull Request for Issue #31127 (and addresses comments made in the original PR #31793) .

I don't like making b/c breaks in functionality this late into the J4 development. But I think this is required before we start wrapping ourselves in circles with workarounds in batch funtionality.

Summary of Changes

Reworks some of tags onto an interface (partly stolen from @Hackwar 's work in #24551 but without some of the larger changes) like we already did with versions.

There's also a new plugin event specifically for batch events that will allow us to to transformations of objects on the data being created. I chose to have a plugin here as the newTag property is kinda internal to the taggable plugin. Whereas the other batch methods can simply use the interface and don't really have any tags logic (other than using for the interface methods)

The new TaggableTableInterface should also allow us to cleanup any other interactions (such as the existing saveorder code).

Testing Instructions

Test tags functionality in all components (articles, categories, contact and newsfeeds). Confirm assigning, removing tags to all these things work. Confirm all still work

Test batch moving items to a new category or language. Before patch tags would get lost, after patch they don't.

Test batch copying items. Before patch tags are not preserved after patch they are.

Documentation Changes Required

Interface and trait needs to be documented. We also should backport them as empty back to the 3.10 release like we did with the versioning

avatar wilsonge wilsonge - open - 30 Dec 2020
avatar wilsonge wilsonge - change - 30 Dec 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Dec 2020
Category Administration com_banners com_contact com_content com_newsfeeds com_tags com_users Libraries Front End Plugins
avatar wilsonge wilsonge - change - 30 Dec 2020
Labels Added: ?
avatar wilsonge wilsonge - change - 30 Dec 2020
The description was changed
avatar wilsonge wilsonge - edited - 30 Dec 2020
avatar wilsonge wilsonge - change - 30 Dec 2020
The description was changed
avatar wilsonge wilsonge - edited - 30 Dec 2020
avatar wilsonge wilsonge - change - 30 Dec 2020
Title
Rework tags to have a dedicated interface
[4.0] Rework tags to have a dedicated interface
avatar wilsonge wilsonge - edited - 30 Dec 2020
avatar toivo
toivo - comment - 30 Dec 2020

I have tested this item successfully on 84d9336

Tested successfully in Beta6-dev of 30 December in PHP 7.4.13. All the copies and moves between categories retained the tags.


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

avatar toivo toivo - test_item - 30 Dec 2020 - Tested successfully
avatar alikon
alikon - comment - 30 Dec 2020

I have tested this item successfully on 84d9336


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

avatar alikon alikon - test_item - 30 Dec 2020 - Tested successfully
avatar alikon alikon - change - 30 Dec 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 30 Dec 2020

RTC


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

avatar wilsonge wilsonge - change - 30 Dec 2020
Labels Added: ?
avatar wilsonge
wilsonge - comment - 30 Dec 2020

OK I give up I made the batch event generic. Should make @SharkyKZ happier although I still personally think it's overkill ?

avatar wilsonge wilsonge - change - 30 Dec 2020
The description was changed
avatar wilsonge wilsonge - edited - 30 Dec 2020
avatar wilsonge
wilsonge - comment - 30 Dec 2020

Needs fresh testing though

avatar infograf768
infograf768 - comment - 31 Dec 2020

I have tested this item successfully on 378e9f4

Not sure I have tested all, but for what I tested it works fine.


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

avatar infograf768 infograf768 - test_item - 31 Dec 2020 - Tested successfully
avatar infograf768 infograf768 - change - 31 Dec 2020
Status Ready to Commit Pending
avatar infograf768
infograf768 - comment - 31 Dec 2020

Don't know why bot set back to RTC as we have only one OK test. Back to pending.


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

avatar jwaisner
jwaisner - comment - 31 Dec 2020

I have tested this item successfully on 378e9f4

Everything looks good. No issues with functionality of Tags.


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

avatar jwaisner jwaisner - test_item - 31 Dec 2020 - Tested successfully
avatar jwaisner jwaisner - change - 31 Dec 2020
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 31 Dec 2020

Really RTC now :)


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

avatar bembelimen bembelimen - change - 31 Dec 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-31 22:54:53
Closed_By bembelimen
avatar bembelimen bembelimen - close - 31 Dec 2020
avatar bembelimen bembelimen - merge - 31 Dec 2020
avatar bembelimen
bembelimen - comment - 31 Dec 2020

If it breaks, we can blame 2020. Thanks.

Add a Comment

Login with GitHub to post a comment