How to disable feedback collection

This article describes how to enable or disable the "Feedback collection" widget in tenant settings for each tenant.

By following this article, you can manage feedback collection visibility.

Functional requirements 

  1. The default behaviour is to show "learner feedback collection" widget.
  2. Introduce a setting to disable "feedback collection" widget for learner in tenant settings (platform.ui.feedback).
  3. Future settings may separately manage feedback widgets for learners and administrators (instructors, administrators, authors, i.e. separate widgets for learner and administrator portals).
  4. If this setting is "false", the widget is not shown for learner portal (or administrator portal if introduced)

Non-functional requirements

  1. Administrator can disable the feedback widget in the tenant setting.
  2. If the setting is "false", the widget is hidden.
  3. If the setting is absent or set to "true" or any other value, the widget is shown.

Implementation

The setting value is a JSON with the following structure:
{
    "learner": {
        "visible": boolean
    }
}

If the setting doesn't exist, is not a well-formed json, 'learner' element doesn't exist, 'visible' attribute doesn't exist, its value is not bool or is true then the widget is visible

Only in the opposite case the widget is hidden.