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

Add permissions to crdt requests. #669

Merged
merged 1 commit into from
Dec 10, 2013
Merged

Conversation

seancribbs
Copy link
Contributor

@@ -214,3 +215,8 @@ get_context(Ctx, true) ->
mods_match(BucketMod, OpType) ->
OpMod = riak_kv_crdt:to_mod(OpType),
OpMod == BucketMod.

permission_for(#dtupdatereq{bucket=B, type=T}) ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Will type always be a binary here? Never undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

type is required bytes in the protobuffs message.

@russelldb
Copy link
Member

Looks good to me. And wow. Is that it? Bravo @Vagabond for making it so neat.

@Vagabond
Copy link
Contributor

Yes, this is all you need. +1 from me, although a test would be nice (maybe added to the pb_security test in the security riak_test PR: basho/riak_test#385 )

@seancribbs
Copy link
Contributor Author

@Vagabond I'll add to basho/riak_test#385.

@russelldb We'll have to add them to HTTP when we get around to solidifying that API.

@seancribbs
Copy link
Contributor Author

I've rebased this so it applies cleanly. Still need a test in pb_security, I suppose.

@seancribbs
Copy link
Contributor Author

^^ @lenary pb_security and http_security need additions if you have time. If not, I'll add them next week.

@russelldb
Copy link
Member

test passes now, are you going to get this merged too?

@seancribbs
Copy link
Contributor Author

yup yup

seancribbs added a commit that referenced this pull request Dec 10, 2013
Add permissions to crdt requests.
@seancribbs seancribbs merged commit 167e593 into develop Dec 10, 2013
@seancribbs seancribbs deleted the bugfix/crdt-security branch December 10, 2013 15:20
@rzezeski rzezeski modified the milestones: 2.0-beta, 2.0 Mar 25, 2014
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.

4 participants