Making WordPress.org

Opened 6 years ago

Closed 5 years ago

#2933 closed enhancement (maybelater)

Provide shortcode for linking to unanswered tickets for a component

Reported by: desrosj's profile desrosj Owned by:
Milestone: Priority: normal
Component: Make (Get Involved) / P2 Keywords: needs-patch
Cc:

Description

On the components page (https://make.wordpress.org/core/components/), there is a column stating the number of unanswered trac tickets belonging to each component linking to a trac query for said tickets. The link is a query by ticket number that is cached.

In writing agendas for bug and ticket scrubs, this list of tickets can become inaccurate between the time the agenda goes out and the time the scrub happens.

It would be great if there was a shortcode that could be used in posts on Make blogs that would automatically refresh itself in the same way the components page does.

Example:

[unanswered-tickets component="media"]

It would also be great if this could include tickets with a focus. Multisite, for example, has a component and a focus in trac.

Some other potential examples (which may or may not be possible to generate and may Need separate tickets).

Unanswered tickets with a specific focus, component independant:

[unanswered-tickets focus="multisite"]

Unanswered tickets not in a component, but with a specific focus:

[unanswered-tickets component="!multisite" focus="multisite"]

More than happy to supply a patch for this if it would be accepted/blessed. Making this ticket as a brain dump as a reminder to circle back.

Change History (6)

#1 @Otto42
6 years ago

The code to do this page is here:

https://meta.svn.wordpress.org/sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-components.php

Look at the generate_component_breakdowns() function to see where it gets the data and caches it on a 5 minute cycle.

There's no shortcode in there, but the code is straightforward enough that it should be easy to add one.

#2 @SergeyBiryukov
6 years ago

  • Component changed from General to Make (Get Involved) / P2

#3 @obenland
5 years ago

@desrosj Any progress on this? Or should we do this maybelater?

#4 @desrosj
5 years ago

@obenland I am going to prioritize this over the next week to have a workable patch.

#5 @obenland
5 years ago

maybelater? :)

#6 @desrosj
5 years ago

  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.