Skip to content
Snippets Groups Projects
Commit 1d8ca540 authored by Jenkins for Software Heritage's avatar Jenkins for Software Heritage
Browse files

Update upstream source from tag 'debian/upstream/0.11.0'

Update to upstream version '0.11.0'
with Debian dir ad60fcf7e9e7237e4c2e6dd0680004d3379e7ab9
parents 88e5ec94 3f1b16b1
No related branches found
No related tags found
No related merge requests found
Metadata-Version: 2.1
Name: swh.model
Version: 0.10.0
Version: 0.11.0
Summary: Software Heritage data model
Home-page: https://forge.softwareheritage.org/diffusion/DMOD/
Author: Software Heritage developers
......
Metadata-Version: 2.1
Name: swh.model
Version: 0.10.0
Version: 0.11.0
Summary: Software Heritage data model
Home-page: https://forge.softwareheritage.org/diffusion/DMOD/
Author: Software Heritage developers
......
......@@ -175,7 +175,9 @@ def origin_visit_statuses_d():
visit=integers(1, 1000),
origin=urls(),
type=optional(sampled_from(["git", "svn", "pypi", "debian"])),
status=sampled_from(["created", "ongoing", "full", "partial"]),
status=sampled_from(
["created", "ongoing", "full", "partial", "not_found", "failed"]
),
date=aware_datetimes(),
snapshot=optional(sha1_git()),
metadata=optional(metadata_dicts()),
......
......@@ -320,7 +320,9 @@ class OriginVisitStatus(BaseModel):
date = attr.ib(type=datetime.datetime, validator=type_validator())
status = attr.ib(
type=str,
validator=attr.validators.in_(["created", "ongoing", "full", "partial"]),
validator=attr.validators.in_(
["created", "ongoing", "full", "partial", "not_found", "failed"]
),
)
snapshot = attr.ib(type=Optional[Sha1Git], validator=type_validator())
# Type is optional be to able to use it before adding it to the database model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment