From 73053a68190dbf34345eb069b1e6445ef403af80 Mon Sep 17 00:00:00 2001
From: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Fri, 7 Feb 2020 16:08:19 +0100
Subject: [PATCH] Make 'visible' the default status for present Contents.

---
 swh/model/model.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/swh/model/model.py b/swh/model/model.py
index 215afdb2..2a2eda27 100644
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -396,6 +396,7 @@ class Content(BaseContent):
 
     status = attr.ib(
         type=str,
+        default='visible',
         validator=attr.validators.in_(['visible', 'hidden']))
     data = attr.ib(type=Optional[bytes],
                    default=None)
-- 
GitLab