From nobody Thu Apr 18 07:32:40 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1543393976146734.4345083290389; Wed, 28 Nov 2018 00:32:56 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CCE5983F3E; Wed, 28 Nov 2018 08:32:54 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BA91C1019624; Wed, 28 Nov 2018 08:32:54 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AD7D818005B1; Wed, 28 Nov 2018 08:32:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wAS8WrV8003456 for ; Wed, 28 Nov 2018 03:32:53 -0500 Received: by smtp.corp.redhat.com (Postfix) id ABD985D736; Wed, 28 Nov 2018 08:32:53 +0000 (UTC) Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A4BB85D6AA for ; Wed, 28 Nov 2018 08:32:50 +0000 (UTC) Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BB8122D7F3 for ; Wed, 28 Nov 2018 08:32:49 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id n133so1616721wmd.4 for ; Wed, 28 Nov 2018 00:32:49 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6468:f312:60a1:384e:4c17:72ad]) by smtp.gmail.com with ESMTPSA id x186sm1871841wmg.41.2018.11.28.00.32.47 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 00:32:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=j48ePMuL7x0rnpD7ySHdZsfVQxJj+dGb9dS6XwvjqBo=; b=Bbp/uzK9BtNqSyiZtyokhseXaKB6+xqJB1rcOKEesAqpZhCkjjwPhzwaaLEjaaoeGK 8DUXdp+A2xItK6J1jTTHvPU/en15z+ldxsjc1bQfK72b6vfT3KuCbONA4rcXnCMdhQu+ 4bs6S4s4kVRaPWf3FLJWLP3DOFJdimcYrwShWynQXia4ooWQB1YonXYlLO+AQKm37vYi QeWBSdYrrUqECyHz7HmrZqGYCl6rzdC6koEa9V95KEXz6ibwRnxtTHo2DklXQlMxvSoS LJNOf2+akBHltfcopv6EffSiuAXJoy4GSTSpzS+428UUqNUmYyA9sD1o24K47yFkhiAu Rl/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=j48ePMuL7x0rnpD7ySHdZsfVQxJj+dGb9dS6XwvjqBo=; b=mOulntP9MLAMUO5RQu0RN7LcdIh1Ztou8dIxNvENdxBzvGEvaU5rQV65uZydjwpsXU BiMKkLEn+4P5a8MsaV9wirr+pzgOasu9C0HaCXppzyg5bApU9GYKT3ixSRVnWpn99pAu PS27Y4MztSZLdqjfc5d/YqMsGx4a9CuMvRrj1piWXRoTgel/uRUELvwrR2W7Sqr8zibf o1Vmajy9v7ZpJ4Jh7dWdlZZZONfubCJVElF7TzEgrpCVizxyMq3uJbGT3sh/YGBnpKBd Dc7TpGaWVJz97r0ibGYLCwqI/Ruw2mPnSlK68z6bQw9cWbMgiwacRFv8zCwRamzBh7Jv YHWg== X-Gm-Message-State: AA+aEWbbtnYzWF6jupvqZ8YMWRBYgY4E5t7XfaPLKG8V7tUHRbOVbn7W sRO0cng/Thue7hTMgNOQfyDZ40z0 X-Google-Smtp-Source: AFSGD/UUpf9Oqax7zjwUfSydWvLtrD51UpdqHPHFltzyWCZMZItrTS+IyALGlab2Wu4hbI8cOz58UA== X-Received: by 2002:a1c:4e08:: with SMTP id g8mr1771131wmh.46.1543393968127; Wed, 28 Nov 2018 00:32:48 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Wed, 28 Nov 2018 09:32:44 +0100 Message-Id: <20181128083244.9383-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 28 Nov 2018 08:32:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 28 Nov 2018 08:32:49 +0000 (UTC) for IP:'209.85.128.66' DOMAIN:'mail-wm1-f66.google.com' HELO:'mail-wm1-f66.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.24 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.128.66 mail-wm1-f66.google.com 209.85.128.66 mail-wm1-f66.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] rest: relieve some constraints on results X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 28 Nov 2018 08:32:54 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Logs are optional, and the git base should not be present if pending or running. Signed-off-by: Paolo Bonzini Reviewed-by: Caio Carrara --- api/rest.py | 2 +- mods/git.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/rest.py b/api/rest.py index 817f30f..573cbf1 100644 --- a/api/rest.py +++ b/api/rest.py @@ -565,7 +565,7 @@ class ResultSerializerFull(ResultSerializer): read_only_fields =3D ResultSerializer.Meta.read_only_fields =20 # The database field is log_xz, so this is needed here - log =3D CharField(required=3DFalse) + log =3D CharField(required=3DFalse, allow_null=3DTrue, allow_blank=3DT= rue) =20 =20 class ResultsViewSet(mixins.ListModelMixin, mixins.RetrieveModelMixin, diff --git a/mods/git.py b/mods/git.py index a37de57..2c17fc1 100644 --- a/mods/git.py +++ b/mods/git.py @@ -45,7 +45,8 @@ class GitLogViewer(LogView): return obj.git_result =20 class ResultDataSerializer(serializers.Serializer): - base =3D CharField() + # TODO: should be present iff the result is success or failure + base =3D CharField(required=3DFalse) =20 # TODO: should be present iff the result is a success repo =3D CharField(required=3DFalse) --=20 2.19.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel