Skip to content

Commit

Permalink
rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Nov 27, 2024
1 parent 8a1521d commit 1c7a0bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arches/app/datatypes/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,6 @@ def build_resource_instance_object(hit):

match value_type:
case "str": # aka legacyid
# query the graphid associated with each resourceinstance.legacyid
boolquery.must(
Terms(field="legacyid.keyword", terms=converted_value)
) # exact match on keyword
Expand All @@ -2315,14 +2314,13 @@ def build_resource_instance_object(hit):
transformed_value.append(build_resource_instance_object(hit))

case "uuid":
# query the graphid associated with each resourceinstance.resourceinstanceid
results = query.search(
index=RESOURCES_INDEX, id=[str(val) for val in converted_value]
)
for hit in results["docs"]:
transformed_value.append(build_resource_instance_object(hit))

case "dict": # assume data correctly formatted
case "dict": # assume data correctly parsed via ast.literal
for val in converted_value:
try:
uuid.UUID(val["resourceId"])
Expand Down

0 comments on commit 1c7a0bc

Please sign in to comment.