-
Notifications
You must be signed in to change notification settings - Fork 235
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
Conversation
* DELETE /buckets/Bucket/props * no support for vsn 1 api
%% | ||
%% DELETE /buckets/Bucket/props | ||
%% Reset bucket properties back to the default settings | ||
%% not supporteed by the OLD API |
There was a problem hiding this comment.
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()} |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
merging (+1 here for reference since gh wasn't able to make the association) |
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