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

reset bucket props via http #422

Merged
merged 3 commits into from
Nov 13, 2012
Merged

Conversation

jrwest
Copy link
Contributor

@jrwest jrwest commented Nov 2, 2012

This PR exposes the functionality in basho/riak_core#248 over the version 2 HTTP API.

Depends on: basho/riak_core#248
Original Implementation: #357

%%
%% DELETE /buckets/Bucket/props
%% Reset bucket properties back to the default settings
%% not supporteed by the OLD API
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

@@ -208,6 +217,12 @@ accept_bucket_body(RD, Ctx=#ctx{bucket=B, client=C, bucketprops=Props}) ->
{{halt, 400}, RD2, Ctx}
end.

%% @spec delete_resource(reqdata(), context()) -> {boolean, reqdata(), context()}
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI I realize it's out-of-scope for this PR but in all other places we tend to use the newer -spec rather than the %% @spec form. The origins of this file are old enough to have used the comment form, so let's consider that a janitorial task for later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea I noticed @rzezeski made a similar comment on the original implementation. Figured it best to not change it over as part of this PR like you said.

@jrwest
Copy link
Contributor Author

jrwest commented Nov 13, 2012

merging (+1 here for reference since gh wasn't able to make the association)

@jrwest jrwest merged commit c789e39 into master Nov 13, 2012
@seancribbs seancribbs deleted the gh-riak-core-197-reset-bucket-props branch April 1, 2015 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants