Closed amoeba closed 8 years ago
@amoeba clearAccessPolicy()
sounds great to me and seems the clearest; setAccessPolicy()
seems a bit redundant as addAccessRule()
can add multiple rules; and addAccessRule()
is maybe a little confusing as you are really clearing the access policy.
Sounds good to me. Do you have time to implement? I could do it if not.
@amoeba If you have the cycles, please go ahead. I'll look out for a PR :)
Sounds good. I'll try to get to it tonight.
This kinda relates to #31
I ran into the use case today where I wanted to clear out the already-set accessPolicy rules in an existing sysmeta. So I ran:
and then I could run:
to set my rules.
Is this the only way to do this right now? If so, I don't think this is the most user-friendly interface. It would be great if I could clear all of the rules and start from scratch without having to use the
slot()
function with adata.frame
(which I'm assuming might confuse some users).There are probably a few good ways to approach this change, neither one being mutually exclusive:
clearAccessPolicy()
orclearAccessRules
function which clears all of the rulessetAccessPolicy()
function that takes adata.frame
with all of the rules you want and overwrites any existing onesaddAccessRule
with an extra parameterclear
orreplace
(default: FALSE) which, if TRUE, clears the set of access rules before adding the ruleWhat do you think @gothub ?