-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
keep bundle annotations and prevent simple cycles #521
Conversation
I don't see any downsides and this makes it easier to manipulate custom annotations, introspectors, serializers, and other parts that interact with annotated objects. The cycle detection is a bonus.
Was this related to problems with multiple annotation bundles? |
In the sense that the "endless recursion" case it solves requires multiple annotation bundles, yes. The primary goal is to be able to use properties or implicit information from the annotation bundle itself. |
Please note the 'build failures' are unrelated issues present in master. |
@tea-dragon Right, build failure is due to an unsolved problem, I need to move it under 'failing' (or fix if possible of course). I hadn't thought about possiblity of cycles, as annotation datatypes can not have recursive notation. But I still don't understand the "be able to use properties or implicit information from the annotation bundle itself." part. |
There is an example in the added tests. The As another example, imagine I have a custom annotation |
@tea-dragon Ok thanks I will look at the test. But on second part: which modification hooks are you referring to? Annotations from bundles should be visible from all access points, via |
Oh, I see. So, that the annotation "wrapper" itself should not be dropped, but included, not just annotations it contains. Yes, that makes sense. So I finally understand all pertinent points here I think. Thank you for explanation. |
keep bundle annotations and prevent simple cycles
I don't see any downsides and this makes it easier to manipulate
custom annotations, introspectors, serializers, and other parts
that interact with annotated objects. The cycle detection is a
bonus.