dmwm / PHEDEX

CMS data-placement suite
8 stars 18 forks source link

Blockreplicas API: create_since=0 argument doesn't have the expected behaviour #987

Open nikmagini opened 9 years ago

nikmagini commented 9 years ago

Hello,

the expected behaviour for 'create_since=0' as argument in the blockreplicas API is to get all results since timestamp 0, i.e. from the beginning of epoch. However, the API returns only the default results, which are 'since 1 day ago'. See e.g.:

https://cmsweb.cern.ch/phedex/datasvc/json/prod/blockReplicas?show_dataset=y&group=AnalysisOps&create_since=0

It seems that 'create_since=0' is improperly interpreted as 'no argument passed' instead of zero.

Passing the value as float 'create_since=0.0' has the expected behaviour instead, the value is interpreted as zero (warning, very large result):

https://cmsweb.cern.ch/phedex/datasvc/json/prod/blockReplicas?show_dataset=y&group=AnalysisOps&create_since=0.0

Cheers N