You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we are storing a stringified Python literal into Neo4j rather than actual JSON.
Modify _build_properties_map in both schema_neo4j_queries.py and app_neo4j_queries.py to replace
escaped_str = str(value).replace("'", r"\'")
with
escaped_str = json.dumps(value)
Write a new method that replaces hubmap_commons.convert_str_literal to utilize json.loads(...) instead of ast.literal_eval(...) as the data being grabbed out of Neo4j will no longer be Python literals
In any normalize function such as normalize_entity_result_for_response and _normalize_metadata where hubmap_commons.convert_str_literal is called we will want to replace with the new function mentioned above
The text was updated successfully, but these errors were encountered:
Currently we are storing a stringified Python literal into Neo4j rather than actual JSON.
_build_properties_map
in bothschema_neo4j_queries.py
andapp_neo4j_queries.py
to replacewith
Write a new method that replaces
hubmap_commons.convert_str_literal
to utilizejson.loads(...)
instead ofast.literal_eval(...)
as the data being grabbed out of Neo4j will no longer be Python literalsIn any normalize function such as
normalize_entity_result_for_response
and_normalize_metadata
wherehubmap_commons.convert_str_literal
is called we will want to replace with the new function mentioned aboveThe text was updated successfully, but these errors were encountered: