Permalink
Commits on Dec 28, 2016
  1. Merge pull request #91 from rdalverny/add_number_display

    Add number display
    LegNeato committed on GitHub Dec 28, 2016
  2. Merge pull request #88 from rdalverny/show_full_query_link

    Add a link to the Bugzilla query in the table summary
    LegNeato committed on GitHub Dec 28, 2016
Commits on Dec 27, 2016
  1. Merge pull request #87 from rdalverny/refactor_options

    Refactor consistent options
    LegNeato committed on GitHub Dec 27, 2016
  2. Merge pull request #82 from rdalverny/nicer_empty_state

    Do not show table if no bug is returned by Bugzilla API
    LegNeato committed on GitHub Dec 27, 2016
Commits on Sep 27, 2016
  1. Add test case

    rdalverny committed Sep 22, 2016
  2. Refactor _generate_id()

    rdalverny committed Sep 16, 2016
  3. Ensure a consistent, working options data structure

    Before this change, we were not so sure about the consistency of
    the BugzillaQuery $options member: there were several duplicate
    tests checking for 'include_fields' existence, type and correctness.
    
    This adds a prepare_options() method which validates configuration
    JSON string:
    - if it's not a valid JSON, it sets an error as before,
    - if it's an empty string or JSON, it sets a working default,
      so first time users get a working experience at once.
    
    This also introduces tests for this change, to document
    prepare_options() behaviour.
    rdalverny committed Sep 16, 2016
  4. Move query fetch() invocation out of the constructors

    Before this change, the invocation order was the following:
     - BugzillaRender(...),
     - Bugzilla::create(...),
     - new BugzillaOutput(...),
     - BugzillaQuery::create(...),
     - new BugzillaRESTQuery(...),
     - $this->fetch() => triggers the actual HTTP request.
    
    That's not great for testing separate entities.
    
    This change allows to build the whole chain above without
    implicitly triggering fetch().
    rdalverny committed Sep 16, 2016
  5. Fix syntax typo

    rdalverny committed with LegNeato Sep 27, 2016
  6. Add number display option

    Use it as an inlined HTML tag:
    <bugzilla type="count" display="number">{}</bugzilla>
    
    Fixes: #44
    rdalverny committed Sep 27, 2016
  7. Set a user agent when querying remote API

    A $wgBugzillaExtVersion is defined as a global,
    used by a new BugzillaRESTQuery::user_agent() method.
    
    Initial version is arbitrarily set at 1.0.0 to begin with,
    but that, and the versioning scheme to adopt, is left to discussion
    (I'd suggest http://semver.org).
    rdalverny committed with LegNeato Sep 16, 2016
  8. Add vendor to gitignore

    rdalverny committed with LegNeato Sep 26, 2016
  9. Add code style & linting rules for PHP

    This is based on Mediawiki boilerplate composer.json & phpcs.xml.
    This adds a Makefile too.
    
    To setup:
    
      $ make install-dev
      $ make lint
      $ make cs
    rdalverny committed with LegNeato Sep 26, 2016
Commits on Sep 22, 2016
Commits on Sep 8, 2016
  1. Do not show table if no bug is returned by Bugzilla API

    See: #50
    
    Division by $all=0 has been addressed by dfcec1f
    so #50 may be closed.
    
    Bugzilla uses 'Zarro Boogs found.' but even that may change:
    https://bugzilla.mozilla.org/show_bug.cgi?id=313647
    
    Replaces: #51
    rdalverny committed Sep 8, 2016
Commits on Dec 2, 2015
  1. Fix typo

    LegNeato committed Dec 2, 2015
  2. Merge pull request #74 from rhabacker/json-rpc

    Add json rpc support
    LegNeato committed Dec 2, 2015
Commits on Oct 1, 2015
  1. Merge pull request #76 from dennisroczek/master

    add license file + listing at Special:Version
    LegNeato committed Oct 1, 2015
  2. Merge pull request #73 from rhabacker/master

    postgresql fixes
    LegNeato committed Oct 1, 2015
Commits on Sep 9, 2015
  1. Fixup of 80cc683.

    Mysql requires a specific sql syntax.
    Ralf Habacker committed Sep 9, 2015
Commits on Sep 8, 2015
  1. Fix array json syntax.

    Ralf Habacker committed with Ralf Habacker Sep 8, 2015
  2. Add JSON-RPC query support.

    Ralf Habacker committed Sep 8, 2015
  3. Make database cache entry deleting independent from database type.

    Ralf Habacker committed with Ralf Habacker Sep 8, 2015
  4. Fix postgresql syntax

    Ralf Habacker committed Sep 7, 2015
Commits on Jul 19, 2015
  1. Merge pull request #72 from mozilla/fixtables

    added proper classes to tables
    christi3k committed Jul 19, 2015
  2. added proper classes to tables

    christi3k committed Jul 19, 2015
Commits on Jul 15, 2015
  1. Merge pull request #69 from edmorley/add-stats-option

    Bug 1168463 - Add an option to hide bug resolution statistics
    christi3k committed Jul 15, 2015
  2. Merge pull request #71 from edmorley/less-verbose-names

    Bug 1168491 - Make people fields less verbose if real name set
    christi3k committed Jul 15, 2015
Commits on May 26, 2015
  1. Bug 1168491 - Make people fields less verbose if real name set

    Previously if the real name was set, both the name (ie partial email
    address) and real name was displayed, now only the real name is shown.
    edmorley committed May 26, 2015
  2. Bug 1168463 - Add an option to hide bug resolution statistics

    This adds the ability to turn off the bug resolution statistics, eg:
    '44 Total; 0 Open (0%); 40 Resolved (90.91%); 4 Verified (9.09%);'
    
    Using a new "stats" option:
      <bugzilla stats="hide">
        ...
      </bugzilla>
    
    Fixes #55.
    edmorley committed May 26, 2015