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 a 'detail=granular' query option to GET ACL endpoint #917

Merged
merged 3 commits into from
Sep 6, 2016

Conversation

marcparadise
Copy link
Member

@marcparadise marcparadise commented Aug 26, 2016

When specified, this option will split out users and clients within
the body response, and will force 'actors' to be empty. This body
response is compatible with re-PUTing the body back to the object ACE
endpoint as-is, which will simplify changes to tooling when updating it
to use recently-added new ACL endpoint functionality.

Pre-merge:

@marcparadise
Copy link
Member Author

Note chef-zero failures are expected for a bit longer, until updated for the API change this afternoon.

@@ -75,7 +75,7 @@ matrix:
before_script: cd oc-chef-pedant
script: bundle exec rake chef_zero_spec
env:
- "GEMFILE_MOD=\"gem 'rake'; gem 'chef-zero', github: 'chef/chef-zero'\""
- "GEMFILE_MOD=\"gem 'rake'; gem 'chef-zero', github: 'chef/chef-zero', branch: 'mp/SPOOL-340' \""
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we wait to merge until this PR gets merged in?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep

@marcparadise marcparadise force-pushed the SPOOL-340/granular-object-acl-get branch from 44e4101 to 651d800 Compare August 30, 2016 20:43
@marcparadise marcparadise changed the base branch from SPOOL-197-clients-users-for-acl to master August 30, 2016 20:46
@tylercloke
Copy link
Contributor

One potential refactor, but other than that 👍 We've needed this forever lol.

@@ -204,14 +205,16 @@ fetch_cookbook_id(DbContext, Name, OrgId) ->
AuthzId
end.

-spec fetch(chef_type(), id()) -> list() | {error, term()}.
Copy link
Contributor

@markan markan Aug 31, 2016

Choose a reason for hiding this comment

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

Shouldn't this spec be retained?

@markan
Copy link
Contributor

markan commented Aug 31, 2016

👍

Marc Paradise added 2 commits September 2, 2016 13:51
When specified, this option will split out users and clients within
the body response, and will force 'actors' to be empty.  This body
response is compatible with re-PUTing the body back to the object ACE
endpoint as-is, which will simplify changes to tooling when updating it
to use recently-added new ACL endpoint functionality.

Signed-off-by: Marc Paradise <[email protected]>
* 400 responses in object ACL updates will now include the specific
missing or incorrect entities where appropriate.

* The GET
The GET API response for object ACL has not been changed by default,
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate line? Looks weird...

@tduffield
Copy link
Contributor

Other than the odd line in the release notes file, 👍

@marcparadise marcparadise force-pushed the SPOOL-340/granular-object-acl-get branch from 1c7c236 to 3153f27 Compare September 6, 2016 16:04
@marcparadise marcparadise merged commit dea545b into master Sep 6, 2016
@marcparadise marcparadise deleted the SPOOL-340/granular-object-acl-get branch September 6, 2016 16:07
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.

5 participants