Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7343149
D4871.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
D4871.diff
View Options
diff --git a/swh/storage/backfill.py b/swh/storage/backfill.py
--- a/swh/storage/backfill.py
+++ b/swh/storage/backfill.py
@@ -143,9 +143,10 @@
"origin": ["url"],
"origin_visit": ["visit", "type", ("origin.url", "origin"), "date",],
"origin_visit_status": [
- "visit",
+ ("origin_visit_status.visit", "visit"),
("origin.url", "origin"),
- "date",
+ ("origin_visit_status.date", "date"),
+ ("origin_visit.type", "type"),
"snapshot",
"status",
"metadata",
@@ -160,7 +161,13 @@
"person c on revision.committer=c.id",
],
"origin_visit": ["origin on origin_visit.origin=origin.id"],
- "origin_visit_status": ["origin on origin_visit_status.origin=origin.id"],
+ "origin_visit_status": [
+ "origin on origin_visit_status.origin=origin.id",
+ # Joining on origin_visit to be able to backfill before the
+ # origin_visit_status.type is populated by a migration script
+ # TODO remove this when origin_visit_status.type is fully populated
+ "origin_visit using (origin, visit)",
+ ],
"raw_extrinsic_metadata": [
"metadata_authority on "
"raw_extrinsic_metadata.authority_id=metadata_authority.id",
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 17 2025, 7:38 PM (7 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217221
Attached To
D4871: Backfiller: Add type to the origin_visit_status topic
Event Timeline
Log In to Comment