Skip to content
Commits on Apr 29, 2013
  1. @tsibley

    Sum active/inactive bug counts and use lifecycles to get statuses

    tsibley committed
    The hardcoded statuses missed the "patched" status; using lifecycles
    fixes it.
Commits on Apr 27, 2013
  1. @tsibley
  2. @tsibley

    Merge branch 'rt4'

    tsibley committed
Commits on Apr 20, 2013
  1. @tsibley
Commits on Apr 11, 2013
  1. @tsibley

    Revert "Remove support for pre-2006 public dist/bug pages"

    tsibley committed
    The latest releases of at least 542 distributions point to some of these
    old-school URLs in their META files [1].  There's also a lot of POD
    pointing at them [2].  It's far too optimistic to remove these URLs
    anytime in the future, even if the tools which may be using them as
    defaults are updated [3].  First rule of the internet: don't break links!
    So we're stuck with 'em.
    This reverts commit 2630ea4.
    [1] See __END__ below.  MetaCPAN is awesome.
    [3] Including, but not limited to:
        • Module::Build
        • Dist::Zilla
        • ExtUtils::MakeMaker
        • Module::Install
        • Module::Build::Bundle
    use strict;
    use warnings;
    use List::Util 'max';
    use ElasticSearch;
    my $es = ElasticSearch->new(
        servers     => '',
        no_refresh  => 1,
        transport   => 'http',
    my $scroller = $es->scrolled_search(
        query       => { match_all => {} },
        size        => 100,
        search_type => 'scan',
        scroll      => '5m',
        index       => 'v0',
        type        => 'release',
        fields  => [ "name" , "resources.bugtracker.web", "metadata.generated_by" ],
        filter  => {
            and => [
                { exists    => { field  => "resources.bugtracker.web" }},
                { term      => { status => "latest" }},
    ) or die "Connecting to failed";
    my %dist;
    while ( my $result = $scroller->next ) {
        my ($name, $bugs) = @{$result->{fields}}{"name", "resources.bugtracker.web"};
        next unless $bugs =~ m{\\E}i;
        $dist{$name} = $bugs;
    my $max_length = max map { length } keys %dist;
    printf "%-*s %s\n", $max_length, $_, $dist{$_}
        for sort keys %dist;
  2. @tsibley

    Mark the ticket export query join as distinct to avoid a performance …

    tsibley committed
    This eliminates the need for a temporary table.
  3. @tsibley

    Improve the query for exporting tickets to SQLite

    tsibley committed
    Using RT::Tickets without using FromSQL often leads to ugly and
    unexpected behaviour due to the internals.  While that underlying
    problem should be fixed, it isn't happening anytime soon.
    By switching to a combination of FromSQL and the explicit "vanilla"
    versions of Join/Limit, we pick up the standard set of limits that
    FromSQL implies:
                 Status != deleted
        AND EffectiveId  = id
        AND        Type  = ticket
    The status limit prevents "Deep recursion" warnings triggered by
    RT::Tickets::Next skipping over deleted tickets in long runs.  The other
    two limits improve the accuracy of the export by eliminating tickets
    merged into other tickets and not counting reminders or approvals that
    may have strayed into the database.
    While the switch from Join/_SQLLimit to the RT::SearchBuilder:: versions
    is not strictly necessary, I think it enhances the explicitness of
    what's effectively happening and avoids touching the "ticketsql"
    subclause added by FromSQL.
Commits on Apr 10, 2013
  1. @tsibley

    Information about sponsors

    tsibley committed
  2. @tsibley

    Rename the /NoAuth/cpan/ placeholder

    tsibley committed
    A placeholder with the real name overwrite the real data whenever we
    update the extension in production.
  3. @tsibley
Commits on Apr 8, 2013
  1. @tsibley

    Use the 4.0/joins-bundling patch which is not yet merged into RT core

    tsibley committed
    It resolves pathological SQL generation from TicketSQL containing many
    OR'd watcher conditions.  The most extreme cases go from ~80s per query
    to less than 1s.
Commits on Apr 6, 2013
  1. @tsibley

    Resizable <select> boxes

    tsibley committed
    Easier picking through version and column form inputs.  Requested, quite
    reasonably, by ETHER.
Commits on Apr 5, 2013
  1. @tsibley

    Tweak the Severity CF display

    tsibley committed
    Render it as a dropdown since it's a single value select and sort it
    first when showing/editing CFs (ahead of queue-level Broken in/Fixed
  2. @tsibley

    Remove "Extract Article" from the ticket action menu

    tsibley committed doesn't use articles, and there's no core rights check
    guarding this menu action.
  3. @tsibley

    Provide actions for moving from patched to open and resolved

    tsibley committed
    Patched was added but no transitions were defined out.
  4. @tsibley

    Only auto-open new or stalled tickets on replies from non-requestors

    tsibley committed
    All other transitions to open must be explicit.  The general consensus
    from authors is that this is preferable and creates less busy work.
  5. @tsibley

    Add the OpenTicket transition right and deny it to the public user

    tsibley committed
    There's still a Privileged/Unprivileged split between Bitcard and OpenID
    users internally, so denying it is unfortunately necessary.
  6. @tsibley

    Expunge Hook::LexWrap in a fire

    tsibley committed
    It completely ruins all stacktraces when it's used, even if they don't
    go through the wrapped method.  There's no need for any of it's magic
    for a simple wrap.
Commits on Apr 4, 2013
  1. @tsibley
  2. @tsibley
  3. @tsibley
Commits on Apr 3, 2013
  1. @tsibley

    Syntax error

    tsibley committed
  2. @tsibley

    sudo is no longer necessary

    tsibley committed
  3. @tsibley

    Updates from the dev box

    tsibley committed
  4. @tsibley

    More robust error handling when pulling live

    tsibley committed
    The previous error handling assumed that output on STDOUT meant success,
    which is not always correct.  Be more nuanced about error detection and
    handling and provide better diagnostics.  A few of the previous fatal
    errors are now only warnings.
  5. @tsibley

    Adjust the quicksearch links patch to apply more cleanly

    tsibley committed
    Squashing the hunks from the first commit into the second commit lets
    patch(1) detect that the patch is already applied and respond
  6. @tsibley

    Fix indent

    tsibley committed
  7. @tsibley
  8. @tsibley
Commits on Apr 2, 2013
  1. @tsibley

    Instead of removing the entire Tools menu, just remove Articles

    tsibley committed
    We may want to enable articles for at a later date, but for
    now disable menu access.
  2. @tsibley
Commits on Apr 1, 2013
  1. @tsibley

    Correct NOT IN operator patch

    tsibley committed
  2. @tsibley

    Patch for NOT IN

    tsibley committed
Commits on Mar 30, 2013
  1. @tsibley

    Adaptively autocomplete distribution or module names when finding a q…

    tsibley committed
    If the user types a colon, we assume they're looking for a module name
    and switch to mapping modules to distributions via
    If the user hasn't yet typed a colon, we preserve the long-standing
    expectation of distribution names and autocomplete against
    queue names.
    This means that typing "App::Prove" finds you Test-Harness and typing
    "LWP::U" finds you libwww-perl.  It also ensures that typing "libwww"
    autocompletes to libwww-perl for anyone familiar with's
    historical expectations.
Commits on Mar 27, 2013
  1. @tsibley
Something went wrong with that request. Please try again.