get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 127533,
    "url": "http://patches.dpdk.org/api/patches/127533/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20230526140812.3594754-1-dukaix.yuan@intel.com/",
    "project": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230526140812.3594754-1-dukaix.yuan@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230526140812.3594754-1-dukaix.yuan@intel.com",
    "date": "2023-05-26T14:08:12",
    "name": "[V1] tests/telemetry: Optimize the parameter for function json.load",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "2ef6275964ff7193da00aa6632fa999b8f26d538",
    "submitter": {
        "id": 2823,
        "url": "http://patches.dpdk.org/api/people/2823/?format=api",
        "name": "Yuan, DukaiX",
        "email": "dukaix.yuan@intel.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20230526140812.3594754-1-dukaix.yuan@intel.com/mbox/",
    "series": [
        {
            "id": 28200,
            "url": "http://patches.dpdk.org/api/series/28200/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=28200",
            "date": "2023-05-26T14:08:12",
            "name": "[V1] tests/telemetry: Optimize the parameter for function json.load",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/28200/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/127533/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/127533/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E635B42BA7;\n\tFri, 26 May 2023 08:30:38 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B8AD540DDA;\n\tFri, 26 May 2023 08:30:38 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id 442FE40A89\n for <dts@dpdk.org>; Fri, 26 May 2023 08:30:37 +0200 (CEST)",
            "from fmsmga007.fm.intel.com ([10.253.24.52])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 May 2023 23:30:36 -0700",
            "from unknown (HELO localhost.localdomain) ([10.239.252.44])\n by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 May 2023 23:30:35 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1685082637; x=1716618637;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=udELSMpVDkWjuAiGujX48b3lLLUZZRAkpyL2ZT5evwk=;\n b=Cem7sb/Of6xtj5ABPt025YgDPshIm1ydQNYZilTIJj4E4SrInfqY3w9C\n NZW/sGfDbaXmMfGEoc4/RcOmk8iq0XAzl3kEP2L+fi9eZ2v6HIaTFB+5T\n QHJhSO2iY9OSgzSrMTYPz0LYlMdwyk05uyuSEpdMxe8o/Qsk6ymjzlnQ5\n QS4bwxaPL8XMCBhGlCaheWsKSHh2LpYe9HdXJ2MK3hOqm4Qo0pui3z/7w\n 84xRrX7c5sj1vjwasxyLhNOVKQ30GhtrUhqFvIrsyBRgJqNV16w3OLSw3\n sh6O1wVPHcUSpRFPsFbr82oYtuSNMgDA5/SVIRjNIU0v9D37VXYP6LwLy g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10721\"; a=\"343628549\"",
            "E=Sophos;i=\"6.00,193,1681196400\"; d=\"scan'208\";a=\"343628549\"",
            "E=McAfee;i=\"6600,9927,10721\"; a=\"708285443\"",
            "E=Sophos;i=\"6.00,193,1681196400\"; d=\"scan'208\";a=\"708285443\""
        ],
        "X-ExtLoop1": "1",
        "From": "Dukai Yuan <dukaix.yuan@intel.com>",
        "To": "dts@dpdk.org",
        "Cc": "Dukai Yuan <dukaix.yuan@intel.com>",
        "Subject": "[dts][PATCH V1] tests/telemetry: Optimize the parameter for function\n json.load",
        "Date": "Fri, 26 May 2023 14:08:12 +0000",
        "Message-Id": "<20230526140812.3594754-1-dukaix.yuan@intel.com>",
        "X-Mailer": "git-send-email 2.31.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "In Python 3.10, the json.load() function removed the encoding parameter, \nbecause in Python 3, the json module uses UTF-8 encoding by default to process JSON data. \nAs such, the encoding argument is no longer required, and has been removed in Python 3.10. \nIf you need to specify other encoding methods, \nyou can use the encoding parameter in the open() function to specify.\nPlease refer to the Python official documentation for more details. \nhttps://docs.python.org/3/library/json.html\n\nSigned-off-by: Dukai Yuan <dukaix.yuan@intel.com>\n---\n tests/TestSuite_telemetry.py | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/tests/TestSuite_telemetry.py b/tests/TestSuite_telemetry.py\nindex ca2d74f5..b7593cb7 100644\n--- a/tests/TestSuite_telemetry.py\n+++ b/tests/TestSuite_telemetry.py\n@@ -270,9 +270,9 @@ class TestTelemetry(TestCase):\n         self.dut.session.copy_file_from(json_file, dst_file)\n         msg = \"failed to get {}\".format(json_name)\n         self.verify(os.path.exists(dst_file), msg)\n-        with open(dst_file, \"r\") as fp:\n+        with open(dst_file, \"r\", encoding=\"utf-8\") as fp:\n             try:\n-                query_data = json.load(fp, encoding=\"utf-8\")\n+                query_data = json.load(fp)\n             except Exception as e:\n                 msg = \"failed to load metrics json data\"\n                 self.verify(False, msg)\n",
    "prefixes": [
        "V1"
    ]
}