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

Patch 142 #145

Merged
merged 8 commits into from Oct 3, 2017
Merged

Patch 142 #145

merged 8 commits into from Oct 3, 2017

Conversation

karthik
Copy link
Owner

@karthik karthik commented Oct 3, 2017

This should fix #142

Fixed drop_exists.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 81.8% when pulling 5b79e4c on patch-142 into 4c3ed24 on master.

Copy link
Contributor

@ClaytonJY ClaytonJY left a comment

Choose a reason for hiding this comment

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

If this is fixing a bug, can you add a test to check for that?

@@ -193,7 +193,7 @@ drop_delete <-
if (verbose) {
res
} else {
message(sprintf('%s was successfully deleted', res$metadata$path_display))
# message(sprintf('%s was successfully deleted', res$metadata$path_display))
Copy link
Contributor

Choose a reason for hiding this comment

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

why keep the old message around?

@@ -21,8 +21,9 @@ test_that("Test that basic file ops work correctly", {
server_row_count <- nrow(y)
# Make sure the downloaded csv has the same number of rows
expect_equal(row_count, server_row_count)
expect_message(drop_delete(file_name), "successfully deleted")
# expect_message(drop_delete(file_name), "successfully deleted")
Copy link
Contributor

Choose a reason for hiding this comment

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

should probably just drop this

DESCRIPTION Outdated
@@ -1,6 +1,6 @@
Package: rdrop2
Title: Programmatic Interface to the 'Dropbox' API
Version: 0.8.1.9999
Version: 0.8.2.9999
Copy link
Contributor

Choose a reason for hiding this comment

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

we don't need to bump the version here, do we? this implies 0.8.2 already exists, but it doesn't. I think the point of .9999 is to say "caution, this stuff is in flux" and avoid some complicated gitflow-like workflow with release branches and all that

Copy link
Owner Author

Choose a reason for hiding this comment

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

Because the PR is a patch? My rationale: If someone files a similar issue but have not updated to this change, we cannot tell if they have this fixed version or the last cran release. We could see the hash if they give us devtools::session_info but not otherwise.

What would you suggest as a workflow for bumping minor? Just with each release?

Copy link
Contributor

Choose a reason for hiding this comment

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

That's a good point. Looking at other packages (dplyr, purrr, httr) looks like they only go from "real" 3-number releases to 3-number-plus-9000 (not 9999) and back again, keeping the .9000 version for some time.

I get wanting to tell where users are when they file issues, but bumping the version everytime we push to master seems like too much; we might quickly be at 8.2.99.9999, and it invites a plethora of merge conflicts since every PR will change that line.

I definitely lean towards leaving the version until we're ready for a CRAN release or switching back to development, but we don't have to do that.

@karthik
Copy link
Owner Author

karthik commented Oct 3, 2017

@ClaytonJY Fair enough re: the version plan.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 81.8% when pulling 4d1bd8c on patch-142 into 4c3ed24 on master.

@karthik
Copy link
Owner Author

karthik commented Oct 3, 2017

@ClaytonJY All comments addressed, this is ready to merge.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 81.8% when pulling 7197a9d on patch-142 into 4c3ed24 on master.

@ClaytonJY
Copy link
Contributor

@karthik the code addresses #142, but the test doesn't, though it's still a good test to add. The issue was about getting an unhelpful HTTP error when trying to make something in a folder that doesn't exist yet; now that they should get FALSE instead, there should be a test which replicates that and has an expect_false assertion.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 81.8% when pulling 8c97e8c on patch-142 into 4c3ed24 on master.

@ClaytonJY ClaytonJY merged commit f511ebf into master Oct 3, 2017
@ClaytonJY ClaytonJY deleted the patch-142 branch October 3, 2017 20:37
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.

drop_exists, drop_create, drop_dir throw the same error
3 participants