ambari icon indicating copy to clipboard operation
ambari copied to clipboard

fix the bug of widget duplication

Open xlyslr opened this issue 7 years ago • 1 comments

What changes were proposed in this pull request?

The data of widget in the database will not be deleted when the service (for example YARN) uninstalling. And when installing,will check if the widget exists by clusterId,widget_name,user and default_section_name. The focus is on default_section_name. In the if statement, the default value will be set by SECTION_NAME. But in the else statement, no default value will be set. Then the widget created in the first installation can not be find in the next installation, and another widget (same with the previous) will be created repeatedly.

How was this patch tested?

Manual tests. (Please explain how this patch was tested. Ex: unit tests, manual tests) (If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

Please review Ambari Contributing Guide before opening a pull request.

xlyslr avatar Dec 19 '18 09:12 xlyslr

Refer to this link for build results (access rights to CI server needed): https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/4765/ Test PASSed.

asfgit avatar Dec 19 '18 10:12 asfgit