Git Product home page Git Product logo

bugzilla-ts's Introduction

Hello!

I like to write code. I like to experiment with new things, or try to solve problems that annoy me and maybe no-one else. I have all sorts of cool ideas for things to build and sometimes I even start building them. I generally don't finish, once I've done the interesting bits that teach me something or prove that something can be done the grind of shipping isn't something I have much interest in doing in my spare time. But who knows, one day maybe I'll ship something!

Almost nothing I work on professionally is hosted on github so all you're seeing here are things I work on in my spare time.

In my day job I work on the Firefox web browser as the joint module owner of the front-end and member of the top-level module committee.

Not so long ago I found an archive of my old subversion server and so there are a whole bunch of my ancient projects up here. Don't judge the code too harshly, I'm sure your code wasn't fantastic 20 years ago!

bugzilla-ts's People

Contributors

dependabot[bot] avatar jamacku avatar mossop avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

bugzilla-ts's Issues

Integration tests rely on live data

The tests that pull bugs from live Mozilla and RedHat bugzillas rely on that data remaining constant. If someone changes their display name then the tests start to fail. We should probably just test the general shape of the returned data and not the specific values.

Issue new release

With the changes to support Red Hat it may be time to release a new version. The type changes I think would make this a major update (any dependent project using TypeScript could break) so the next release would be v2.0.0.

RFE: Please add support for Red Hat Bugzilla

Please consider adding support for Red Hat Bugzilla - API Docs.

Differences that I'm aware of are in Bug object:


How to reproduce:

import BugzillaAPI from 'bugzilla';

let api = new BugzillaAPI('https://bugzilla.redhat.com/');

api
  .getBugs([1556154, 1906064])
  .then(bug => console.log(bug))
  .catch(err => console.log(err));

Example Request Fedora product:

GET https://bugzilla.redhat.com/rest/bug/123456
Response
{
   "bugs" : [
      {
         "alias" : [],
         "assigned_to" : "Arjan van de Ven",
         "assigned_to_detail" : {
            "email" : "arjanv",
            "id" : 29238,
            "name" : "arjanv",
            "real_name" : "Arjan van de Ven"
         },
         "blocks" : [],
         "cc" : [
            "Blade_Arma",
            "Issue Tracker"
         ],
         "cc_detail" : [
            {
               "email" : "edgbla",
               "id" : 315394,
               "name" : "edgbla",
               "real_name" : "Blade_Arma"
            },
            {
               "email" : "tao",
               "id" : 80926,
               "name" : "tao",
               "real_name" : "Issue Tracker"
            }
         ],
         "cf_clone_of" : null,
         "cf_doc_type" : "Bug Fix",
         "cf_environment" : "",
         "cf_fixed_in" : "",
         "cf_last_closed" : "2006-02-21T19:03:16Z",
         "cf_release_notes" : "",
         "cf_type" : "---",
         "classification" : "Fedora",
         "component" : [
            "kernel"
         ],
         "creation_time" : "2004-05-18T19:39:17Z",
         "creator" : "Gil Chilton",
         "creator_detail" : {
            "email" : "gil.chilton",
            "id" : 30769,
            "name" : "gil.chilton",
            "real_name" : "Gil Chilton"
         },
         "deadline" : null,
         "depends_on" : [],
         "docs_contact" : "",
         "dupe_of" : 123935,
         "groups" : [],
         "id" : 123456,
         "is_cc_accessible" : true,
         "is_confirmed" : true,
         "is_creator_accessible" : true,
         "is_open" : false,
         "keywords" : [],
         "last_change_time" : "2016-07-05T15:12:23Z",
         "op_sys" : "Linux",
         "platform" : "i386",
         "priority" : "medium",
         "product" : "Fedora",
         "qa_contact" : "",
         "resolution" : "DUPLICATE",
         "see_also" : [],
         "severity" : "medium",
         "status" : "CLOSED",
         "summary" : "System with Syntax - S635MP motherboard will not install",
         "target_milestone" : "---",
         "target_release" : [
            "---"
         ],
         "url" : "",
         "version" : [
            "2"
         ],
         "whiteboard" : ""
      }
   ],
   "faults" : []
}

Example Request RHEL product:

GET https://bugzilla.redhat.com/rest/bug/1906064

Response:

Response
{
   "bugs" : [
      {
         "alias" : [],
         "assigned_to" : "Jan Macku",
         "assigned_to_detail" : {
            "email" : "jamacku",
            "id" : 431924,
            "name" : "jamacku",
            "real_name" : "Jan Macku"
         },
         "blocks" : [
            1997981,
            1997986
         ],
         "cc" : [
            "Jan Macku"
         ],
         "cc_detail" : [
            {
               "email" : "jamacku",
               "id" : 431924,
               "name" : "jamacku",
               "real_name" : "Jan Macku"
            }
         ],
         "cf_clone_of" : null,
         "cf_doc_type" : "If docs needed, set a value",
         "cf_environment" : "",
         "cf_fixed_in" : "",
         "cf_last_closed" : null,
         "cf_release_notes" : "",
         "cf_target_upstream_version" : "",
         "classification" : "Red Hat",
         "component" : [
            "tcsh"
         ],
         "creation_time" : "2020-12-09T15:51:23Z",
         "creator" : "Frank Hirtz",
         "creator_detail" : {
            "email" : "fhirtz",
            "id" : 30797,
            "name" : "fhirtz",
            "real_name" : "Frank Hirtz"
         },
         "deadline" : null,
         "depends_on" : [],
         "docs_contact" : "",
         "dupe_of" : null,
         "groups" : [],
         "id" : 1906064,
         "is_cc_accessible" : true,
         "is_confirmed" : true,
         "is_creator_accessible" : true,
         "is_open" : true,
         "keywords" : [],
         "last_change_time" : "2021-12-01T15:18:46Z",
         "op_sys" : "All",
         "platform" : "All",
         "priority" : "high",
         "product" : "Red Hat Enterprise Linux 7",
         "qa_contact" : "Karel Volný",
         "qa_contact_detail" : {
            "email" : "kvolny",
            "id" : 213715,
            "name" : "kvolny",
            "real_name" : "Karel Volný"
         },
         "resolution" : "",
         "see_also" : [],
         "severity" : "high",
         "status" : "POST",
         "summary" : "tcsh history breaks when using modifiers",
         "target_milestone" : "rc",
         "target_release" : [
            "---"
         ],
         "url" : "",
         "version" : [
            "7.9"
         ],
         "whiteboard" : ""
      }
   ],
   "faults" : []
}

Thank you for your work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.