|
[CONF] Apache Sling > Sling Feature Flags support
Felix Meschberger (Confluence) Wed, 29 Jan 2014 05:31:35 -0800
- [CONF] Apache Sling > Sling Feature Fl... Bertrand Delacretaz (Confluence)
- [CONF] Apache Sling > Sling Featu... Bertrand Delacretaz (Confluence)
- [CONF] Apache Sling > Sling Featu... Bertrand Delacretaz (Confluence)
- [CONF] Apache Sling > Sling Featu... Felix Meschberger (Confluence)
Re. Show/Hide Resources: This is currently implemented. Yet the descendant Resources ... are hidden as well part is only true if enumerating down the tree using listChildren. Directly accessing a resource below a hidden resource is still possible.
Re Alternate between resources: This is currently implemented: a resource can be tagged with a flag name is only visible if the flag is set. When prefixing the flag name with a dash (-), the resource is only visible if the flag is disabled.
Re Alter Resource rendering: Since scripts are resources, they can be hidden with flags and thus this should be possible.
Re Use variants of OSGi Services: I don't think we should do that at all, because it causes different behaviour depending on how you access the service. IMHO these methods should really just be wrappers around the service access methods in the OSGi BundleContext.
Preliminary documentation is available in the documentation staging area on the Feature Flags page.