? ? ? Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
24 Nov 2020

Pull Request for Issue #31348 .

Summary of Changes

Pre-fill the tags field with (default) 30 items based on the most used count.
Also reduce the min term length to 1, if there is a performance issue the site owner has to tweak this value.

Testing Instructions

  • Open an article
  • Look at the tags field, you will see no tags
  • Create 40 tags (or reduce the configuration entry "Initial number of shown tags" in com_tags config to a lower number
  • Open an article
  • You will see 30 tags
  • Create several articles
  • Add the always the same 10 tags
  • You will always see the 10 tags and 20 additional tags
  • Also test non ajax mode

Actual result BEFORE applying this Pull Request

The tags field was empty

Expected result AFTER applying this Pull Request

You have some (hopefully) tags to select.

Documentation Changes Required

N/A

Thanks to @bembelimen for helping

avatar HLeithner HLeithner - open - 24 Nov 2020
avatar HLeithner HLeithner - change - 24 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Nov 2020
Category com_tags Administration Language & Strings Libraries
f21fd46 25 Nov 2020 avatar HLeithner cs
avatar HLeithner HLeithner - change - 25 Nov 2020
Labels Added: ? ? ?
avatar wilsonge
wilsonge - comment - 26 Nov 2020

So looks like this blocker was intended. The remoteSearch option seems to have been added as part of the move to the choices.js element #22263 - first of all I guess it's worth asking whether we should roll back some of that code rather than adding in additional queries

I definitely don't see the need to allow people to select the number of items returned? This seems like our favourite parameter creep

Finally I think reducing the min term length should be done outside the scope of this PR. There's no need to really change that as part of this change

Good work at figuring out this one though!

avatar joomla-cms-bot joomla-cms-bot - change - 1 Dec 2020
Category com_tags Administration Language & Strings Libraries Libraries
avatar HLeithner
HLeithner - comment - 1 Dec 2020

@wilsonge I updated the PR by reverting the default min length and removed the limit parameter

avatar wilsonge wilsonge - change - 2 Dec 2020
Labels Removed: ?
avatar punambaravkar punambaravkar - test_item - 5 Dec 2020 - Tested successfully
avatar punambaravkar
punambaravkar - comment - 5 Dec 2020

I have tested this item successfully on aea7162

some tags to select.


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

avatar vaibhavsTekdi vaibhavsTekdi - test_item - 5 Dec 2020 - Tested successfully
avatar vaibhavsTekdi
vaibhavsTekdi - comment - 5 Dec 2020

I have tested this item successfully on aea7162

Yes, After adding the patch, it works correctly & I can see the previously added tags in the tags filter on the article list view.


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

avatar HLeithner HLeithner - change - 5 Dec 2020
Status Pending Ready to Commit
avatar wilsonge wilsonge - change - 18 Dec 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-18 03:23:15
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 18 Dec 2020
avatar wilsonge wilsonge - merge - 18 Dec 2020
avatar wilsonge
wilsonge - comment - 18 Dec 2020

Finally tested this and it's completely fine. Thanks!

Add a Comment

Login with GitHub to post a comment