Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123201
D3341.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D3341.diff
View Options
diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py
--- a/swh/model/hypothesis_strategies.py
+++ b/swh/model/hypothesis_strategies.py
@@ -177,7 +177,7 @@
dict,
visit=integers(1, 1000),
origin=urls(),
- status=sampled_from(["ongoing", "full", "partial"]),
+ status=sampled_from(["created", "ongoing", "full", "partial"]),
date=aware_datetimes(),
snapshot=optional(sha1_git()),
metadata=optional(metadata_dicts()),
diff --git a/swh/model/model.py b/swh/model/model.py
--- a/swh/model/model.py
+++ b/swh/model/model.py
@@ -263,7 +263,8 @@
date = attr.ib(type=datetime.datetime, validator=type_validator())
status = attr.ib(
- type=str, validator=attr.validators.in_(["ongoing", "full", "partial"])
+ type=str,
+ validator=attr.validators.in_(["created", "ongoing", "full", "partial"]),
)
snapshot = attr.ib(type=Optional[Sha1Git], validator=type_validator())
metadata = attr.ib(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 18, 2:47 AM (1 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216282
Attached To
D3341: OriginVisitStatus: Allow "created" status
Event Timeline
Log In to Comment