wiki:TicketQuery

TicketQuery Wiki Macro

The TicketQuery macro lets you display ticket information anywhere that accepts WikiFormatting. The query language used by the [[TicketQuery]] macro is described in the TracQuery page.

Usage

[[TicketQuery]]

Wiki macro listing tickets that match certain criteria.

This macro accepts a comma-separated list of keyed parameters, in the form "key=value".

If the key is the name of a field, the value must use the syntax of a filter specifier as defined in TracQuery#QueryLanguage. Note that this is not the same as the simplified URL syntax used for query: links starting with a ? character. Commas (,) can be included in field values by escaping them with a backslash (\).

Groups of field constraints to be OR-ed together can be separated by a literal or argument.

In addition to filters, several other named parameters can be used to control how the results are presented. All of them are optional.

The format parameter determines how the list of tickets is presented:

  • list -- the default presentation is to list the ticket ID next to the summary, with each ticket on a separate line.
  • compact -- the tickets are presented as a comma-separated list of ticket IDs.
  • count -- only the count of matching tickets is displayed
  • rawcount -- only the count of matching tickets is displayed, not even with a link to the corresponding query (since 1.1.1)
  • table -- a view similar to the custom query view (but without the controls)
  • progress -- a view similar to the milestone progress bars

The max parameter can be used to limit the number of tickets shown (defaults to 0, i.e. no maximum).

The order parameter sets the field used for ordering tickets (defaults to id).

The desc parameter indicates whether the order of the tickets should be reversed (defaults to false).

The group parameter sets the field used for grouping tickets (defaults to not being set).

The groupdesc parameter indicates whether the natural display order of the groups should be reversed (defaults to false).

The verbose parameter can be set to a true value in order to get the description for the listed tickets. For table format only. deprecated in favor of the rows parameter

The rows parameter can be used to specify which field(s) should be viewed as a row, e.g. rows=description|summary

The col parameter can be used to specify which fields should be viewed as columns. For table format only.

For compatibility with Trac 0.10, if there's a last positional parameter given to the macro, it will be used to specify the format. Also, using "&" as a field separator still works (except for order) but is deprecated.

Examples

Example Result Macro
Number of Triage tickets: 1563 [[TicketQuery(status=new&milestone=,count)]]
Number of new tickets: 1563 [[TicketQuery(status=new,count)]]
Number of reopened tickets: 155 [[TicketQuery(status=reopened,count)]]
Number of assigned tickets: 0 [[TicketQuery(status=assigned,count)]]
Number of invalid tickets: 1456 [[TicketQuery(status=closed,resolution=invalid,count)]]
Number of worksforme tickets: 226 [[TicketQuery(status=closed,resolution=worksforme,count)]]
Number of duplicate tickets: 478 [[TicketQuery(status=closed,resolution=duplicate,count)]]
Number of wontfix tickets: 220 [[TicketQuery(status=closed,resolution=wontfix,count)]]
Number of fixed tickets: 4301 [[TicketQuery(status=closed,resolution=fixed,count)]]
Number of untriaged tickets (milestone unset): 2360 [[TicketQuery(status!=closed,milestone=,count)]]
Total number of tickets: 9596 [[TicketQuery(count)]]
Number of tickets reported or owned by current user: 0 [[TicketQuery(reporter=$USER,or,owner=$USER,count)]]
Number of tickets created this month: 36 [[TicketQuery(created=thismonth..,count)]]
Number of closed Firefox tickets: 0 [[TicketQuery(status=closed,keywords~=firefox,count)]]
Number of closed Opera tickets: 0 [[TicketQuery(status=closed,keywords~=opera,count)]]
Number of closed tickets affecting Firefox and Opera: 0 [[TicketQuery(status=closed,keywords~=firefox opera,count)]]
Number of closed tickets affecting Firefox or Opera: 0 [[TicketQuery(status=closed,keywords~=firefox|opera,count)]]
Number of tickets that affect Firefox or are closed and affect Opera: 0 [[TicketQuery(status=closed,keywords~=opera,or,keywords~=firefox,count)]]
Number of closed Firefox tickets that don't affect Opera: 0 [[TicketQuery(status=closed,keywords~=firefox -opera,count)]]
Last 3 modified tickets: #9555, #9614, #9259 [[TicketQuery(max=3,order=modified,desc=1,compact)]]

Details of ticket #1:

[[TicketQuery(id=1,col=id|owner|reporter,rows=summary,table)]]

Ticket Owner Reporter
#1 Michael Niedermayer Michael Niedermayer
Summary Test

Format: list

[[TicketQuery(version=0.6|0.7&resolution=duplicate)]]

This is displayed as:

No results

[[TicketQuery(id=123)]]

This is displayed as:

#123
Fuzzed sample crashes ffplay

Format: compact

[[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]]

This is displayed as:

No results

Format: count

[[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]]

This is displayed as:

0

Format: progress

[[TicketQuery(milestone=0.12.8&group=type,format=progress)]]

This is displayed as:

defect

6290 / 7957

enhancement

890 / 1510

task

33 / 45

license violation

9 / 67

art

12 / 12

sponsoring request

2 / 5

Format: table

You can choose the columns displayed in the table format (format=table) using col=<field>. You can specify multiple fields and the order they are displayed by placing pipes (|) between the columns:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]]

This is displayed as:

Results (1 - 3 of 7236)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#9595 invalid av_add_q(0/-1, -1/0) returns 1/0 namniav
#9593 duplicate alac encoder does no support 20bits depth Michael
#9591 fixed Two instances of qhd in parseutils.c cats13
1 2 3 4 5 6 7 8 9 10 11

Full rows

In table format you can specify full rows using rows=<field>:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter,rows=description)]]

This is displayed as:

Results (1 - 3 of 7236)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#9595 invalid av_add_q(0/-1, -1/0) returns 1/0 namniav
Description

Summary of the bug:

https://ffmpeg.org/doxygen/4.1/rational_8c_source.html#l00093

av_add_q(0/-1, -1/0) incorrectly returns 1/0. Adding 0 to -inf should be -inf, not inf.

More generally, av_add_q(x/-1, -1/0) should return -inf, not inf.

#9593 duplicate alac encoder does no support 20bits depth Michael
Description

Summary of the bug: alac decoder support 20 bits bit depth, but encoder does not. seems fixed bit depth in code. ---

if (avctx->sample_fmt == AV_SAMPLE_FMT_S32P) {

if (avctx->bits_per_raw_sample != 24)

av_log(avctx, AV_LOG_WARNING, "encoding as 24 bits-per-sample\n");

avctx->bits_per_raw_sample = 24;

} else {

avctx->bits_per_raw_sample = 16; s->extra_bits = 0;

}

--- How to reproduce:

C:\Data\ffmpeg.exe  -i 008.alac20.c2.caf -codec alac 008.m4a
ffmpeg version n4.4.1-14-g5a7763bdfa-20220108 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (crosstool-NG 1.24.0.498_5075e1f)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-nonfree --enable-gpl --enable-version3 --disable-debug --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --disable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --disable-vulkan --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220108
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, caf, from '008.alac20.c2.caf':
  Duration: 00:04:05.76, start: 0.000000, bitrate: 782 kb/s
  Stream #0:0: Audio: alac (alac / 0x63616C61), 44100 Hz, stereo, s32p (20 bit), 705 kb/s
File '008.m4a' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 -> #0:0 (alac (native) -> alac (native))
Press [q] to stop, [?] for help
[alac @ 0000015e13ff3dc0] encoding as 24 bits-per-sample
Output #0, ipod, to '008.m4a':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Audio: alac (alac / 0x63616C61), 44100 Hz, stereo, s32p (24 bit), 128 kb/s
    Metadata:
      encoder         : Lavc58.134.100 alac
size=   35154kB time=00:04:05.66 bitrate=1172.3kbits/s speed= 155x
video:0kB audio:35143kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.032632%

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

#9591 fixed Two instances of qhd in parseutils.c cats13
Description

In https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/libavutil/parseutils.c they are two instances of qhd (scale to quad hd resolution). In previous versions of ffmpeg it would use 960x540 now it outputs at 2560x1440.

    { "wqhd",     2560,1440 },
    { "qhd",      2560,1440 },
    { "qhd",       960,540  },
1 2 3 4 5 6 7 8 9 10 11


See also: TracQuery, TracTickets, TracReports

Last modified 9 months ago Last modified on Apr 17, 2021, 4:33:53 PM
Note: See TracWiki for help on using the wiki.