Opened 8 years ago
Closed 7 years ago
#2933 closed enhancement (maybelater)
Provide shortcode for linking to unanswered tickets for a component
Reported by: |
|
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.
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.