Skip to content

[Feature] Apply exclusión policity by groups #401

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

Closed
rkmax opened this issue Jul 12, 2014 · 1 comment
Closed

[Feature] Apply exclusión policity by groups #401

rkmax opened this issue Jul 12, 2014 · 1 comment

Comments

@rkmax
Copy link

rkmax commented Jul 12, 2014

It would be great if you could define a policy exclusion for group.

Example

# resource/serializer/Document.Foo.yml
MyBundle\Document\Foo:
  exclusion_policy: ALL
  exclusion_policy_groups:
      foo: ALL
      bar: NONE
  properties:
       property_a:
           expose: true
           policy_group: foo           
       property_b:
           exclude: false
           policy_group: bar

Example 2

# resource/serializer/Document.Foo.yml
MyBundle\Document\Foo:
  foo: # Group name
    exclusion_policy: ALL
    properties:
      property_a:
        expose: true
  bar: # Other group name          
    exclusion_policy: NONE
    properties:
      property_b:
        exclude: true
@goetas
Copy link
Collaborator

goetas commented Apr 3, 2017

closing,
sorry for the incredibly long feedback loop. the feature you asked does not exists yet and conflicts with the current metadata structure.

if the suggestion is still valid, please motivate and I will re-open the ticket

@goetas goetas closed this as completed Apr 3, 2017
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

No branches or pull requests

2 participants