Ticket #4078 (assigned defect)

Opened 5 years ago

Last modified 2 years ago

Bring back the mincount functionality for the TagCloud macro

Reported by: ogiesen Assigned to: hasienda (accepted)
Priority: normal Component: TagsPlugin
Severity: major Keywords: TagCloud argument missing
Cc: Trac Release: 0.11

Description

I'm really missing this a lot. Without being able to eliminate one shot tags on demand, the cloud is mostly useless for me.

The version for trac 0.10 used to allow this.

I don't really care about the specific syntax or implementation. I can see how the new [[TagCloud(<expression>)]] would no longer allow for using mincount=X as an argument but there has to be some other way, or isn't there?

Attachments

Change History

10/05/11 23:42:09 changed by hasienda

  • keywords set to TagCloud argument missing.
  • type changed from enhancement to defect.

If it has been there (did not check on my own), this is a regression, right?

10/09/11 03:11:16 changed by hasienda

  • status changed from new to assigned.
  • owner changed from athomas to hasienda.

The hardest part on this request is, to properly mark the last cloud item, when the last tag(s) is/are filtered out from the list due to not reaching mincount count.

10/14/11 00:41:51 changed by hasienda

(In [10776]) TagsPlugin: Restore wiki macro argument mincount for TagQuery macro, refs #4078.

Sure, adding argument parsing for this macro as well has been a prerequisite.

Then, on re-designing the list builder algorithm, I introduced linebreaks for better readability of HTML source. While this removes the fix from [7380], linebreaks prevent IE from running tags together inside the cloud equally well.

As a tribute to #4503 the mincount check could yield a significant speedup for the list built by throwing (possibly many) tags with single occurrence away. Obsolete tag list length calulation saves a few more milliseconds here. No wait, just joking at the last one. New test in the loop eats up that gain, and more.

10/14/11 23:35:02 changed by hasienda

(In [10780]) TagsPlugin: Prepare mincount functionality for main tags page, refs #4078.

After re-enabling the TagCloud macro let's prepare this for the main tag cloud too. This required some code relocating, and tests have been adapted as well.

10/15/11 00:06:39 changed by hasienda

(In [10781]) TagsPlugin: Add mincount functionality to main tags page, refs #4078 and #4503.

cloud_mincount allows to cut default cloud size and reduce cluttering and render time for the /tags page a bit when tagging is in heavy use. Calls of wiki macro TagCloud are not affected by this configuration option.


Add/Change #4078 (Bring back the mincount functionality for the TagCloud macro)




Change Properties
Action