Mossop / bugzilla-ts

A NodeJS module to access Bugzilla instances through the REST API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RFE: Please add support for Red Hat Bugzilla

jamacku opened this issue · comments

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!