-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guestbook - Downloads via API are not counted #3331
Comments
This has been addressed in conjunction with the file landing page redesign of the download processing. Guestbook records will be created when the user invokes a download via the API. |
Closing this. Will leave a note in #2465. |
The non-counting of downloads via API has been noted in #2911. |
The comment by @sekmiller makes it sound like this was addressed in 4.6 so I'll add that milestone to this issue. |
Reopen per Danny and testing shows it still exists. |
When a user uses the Download URL, this type of download is not being counted. Does "downloadtype" include counts from non-dataverse-clicking - like a person entering the DownloadURL in a browser window and "clicking go" from the browser. Because what I see right now, if I copy/paste the download URL, view that URL in a browser window, that "download" is not counted. |
From a quick look, unfortunately this may have been broken for more than a year. It looks like in the fall of 2016 we rearranged how the guestbook records are written by the API. The actual writing was moved from Access.java into DownloadInstanceWriter.java; in order to write the record after the download is complete, not before; to ensure that only the successful downloads are counted.
this means gbr stays null; but then further down we have:
And because of this, since the gbr element in the DownloadInstance is null, the following code in DownloadInstanceWriter.java never gets executed:
(and even if it were executed, because downloadInstance.setCommand(...) was never done, the command could not be executed either...) |
Thanks for the summary @landreev, we'll pick it up when someone has capacity. |
It may be an honest 1 - just a matter of uncommenting/changing a couple of lines of code in the 2 class files. |
Related #3572 |
Fixed and checked in the getting user key info into the default record. Also assigned to the gb selected at dataset level, but doesn't add answers for custom questions or enforce required fields. |
I just pulled the latest (d30aeca) and all seven tests in SwordIT are passing now. |
Fixed the multiple download issue, so all of the items noted by Kevin above have been addressed. |
@sekmiller - I was about to offer to help with this issue, but it looks like you had already fixed it all! Sorry I didn't get to it sooner. |
OK, all reported issues above were fixed, including download bundle. Did find one new issue: clicking on Two Ravens explore increments count by 2 and responses shows 1 TwoRavens and 1 download. |
I have moved the issue back into QA. OK, let's merge it... since all these downloads that are killing the prod. servers are not getting counted! |
OK 2 ravens was patched in production and we agreed to supply that patch in the release notes with instructions on how to apply it. |
originally part of #3324
Update: Downloads via the API are not counted in the GuestBookResponses -- e.g. don't seem to be counted at all.
See this file:
Access.java
and this method--and add a newGuestBookResponse
object to it:The text was updated successfully, but these errors were encountered: