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

Usage of @Groups #382

Closed
cincas opened this issue Apr 28, 2014 · 2 comments
Closed

Usage of @Groups #382

cincas opened this issue Apr 28, 2014 · 2 comments

Comments

@cincas
Copy link

cincas commented Apr 28, 2014

Hi everyone,

I think the usage of current @groups annotation is a little bit limited.

Like say we have a main entity A with multiple sub entities B,C,D

In order to use @groups, we have to put annotation across all entities, which is hard to maintain sometime.

I was hoping to have a feature like multi-level group policy.
such as
@groups({"foo"}) A
@groups({"foo.taz"}) B
@groups({"foo.bar", "foo.taz"}) C

Then if group is set to "foo", A, B and C will be shown.
if group is set to "foo.bar", both A and C will be shown, but not B

Will this be possible to make it?

Thanks.

@fullmoonissue
Copy link

+1

Hello everyone,

I have exactly the same context.

group_public_api
group_A | group_B | group_C | group_D
group_intern_api
group_E | group_F

In order to write : @groups({"group_public_api"}) => To apply to the four subgroups.

Nice day.

Best Regards,

@goetas
Copy link
Collaborator

goetas commented Apr 10, 2017

I apologize for the late feedback, this probably is not your problem anymore, but for those who can still find similar issues, there are many different ways to achieve exclusion of some properties, each approach has advantages and drawbacks. Currently you can use:

Just use the one that works better for you, there is no reason to do this:

square-peg-round-hole1

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

3 participants