feat: expose unified exchange activity APIs and exports
This commit is contained in:
@@ -61,6 +61,7 @@ def _stage(
|
||||
row.payload["provenance"] = {
|
||||
**row.payload.get("provenance", {}),
|
||||
"artifact_id": str(raw.uid),
|
||||
"fetched_at": raw.created_at.isoformat().replace("+00:00", "Z"),
|
||||
"source_published_at": raw.source_published_at.isoformat()
|
||||
if raw.source_published_at
|
||||
else None,
|
||||
@@ -107,6 +108,7 @@ def _save_manifest(aggregate, raws, counters):
|
||||
{
|
||||
"exchange": raw.metadata["dataset"],
|
||||
"artifact_id": str(raw.uid),
|
||||
"fetched_at": raw.created_at.isoformat().replace("+00:00", "Z"),
|
||||
"checksum_sha256": raw.sha256,
|
||||
"size_bytes": raw.size_bytes,
|
||||
"published_at": raw.source_published_at.isoformat()
|
||||
|
||||
Reference in New Issue
Block a user