AMBARI-20383. Not able to view the error log details on UI. (Padma Priya via dipayanb)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8f579c12 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8f579c12 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8f579c12 Branch: refs/heads/branch-feature-AMBARI-12556 Commit: 8f579c122876d00ebad034a2cc12ccfa5daa8869 Parents: 3d4a836 Author: Dipayan Bhowmick <[email protected]> Authored: Mon Mar 13 18:27:56 2017 +0530 Committer: Dipayan Bhowmick <[email protected]> Committed: Mon Mar 13 18:29:17 2017 +0530 ---------------------------------------------------------------------- .../src/main/resources/ui/app/validators/workflow-dag.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/8f579c12/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js ---------------------------------------------------------------------- diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js b/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js index 18da25b..2a419eb 100644 --- a/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js +++ b/contrib/views/wfmanager/src/main/resources/ui/app/validators/workflow-dag.js @@ -14,20 +14,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import Ember from 'ember'; import BaseValidator from 'ember-cp-validations/validators/base'; -const DuplicateDataNodeName = BaseValidator.extend({ +const WorkflowDag = BaseValidator.extend({ validate(value, options, model, attribute) { - if (model.get('dataNodes')) { + if (model.get('dataNodes') && model.get('dataNodes').length) { if(!model.get('flowRenderer').isWorkflowValid()){ - return "Invalid workflow structure. There is no flow to end node." + return "Invalid workflow structure. There is no flow to end node."; } } } }); -DuplicateDataNodeName.reopenClass({ +WorkflowDag.reopenClass({ /** * Define attribute specific dependent keys for your validator * @@ -40,4 +39,4 @@ DuplicateDataNodeName.reopenClass({ } }); -export default DuplicateDataNodeName; +export default WorkflowDag;
