Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.2.0
-
None
Description
This ticket proposes that if user has not made any eventual config change (for example "Enabled Ranger plugin for HBase" and then disabled it again) then ambari should not show any extra config changes.
For this we need to keep track of explicit config changes that are being made by the user. If a config change at any time negates all the user config changes done before then UI should send configs in the data posted in recommendation API as received from stack (on installer/ASW wizard) or the last service config version (post-install).
Please find below examples:
First example:
On Installer/ASW, When user lands on "Customize Services" page, ui posts data to recommendation API with all config values as received from stack endpoint
After that, If user changes "Ranger plugin for HBase" to ON, ui send recommendation API with all config values as received from stack endpoint + overriden value of some config received from response of API executed in step-1
User Changes "Ranger plugin for HBase" to OFF, ui should post data to recommendation API with all config values as received from stack endpoint (as done in step1). The reason being the all users previously explicitly made changes have been negated at this point
Second Example:
On Installer/ASW, When user lands on "Customize Services" page, ui posts data to recommendation API with all config values as received from stack endpoint
After that, If user changes "Ranger plugin for HBase" to ON and changes some other property "xyz" to "v1", ui send recommendation API with all config values as currently set in UI (received from stack endpoint + overriden value of some config received from response of API executed in step-1)
Changes "Ranger plugin for HBase" to OFF, ui should post data to recommendation API with all config values as set currently on UI (same behavior as ui displays today).