From patchwork Tue Oct 30 11:19:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Finucane X-Patchwork-Id: 990732 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42kpvn3cbVz9s7h for ; Tue, 30 Oct 2018 22:21:57 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="lSRapD9M"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42kpvn0HxQzF0yr for ; Tue, 30 Oct 2018 22:21:57 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="lSRapD9M"; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=that.guru (client-ip=185.234.75.2; helo=relay-direct2.mxroute.com; envelope-from=stephen@that.guru; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=that.guru Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="lSRapD9M"; dkim-atps=neutral Received: from relay-direct2.mxroute.com (relay-direct2.mxroute.com [185.234.75.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42kpsW2nHKzDrPq for ; Tue, 30 Oct 2018 22:19:59 +1100 (AEDT) Received: from filter001.mxrelay.co (filter001.mxrelay.co [64.52.23.203]) by relay-direct2.mxroute.com (Postfix) with ESMTP id 696843F0FC for ; Tue, 30 Oct 2018 11:19:26 +0000 (UTC) Received: from one.mxroute.com (one.mxroute.com [195.201.59.211]) by filter001.mxrelay.co (Postfix) with ESMTPS id 7522D100065 for ; Tue, 30 Oct 2018 11:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=A/Tr6wH4tEEUKvTigwpuxbH0L9JDHSO4ISGi95w1vHg=; b=lSRapD9Meo3AOFXxZNL/gA6LRS 5e3zMWS/0VVTVCkWJpKE8zxykLhsJrKPaAdaaf5SAJS0rnZWzQQ56QH9cnrOKZWhtmDuaXPyjlN7a 4Wie3R+4C1FooFv8qzEsDF4r9uI6s7vlGb/tw06+W15aCQr+M6xATwJuqTfyMGzEqkgJFufdN/ZzG Q2YEBusFEfuQH8G8oKSpnztWX45dj6Tlw9ReSK3ypsE9jQiNxMkcrfV2dvnSpP15en9fbU5teoqoI UjqqNG0NRH3YjS4XkFlMum9Mem5JjZypMxZ0CEP596vgxQCzscW/CF+5D16/2IYXT91NqUJZyxvOt LZaiTP9g==; From: Stephen Finucane To: patchwork@lists.ozlabs.org Subject: [PATCH 02/17] REST: Show 'web_url' in embedded series responses Date: Tue, 30 Oct 2018 11:19:01 +0000 Message-Id: <20181030111916.7342-3-stephen@that.guru> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181030111916.7342-1-stephen@that.guru> References: <20181030111916.7342-1-stephen@that.guru> X-AuthUser: stephen@that.guru X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Signed-off-by: Stephen Finucane Closes: #224 Fixes: 9c179bf4c ("REST: Add 'web_url' link to API responses") --- patchwork/api/embedded.py | 3 ++- releasenotes/notes/issue-224-8f1c4207aa273ac6.yaml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/issue-224-8f1c4207aa273ac6.yaml diff --git a/patchwork/api/embedded.py b/patchwork/api/embedded.py index 83df0e50..72ffc68a 100644 --- a/patchwork/api/embedded.py +++ b/patchwork/api/embedded.py @@ -187,7 +187,8 @@ class SeriesSerializer(SerializedRelatedField): class Meta: model = models.Series - fields = ('id', 'url', 'date', 'name', 'version', 'mbox') + fields = ('id', 'url', 'web_url', 'date', 'name', 'version', + 'mbox') read_only_fields = fields versioned_field = { '1.1': ('web_url', ), diff --git a/releasenotes/notes/issue-224-8f1c4207aa273ac6.yaml b/releasenotes/notes/issue-224-8f1c4207aa273ac6.yaml new file mode 100644 index 00000000..f6e9ccaa --- /dev/null +++ b/releasenotes/notes/issue-224-8f1c4207aa273ac6.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + API resources with embedded series were not showing the ``web_url`` value + for these series. This is now shown.