DataONEorg / metrics-service

An efficient database and REST API for delivering aggregated data set metrics to clients.
Apache License 2.0
2 stars 1 forks source link

Issues with citation queries date filtering #94

Open rushirajnenuji opened 1 year ago

rushirajnenuji commented 1 year ago

Jeanette brought up this issue on Slack for a Citation query to the metrics service that returned same citations results. This seems to be a bug with date filtering the citation results.

Queries:

https://logproc-stage-ucsb-1.test.dataone.org/metrics?q={%22metricsPage%22:{%22total%22:0,%22start%22:0,%22count%22:0},%22metrics%22:[%22citations%22],%22filterBy%22:[{%22filterType%22:%22repository%22,%22values%22:[%22urn:node:ARCTIC%22],%22interpretAs%22:%22list%22},{%22filterType%22:%22month%22,%22values%22:[%2211/01/2022%22,%2201/31/2023%22],%22interpretAs%22:%22range%22}],%22groupBy%22:[%22month%22]}
https://logproc-stage-ucsb-1.test.dataone.org/metrics?q={%22metricsPage%22:{%22total%22:0,%22start%22:0,%22count%22:0},%22metrics%22:[%22citations%22],%22filterBy%22:[{%22filterType%22:%22repository%22,%22values%22:[%22urn:node:ARCTIC%22],%22interpretAs%22:%22list%22},{%22filterType%22:%22month%22,%22values%22:[%2208/01/2022%22,%2210/31/2022%22],%22interpretAs%22:%22range%22}],%22groupBy%22:[%22month%22]}