You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yabeda.configuredogroup:g1do# configgroup:g2do# configend# more g1 config end
The nested groups are really the same as the first situation where we create two siblings. Both default_tags and looking up metrics would be handled the same in both cases with an additional surprise that the 'more g1 config'j would apply to the global scope.
I think that it would be good to raise an exception or at least warn when someone attempts to nest two groups to prevent the issue until there is a need for deeper nesting?
I think that this is absolutely fine. Hard to maintain in gem code, but while group contents are reasonably small (fits into single screen) it is both understandable and clean.
Yabeda.configuredogroup:g1do# configgroup:g2do# configend# more g1 config end
That one implies that nesting groups are supported (which is not true). Here, IMO, we should raise an exception. Or add support for nested groups (however no one has ever asked for this AFAIR)
Given the current implementation of
group
method for DSL:yabeda/lib/yabeda/dsl/class_methods.rb
Lines 31 to 37 in bd3b49f
We can configure sibling groups
or attempt to have nested groups
The nested groups are really the same as the first situation where we create two siblings. Both default_tags and looking up metrics would be handled the same in both cases with an additional surprise that the 'more g1 config'j would apply to the global scope.
I think that it would be good to raise an exception or at least warn when someone attempts to nest two groups to prevent the issue until there is a need for deeper nesting?
Originally posted by @liaden in #19 (comment)
The text was updated successfully, but these errors were encountered: