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: 2014 [[TicketQuery(status=new&milestone=,count)]]
Number of new tickets: 2014 [[TicketQuery(status=new,count)]]
Number of reopened tickets: 164 [[TicketQuery(status=reopened,count)]]
Number of assigned tickets: 0 [[TicketQuery(status=assigned,count)]]
Number of invalid tickets: 1664 [[TicketQuery(status=closed,resolution=invalid,count)]]
Number of worksforme tickets: 252 [[TicketQuery(status=closed,resolution=worksforme,count)]]
Number of duplicate tickets: 537 [[TicketQuery(status=closed,resolution=duplicate,count)]]
Number of wontfix tickets: 271 [[TicketQuery(status=closed,resolution=wontfix,count)]]
Number of fixed tickets: 4782 [[TicketQuery(status=closed,resolution=fixed,count)]]
Number of untriaged tickets (milestone unset): 2853 [[TicketQuery(status!=closed,milestone=,count)]]
Total number of tickets: 10955 [[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: 30 [[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: #10973, #9925, #10972 [[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

7049 / 9153

enhancement

988 / 1660

task

39 / 52

license violation

11 / 71

art

13 / 14

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 8102)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#10969 duplicate animated webp cannot be processed by ffmpeg or ffplay rabcor
#10951 fixed SEGV bug at libavcodec/hevcdec.c:2947:22 in hevc_frame_end in FFmpeg7.0 ZengYunxiang
#10947 fixed vsynth_lena.yuv can't find lena.pnm Atemu
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 8102)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#10969 duplicate animated webp cannot be processed by ffmpeg or ffplay rabcor
Description

ffmpeg fails to read animated webp files. (Sample File: https://mathiasbynens.be/demo/animated-webp-supported.webp)

Gives errors:

[webp @ 0x7b87000020c0] skipping unsupported chunk: ANIM 0B 
[webp @ 0x7b87000020c0] skipping unsupported chunk: ANMF
[webp @ 0x7b87000020c0] image data not found

How to reproduce:

ffplay any-animated.webp
#or
ffmpeg -i any-animated.webp output.anyformat

Other Info:

ffmpeg -version:

ffmpeg version N-114897-gbba996d6cd Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 13.2.1 (GCC) 20230801
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --disable-htmlpages --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-version3 --enable-vulkan
libavutil      59. 15.100 / 59. 15.100
libavcodec     61.  5.103 / 61.  5.103
libavformat    61.  3.100 / 61.  3.100
libavdevice    61.  2.100 / 61.  2.100
libavfilter    10.  2.101 / 10.  2.101
libswscale      8.  2.100 /  8.  2.100
libswresample   5.  2.100 /  5.  2.100
libpostproc    58.  2.100 / 58.  2.100

ffmpeg -v 9 -loglevel 99 -i animated-webp-supported.webp:

Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input url with argument 'animated-webp-supported.webp'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input url animated-webp-supported.webp.
Successfully parsed a group of options.
Opening an input file: animated-webp-supported.webp.
[AVFormatContext @ 0x59fb643aa980] Opening 'animated-webp-supported.webp' for reading
[file @ 0x59fb6436bb40] Setting default whitelist 'file,crypto,data'
Probing image2 score:50 size:2048
Probing mp3 score:1 size:2048
Probing webp_pipe score:99 size:2048
[webp_pipe @ 0x59fb643aa980] Format webp_pipe probed with size=2048 and score=99
[webp_pipe @ 0x59fb643aa980] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
[webp @ 0x59fb643abb40] skipping unsupported chunk: ANIM
[webp @ 0x59fb643abb40] skipping unsupported chunk: ANMF
    Last message repeated 11 times
[webp @ 0x59fb643abb40] image data not found
[webp_pipe @ 0x59fb643aa980] stream 0: start_time: NOPTS duration: NOPTS
[webp_pipe @ 0x59fb643aa980] format: start_time: NOPTS duration: NOPTS (estimate from bit rate) bitrate=0 kb/s
[webp_pipe @ 0x59fb643aa980] Could not find codec parameters for stream 0 (Video: webp, 1 reference frame, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[webp_pipe @ 0x59fb643aa980] After avformat_find_stream_info() pos: 37342 bytes read:37342 seeks:0 frames:1
Input #0, webp_pipe, from 'animated-webp-supported.webp':
  Duration: N/A, bitrate: N/A
  Stream #0:0, 1, 1/25: Video: webp, 1 reference frame, none, 25 fps, 25 tbr, 25 tbn
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x59fb643b3000] Statistics: 37342 bytes read, 0 seeks
#10951 fixed SEGV bug at libavcodec/hevcdec.c:2947:22 in hevc_frame_end in FFmpeg7.0 ZengYunxiang
Description

Summary of the bug:

Dear developers,

We found the following SEGV bug on FFmpeg(version 7.0) , please confirm.

This bug doesn't require harsh parameter conditions to trigger.

The poc file(poc23ffmpeg) will be attached to this ticket.

How to reproduce:

tar -xvf ffmpeg-7.0.tar.xz
cd ffmpeg-7.0
./configure --cc=afl-clang-fast --cxx=afl-clang-fast++ --disable-shared
AFL_USE_ASAN=1 make -j30

./ffmpeg_g -y -i poc23ffmpeg tmp.mp4

ASAN Log:

AddressSanitizer:DEADLYSIGNAL
=================================================================
==2083295==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55661ca3e58c bp 0x0ff32d1da6b7 sp 0x7f9968eb7620 T8)
==2083295==The signal is caused by a READ memory access.
==2083295==Hint: address points to the zero page.
    #0 0x55661ca3e58c in hevc_frame_end /ffmpeg-7.0/libavcodec/hevcdec.c:2947:22
    #1 0x55661ca34250 in decode_nal_unit /ffmpeg-7.0/libavcodec/hevcdec.c:3122:23
    #2 0x55661ca34250 in decode_nal_units /ffmpeg-7.0/libavcodec/hevcdec.c:3227:15
    #3 0x55661ca34250 in hevc_decode_frame /ffmpeg-7.0/libavcodec/hevcdec.c:3376:14
    #4 0x55661d3b6761 in frame_worker_thread /ffmpeg-7.0/libavcodec/pthread_frame.c:223:21
    #5 0x7f996ef3fac2  (/lib/x86_64-linux-gnu/libc.so.6+0x94ac2) (BuildId: a43bfc8428df6623cd498c9c0caeb91aec9be4f9)
    #6 0x7f996efd1a3f  (/lib/x86_64-linux-gnu/libc.so.6+0x126a3f) (BuildId: a43bfc8428df6623cd498c9c0caeb91aec9be4f9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /ffmpeg-7.0/libavcodec/hevcdec.c:2947:22 in hevc_frame_end
Thread T8 (av:hevc:df7) created by T0 here:
    #0 0x55661aef856c in __interceptor_pthread_create (/ffmpeg-7.0/ffmpeg_g+0x98c56c) (BuildId: 545ccc2062eaee7e775c86df925c8f1fb97035e3)
    #1 0x55661ad85de6 in init_thread /ffmpeg-7.0/libavcodec/pthread_frame.c:828:11

==2083295==ABORTING

ffmpeg version:

# ./ffmpeg -version
ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers
built with Ubuntu clang version 14.0.0-1ubuntu1.1
configuration: --cc=afl-clang-fast --cxx=afl-clang-fast++ --disable-shared
libavutil      59.  8.100 / 59.  8.100
libavcodec     61.  3.100 / 61.  3.100
libavformat    61.  1.100 / 61.  1.100
libavdevice    61.  1.100 / 61.  1.100
libavfilter    10.  1.100 / 10.  1.100
libswscale      8.  1.100 /  8.  1.100
libswresample   5.  1.100 /  5.  1.100

Credit:

Discovered by Zeng Yunxiang.

Thanks for your time!

#10947 fixed vsynth_lena.yuv can't find lena.pnm Atemu
Description

Summary of the bug:

In trying to update Nixpkgs' ffmpeg to 7.0, we're running into this test failure:

...
GEN     tests/data/vsynth_lena.yuv
GEN     tests/data/vsynth2.yuv
/lena.pnm: No such file or directory
make: *** [tests/Makefile:45: tests/data/vsynth_lena.yuv] Error 1
make: *** Waiting for unfinished jobs....

How to reproduce:

Build ffmpeg 7.0 with

configure flags: --disable-static --prefix=/nix/store/9i8pysqbl031sycmr1klzqmzy7jwinva-ffmpeg-7.0 --target_os=linux --arch=x86_64 --pkg-config=pkg-config --enable-gpl --enable-version3 --disable-nonfree --disable-static --enable-shared --enable-pic --disable-thumb --disable-small --enable-runtime-cpudetect --disable-gray --enable-swscale-alpha --enable-hardcoded-tables --enable-safe-bitstream-reader --enable-pthreads --disable-w32threads --disable-os2threads --enable-network --enable-pixelutils --datadir=/nix/store/k7lxqbqpjb35g23js10va1cgl2x7y9sv-ffmpeg-7.0-data/share/ffmpeg --enable-ffmpeg --enable-ffplay --enable-ffprobe --bindir=/nix/store/nz7aimb8df4wzp431z12hbh867rxv3ks-ffmpeg-7.0-bin/bin --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avutil --enable-postproc --enable-swresample --enable-swscale --libdir=/nix/store/0jkd5sph2wsff8wrbvl5pyqxq02r7g0n-ffmpeg-7.0-lib/lib --incdir=/nix/store/0w2ghhmj8p9a9cvpbqm30y6zw527qb24-ffmpeg-7.0-dev/include --enable-doc --enable-htmlpages --enable-manpages --mandir=/nix/store/9hg0yv90w6120abyyckx9wclx0sp556b-ffmpeg-7.0-man/share/man --enable-podpages --enable-txtpages --docdir=/nix/store/hsyfsflmcjbxf64bgfdaz2ywh0diw0hc-ffmpeg-7.0-doc/share/doc/ffmpeg --enable-alsa --disable-libaom --disable-libaribcaption --enable-libass --disable-libbluray --disable-libbs2b --enable-bzlib --disable-libcaca --disable-libcelt --disable-chromaprint --disable-cuda --disable-cuda-llvm --enable-libdav1d --disable-libdc1394 --enable-libdrm --disable-libfdk-aac --disable-libflite --enable-fontconfig --enable-libfontconfig --enable-libfreetype --disable-frei0r --disable-libfribidi --disable-libgme --enable-gnutls --disable-libgsm --enable-libharfbuzz --enable-iconv --disable-libjack --disable-ladspa --enable-lzma --disable-libmfx --disable-libmodplug --enable-libmp3lame --disable-libmysofa --enable-cuvid --enable-nvdec --enable-nvenc --disable-openal --disable-opencl --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-libopenmpt --enable-libopus --disable-libplacebo --enable-libpulse --disable-librav1e --disable-librtmp --disable-libsmbclient --enable-sdl2 --disable-libshaderc --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --disable-librsvg --enable-libsvtav1 --disable-libtensorflow --enable-libtheora --enable-libv4l2 --enable-v4l2-m2m --enable-vaapi --enable-vdpau --disable-libvpl --disable-libvidstab --disable-libvmaf --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-vulkan --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxavs --disable-libxcb --disable-libxcb-shape --disable-libxcb-shm --disable-libxcb-xfixes --disable-xlib --disable-libxml2 --enable-libxvid --enable-libzimg --enable-zlib --disable-libzmq --disable-debug --enable-optimizations --disable-extra-warnings --disable-stripping

and try to run the tests.

1 2 3 4 5 6 7 8 9 10 11


See also: TracQuery, TracTickets, TracReports

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