Skip to content
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

Re-enabling counting API downloads/creating guestbookresponses #4434

Merged
merged 10 commits into from
Mar 7, 2018

Conversation

landreev
Copy link
Contributor

New Contributors

Welcome! New contributors should at least glance at CONTRIBUTING.md, especially the section on pull requests where we encourage you to reach out to other developers before you start coding. Also, please note that we measure code coverage and prefer you write unit tests. Pull requests can still be reviewed without tests or completion of the checklist outlined below. Thanks!

Related Issues

Pull Request Checklist

…ponse object)... It appears to be working now. But I'm having some doubts now - was it actually disabled *on purpose*, for whatever reason? - Will make a PR and ask on slack... (#3331)
@pdurbin pdurbin requested a review from sekmiller January 25, 2018 02:36
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably move the old comment.

if (gbrecs == null && df.isReleased()){
//commenting out for 4.6 SEK
// gbr = guestbookResponseService.initDefaultGuestbookResponse(df.getOwner(), df, session);
// commenting out for 4.6 SEK - ??
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mentioned to @sekmiller this morning that if he's ok with it, we should simply remove this "commenting out" comment.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the comment to explain what we're doing here - that is writing a default gb response if the response hasn't been written via the interface

@sekmiller
Copy link
Contributor

Looks good. I will pass to QA. One thing I noticed is that we seem to suppress the download URL on the file landing page if there is a Guestbook present. Probably should still do so in order to try to force the user to go through the interface for downloading. If download is done via the api while a GB is present on the dataset then any custom questions are ignored and required fields are not validated.

@pdurbin
Copy link
Member

pdurbin commented Jan 26, 2018

@sekmiller good point. #2911 (File API download bypasses terms of use) is highly related to all of this. I'd still like to have that comment removed, if you don't mind. This one: // commenting out for 4.6 SEK - ??

@pameyer
Copy link
Contributor

pameyer commented Feb 9, 2018

As of 140c4cc

Failed tests: testCreateDataverseCreateDatasetUploadFileDownloadFileEditTitle(edu.harvard.iq.dataverse.api.SwordIT): expected:<404> but was:<500>

@coveralls
Copy link

coveralls commented Feb 12, 2018

Coverage Status

Coverage decreased (-0.01%) to 12.938% when pulling 413b796 on 3331-download-counts-via-api into 6dd1fcb on develop.

@kcondon kcondon merged commit aa8cb35 into develop Mar 7, 2018
@kcondon kcondon deleted the 3331-download-counts-via-api branch March 7, 2018 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants