Closed dpgiakatos closed 7 months ago
It seems like our add_links
and batch_add_links
functions have slightly different semantics for datetimes, probably caused by the dict2str
function used in add_link
:
https://github.com/InternetHealthReport/internet-yellow-pages/blob/c9ce0ed5dcab4356514f4f340f7d9f2ea26c8a24/iyp/__init__.py#L69-L70
Seems like add_links
creates Date
objects in neo4j, which is probably what we want, so I'll try to update the batch function accordingly.
Describe the bug I have noticed that the
reference_time
does not have the same type. In some edges, the reference time is aString
, and in some others, it is aDate
object.To Reproduce Execute the following Cypher query:
Expected behavior We expected to receive the following results:
However, we received the following:
We can observe that we have two instances of the same response for APNIC and IHR, but in the date field, we notice that the format differs. One is a
String
, and the other is aDate
object. Therefore, theDISTINCT
operation cannot work in this case.