From b52b8fc7cfb009e66af4b74e90b6d3f8881bc845 Mon Sep 17 00:00:00 2001 From: Ben Galewsky Date: Fri, 5 Jan 2024 11:06:10 -0600 Subject: [PATCH] Include resource_type and ingest_date in search record --- aws/submit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aws/submit.py b/aws/submit.py index aac8f00a..95e2690e 100644 --- a/aws/submit.py +++ b/aws/submit.py @@ -241,6 +241,8 @@ def lambda_handler(event, context): metadata["mdf"]["source_name"] = source_name metadata["mdf"]["version"] = version metadata["mdf"]["domains"] = organization.domains + metadata["mdf"]["resource_type"] = "dataset" # Force the resource type to make this findable in the portal + metadata["mdf"]["ingest_date"] = datetime.utcnow().isoformat("T") + "Z" # Fetch custom block descriptors, cast values to str, turn _description => _desc # @BenB edited