get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/806923/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 806923,
    "url": "http://patchwork.ozlabs.org/api/patches/806923/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20170829031335.1577-1-po-hsu.lin@canonical.com/",
    "project": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/projects/15/?format=api",
        "name": "Ubuntu Kernel",
        "link_name": "ubuntu-kernel",
        "list_id": "kernel-team.lists.ubuntu.com",
        "list_email": "kernel-team@lists.ubuntu.com",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170829031335.1577-1-po-hsu.lin@canonical.com>",
    "list_archive_url": null,
    "date": "2017-08-29T03:13:35",
    "name": "[kteam-tools,PATCHv2] stable: remove hwe flag for sru",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "2949df4eaf901e737ae7c508d4ac67b9982e241e",
    "submitter": {
        "id": 70488,
        "url": "http://patchwork.ozlabs.org/api/people/70488/?format=api",
        "name": "Po-Hsu Lin",
        "email": "po-hsu.lin@canonical.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20170829031335.1577-1-po-hsu.lin@canonical.com/mbox/",
    "series": [
        {
            "id": 289,
            "url": "http://patchwork.ozlabs.org/api/series/289/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=289",
            "date": "2017-08-29T03:13:35",
            "name": "[kteam-tools,PATCHv2] stable: remove hwe flag for sru",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/289/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/806923/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/806923/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<kernel-team-bounces@lists.ubuntu.com>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com\n\t(client-ip=91.189.94.19; helo=huckleberry.canonical.com;\n\tenvelope-from=kernel-team-bounces@lists.ubuntu.com;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from huckleberry.canonical.com (huckleberry.canonical.com\n\t[91.189.94.19])\n\tby ozlabs.org (Postfix) with ESMTP id 3xhDHz74Yvz9sNr;\n\tTue, 29 Aug 2017 13:14:07 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=huckleberry.canonical.com)\n\tby huckleberry.canonical.com with esmtp (Exim 4.76)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1dmWyb-0000Ih-AS; Tue, 29 Aug 2017 03:14:05 +0000",
            "from youngberry.canonical.com ([91.189.89.112])\n\tby huckleberry.canonical.com with esmtps\n\t(TLS1.0:RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.76) (envelope-from <po-hsu.lin@canonical.com>)\n\tid 1dmWyW-0000IP-84\n\tfor kernel-team@lists.ubuntu.com; Tue, 29 Aug 2017 03:14:00 +0000",
            "from mail-pg0-f69.google.com ([74.125.83.69])\n\tby youngberry.canonical.com with esmtps\n\t(TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.76) (envelope-from <po-hsu.lin@canonical.com>)\n\tid 1dmWyV-000187-RG\n\tfor kernel-team@lists.ubuntu.com; Tue, 29 Aug 2017 03:13:59 +0000",
            "by mail-pg0-f69.google.com with SMTP id a186so3848182pge.5\n\tfor <kernel-team@lists.ubuntu.com>;\n\tMon, 28 Aug 2017 20:13:59 -0700 (PDT)",
            "from localhost.localdomain ([175.41.48.77])\n\tby smtp.gmail.com with ESMTPSA id\n\tg90sm2463766pfd.102.2017.08.28.20.13.57\n\tfor <kernel-team@lists.ubuntu.com>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 28 Aug 2017 20:13:57 -0700 (PDT)"
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id;\n\tbh=pkELgtrzqYJPGghK41K3OBFDwVQur3Bxkko+PBJ1ChY=;\n\tb=QsqoHqnKTexkCagM+V4pFFKTY3ROvUhjchJe+SlX13VebTNyjUOdzzABHhd3HNYhn9\n\tBwetCOWqIAo4hfYDk7E8OQWf50vLusz2tOnR2Idn9CmhJ2VJQyMGjfLJlPlvXffqBfua\n\tH5iMNOd/jb21R/4Qi6w/TrQINxnhQ9N3o+bLHS+a9HTmcltJ/qLRjRn2/PRFJnhdasxK\n\t4e2AJWJ77e5hg/pEVGasALOKlhokXdhMyvyQMlY5r0AOOG+xEBTJdRXe2R4CoqiR7uwU\n\t2AyG4C77ydZMFfocU8nxXemvNN9DzTYppm0lbGBjiWzSdeH8+cHpncSpXm2EjUxx81hb\n\tLbkw==",
        "X-Gm-Message-State": "AHYfb5i4Ul6dqD/n06+rMe6VaasSi5fo+dm2PJGexRGlItYGgR1zrRmF\n\tTo8t4hLEvHNcHdUi97NJiGC3gRy/T3d7hM3GqFpKti+llqF5AxeLmp4TCWrMdzAchsDi6zUhwcz\n\tIxXpf9dHaP0ncP8Ty3WoGLR1GujK4x663",
        "X-Received": [
            "by 10.98.160.12 with SMTP id r12mr2698288pfe.124.1503976438414; \n\tMon, 28 Aug 2017 20:13:58 -0700 (PDT)",
            "by 10.98.160.12 with SMTP id r12mr2698282pfe.124.1503976438193; \n\tMon, 28 Aug 2017 20:13:58 -0700 (PDT)"
        ],
        "From": "Po-Hsu Lin <po-hsu.lin@canonical.com>",
        "To": "kernel-team@lists.ubuntu.com",
        "Subject": "[kteam-tools][PATCHv2] stable: remove hwe flag for sru",
        "Date": "Tue, 29 Aug 2017 11:13:35 +0800",
        "Message-Id": "<20170829031335.1577-1-po-hsu.lin@canonical.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "X-BeenThere": "kernel-team@lists.ubuntu.com",
        "X-Mailman-Version": "2.1.14",
        "Precedence": "list",
        "List-Id": "Kernel team discussions <kernel-team.lists.ubuntu.com>",
        "List-Unsubscribe": "<https://lists.ubuntu.com/mailman/options/kernel-team>,\n\t<mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>",
        "List-Archive": "<https://lists.ubuntu.com/archives/kernel-team>",
        "List-Post": "<mailto:kernel-team@lists.ubuntu.com>",
        "List-Help": "<mailto:kernel-team-request@lists.ubuntu.com?subject=help>",
        "List-Subscribe": "<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n\t<mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "kernel-team-bounces@lists.ubuntu.com",
        "Sender": "kernel-team-bounces@lists.ubuntu.com"
    },
    "content": "Remove the hwe flag in the test request since we are dealing with this by\nparsing the kernel version and the package name.\n\nSigned-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>\n---\n stable/msgq-publish-sample | 1 -\n stable/wfl/bug.py          | 6 ------\n stable/wfl/package.py      | 6 ------\n 3 files changed, 13 deletions(-)",
    "diff": "diff --git a/stable/msgq-publish-sample b/stable/msgq-publish-sample\nindex b3badabc..3f460500 100755\n--- a/stable/msgq-publish-sample\n+++ b/stable/msgq-publish-sample\n@@ -44,7 +44,6 @@ examples:\n             \"date\"           : \"2015-01-26 20:09:48.928018\",\n             \"series-name\"    : \"trusty\",\n             \"series-version\" : \"10.04\",\n-            \"hwe\"            : False,\n             \"bug id\"         : 1410384,\n             \"url\"            : \"https://bugs.launchpad.net/bugs/1410384\",\n             \"version\"        : \"3.13.0-45.74\",\ndiff --git a/stable/wfl/bug.py b/stable/wfl/bug.py\nindex 73fe3fb1..a7fb7954 100644\n--- a/stable/wfl/bug.py\n+++ b/stable/wfl/bug.py\n@@ -171,11 +171,6 @@ class WorkflowBug():\n             else:\n                 cinfo('                 derivative: no', 'blue')\n \n-            if s.__package.hwe:\n-                cinfo('                        hwe: yes', 'blue')\n-                cinfo('                 hwe series: %s' % (s.__package.test_series), 'blue')\n-            else:\n-                cinfo('                        hwe: no', 'blue')\n             cinfo('               routing_mode: %s' % (s.__package.routing_mode), 'blue')\n             cinfo('              test_flavours: %s' % (s.test_flavours()), 'blue')\n             cinfo('')\n@@ -812,7 +807,6 @@ class WorkflowBug():\n             \"date\"           : str(datetime.utcnow()),\n             \"series-name\"    : s.__package.test_series,\n             \"series-version\" : s.__package.test_series_version,\n-            \"hwe\"            : s.__package.hwe,\n             \"kernel-version\" : s.pkg_version,\n             \"package\"        : s.pkg_name,\n             \"flavour\"        : flavour,\ndiff --git a/stable/wfl/package.py b/stable/wfl/package.py\nindex 441de240..89b9dc60 100644\n--- a/stable/wfl/package.py\n+++ b/stable/wfl/package.py\n@@ -118,7 +118,6 @@ class Package():\n \n         #info('     Extract package info\\n')\n         setattr(s, 'valid', False)\n-        setattr(s, 'hwe', False)\n         m = ver_rc.search(txt)\n         if m is not None:\n             matched = True\n@@ -132,16 +131,11 @@ class Package():\n             setattr(s, 'kernel', m.group(2))\n             setattr(s, 'abi', m.group(4))\n \n-            if m.group(6):\n-                s.hwe = True\n-\n             # Work out what series this package is published in...\n             series_tag_entry = None\n             for tag in lpbug.tags:\n                 if tag in s.ubuntu.index_by_series_name:\n                     series_tag_entry = s.ubuntu.index_by_series_name[tag]\n-            # XXX: Bodge: we pass the source series to the test\n-            # infrastructure and a hwe flag to tell it that is wrong ?\n             test_tag_entry = series_tag_entry\n             if ('backport-packages' in series_tag_entry and\n                 s.name in series_tag_entry['backport-packages']):\n",
    "prefixes": [
        "kteam-tools",
        "PATCHv2"
    ]
}