This is an automated email from the ASF dual-hosted git repository. jgolieb pushed a commit to branch branch-feature-AMBARI-14714 in repository https://gitbox.apache.org/repos/asf/ambari.git
commit 23016727d1a8aa8d337a5468841614284a045850 Author: Jason Golieb <[email protected]> AuthorDate: Wed May 16 09:37:25 2018 -0700 Captured upgrade states as constants for future use. --- ambari-web/app/utils/constants.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ambari-web/app/utils/constants.js b/ambari-web/app/utils/constants.js index fcaca90..0695d3e 100644 --- a/ambari-web/app/utils/constants.js +++ b/ambari-web/app/utils/constants.js @@ -25,4 +25,14 @@ var App = require('app'); //which will enable comparisons against Boolean values from code to be performed correctly against the atttributes. //(Otherwise, you would end up setting attributes to the string values "true" and "false", which both evaluate to Boolean true.) App.False = false; -App.True = true; \ No newline at end of file +App.True = true; + +//upgrade process states +App.UpgradeState.NotRequired = 'NOT_REQUIRED'; +App.UpgradeState.Pending = 'PENDING'; +App.UpgradeState.InProgress = 'IN_PROGRESS'; +App.UpgradeState.Holding = 'HOLDING'; +App.UpgradeState.Completed = 'COMPLETED'; +App.UpgradeState.Aborted = 'ABORTED'; +App.UpgradeState.Failed = 'HOLDING_FAILED'; +App.UpgradeState.Timeout = 'HOLDING_TIMEDOUT'; \ No newline at end of file -- To stop receiving notification emails like this one, please contact [email protected].
