[ https://issues.apache.org/jira/browse/NIFI-5186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16484030#comment-16484030 ]
ASF GitHub Bot commented on NIFI-5186: -------------------------------------- Github user scottyaslan commented on a diff in the pull request: https://github.com/apache/nifi/pull/2722#discussion_r189688839 --- Diff: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-controller-services.js --- @@ -814,12 +814,20 @@ var bType = nfCommon.isDefinedAndNotNull(b.component[sortDetails.columnId]) ? nfCommon.substringAfterLast(b.component[sortDetails.columnId], '.') : ''; return aType === bType ? 0 : aType > bType ? 1 : -1; } else if (sortDetails.columnId === 'state') { - var aState = 'Invalid'; - if (nfCommon.isEmpty(a.component.validationErrors)) { + var aState; + if (a.component.validationStatus === 'VALIDATING') { + aState = 'Validating'; + } else if (a.component.validationStatus === 'INVALID') { + aState = 'Invalid'; + } else { aState = nfCommon.isDefinedAndNotNull(a.component[sortDetails.columnId]) ? a.component[sortDetails.columnId] : ''; } - var bState = 'Invalid'; - if (nfCommon.isEmpty(b.component.validationErrors)) { + var bState; + if (a.component.validationStatus === 'VALIDATING') { --- End diff -- should this be checking b.component.validationStatus? > Update UI to account for asynchronous validation > ------------------------------------------------ > > Key: NIFI-5186 > URL: https://issues.apache.org/jira/browse/NIFI-5186 > Project: Apache NiFi > Issue Type: Bug > Components: Core UI > Reporter: Matt Gilman > Assignee: Matt Gilman > Priority: Blocker > Fix For: 1.7.0 > > > This Jira is a follow up to NIFI-950. The new asynchronous validation > introduces a new state VALIDATING. This VALIDATING state will be entered > following any modifications (create, update) to the component (Processor, > Controller Service, Reporting Task). All component validation is done in the > background on a recurring interval. When obtaining the current state, we will > return the last known state unless it is VALIDATING as a result of a > modification. -- This message was sent by Atlassian JIRA (v7.6.3#76005)