-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 10.10-HF14, 11.1, 2021.0
-
Release Notes Summary:The Commentable facet is required to add comments to a document in the WebUI.
-
Epic Link:
-
Upgrade notes:
-
Team:GANG
-
Sprint:nxGang Sprint 11.1.16
Today the comments tab and widget are hardcoded in https://github.com/nuxeo/nuxeo-web-ui/blob/master/elements/document/nuxeo-document-page.js#L217. They are available for all document types and the only way to remove them would be to override this whole element through a slot contribution.
Some custom projects may want to disable UI application wide comments feature. There is a Commentable facet but it is just ignored on both platform and client-side -> leftover from old implementation.
We usually stick to a single pattern to enable/disable a feature which is the facet one like for Versionable (NXP-27873). Relying on a doctype facet allows to:
- control granularity on doc types
- fully disable it by ignoring its registration at runtime startup
Unfortunately, If we decide to stick to the Commentable facet pattern for 10.10 it means that comments won't suddenly be available anymore for document types without the Commentable which could be seen as a breaking behavior.
A possible solution, would be to introduce a Global UI conf on 10.10:
<property name="org.nuxeo.web.ui.enforceCommentable">false</property>
and check it to display comments widget and tab.