[RTFACT-9561] To have the ability to check using the PAPI the remote downloads stats Created: 14/Mar/16  Updated: 14/Nov/17  Resolved: 29/Jun/16

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Plugins
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: High
Reporter: Alexei Vainshtein Assignee: Dan Feldman
Resolution: Fixed Votes: 5
Labels: None

Issue Links:
Relationship
relates to RTFACT-9987 File Statistics "remoteDownloadCount"... Resolved
relates to RTFACT-9562 AQL does not returns the last remote ... Resolved

 Description   

Currently the artifactsNotDownloadedSince method checks the downloaded only and not the remote downloaded when using the smart remote repository. There should be a method to check the remote download stats also



 Comments   
Comment by Klaus Foerschl [ 12/Apr/16 ]

Please prioritize this request.
We have implemented retention period - cleanup/archiving plugins, relying on those methods. Since the remote downloads are obviously not honored we are cleaning items still in use.

Best regards
Klaus

Comment by Dan Feldman [ 27/Jun/16 ]

2 fixes here:
1. PAPI method artifactsNotDownloadedSince now searches for both remote and local download stats - if an artifact matches any of the criteria (downloaded before or remote downloaded before) it is returned.
2. The search endpoint (which uses the exact same search eventually) has been modified to return both local and remote download statistics, i.e:

curl "http://localhost:8080/artifactory/api/search/usage?notUsedSince=1466936580000&repos=local-that-has-smart-remote-pointing-to-it"
{
  "results" : [ {
    "uri" : "http://localhost:8080/artifactory/api/storage/local-that-has-smart-remote-pointing-to-it/test.artifact",
    "downloadCount" : 0,
    "lastDownloaded" : "1970-01-01T02:00:00.000+02:00",
    "remoteDownloadCount" : 2,
    "remoteLastDownloaded" : "2016-06-26T13:19:31.751+03:00"
  } ]
}

The search api endpoint also searches for both local and remote stats on an artifact - if any of them match the time specified it will be returned with both stats.

Generated at Sun Aug 25 23:19:31 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.