-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat(public-files): check authz/acl field, then hit arborist as anon … #653
Conversation
…to see if file is public
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
Pull Request Test Coverage Report for Build 7147
💛 - Coveralls |
fence/blueprints/data/indexd.py
Outdated
@@ -365,7 +367,7 @@ def metadata(self): | |||
|
|||
@cached_property | |||
def public(self): | |||
return check_public(self.set_acls) | |||
return check_public(self.authz) |
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.
a couple thoughts:
check_public
only used here so this would be a good opportunity to inline- should keep the ACLs check here too I think—we can use
authz
if exists or default to acl
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.
oh, this is perhaps misleading, the cached property isn't just authz, it'll get acl field if authz doesn't exist. I will inline check_public tho
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes