You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/03/02 06:49:32 UTC

[GitHub] [nifi] koccs commented on a change in pull request #5812: [NIFI-9690] Display icon on Connection Label to show when head of the queue is penalized

koccs commented on a change in pull request #5812:
URL: https://github.com/apache/nifi/pull/5812#discussion_r817393093



##########
File path: nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js
##########
@@ -1820,6 +1820,41 @@
                 .attrs({
                     'filter': getDropShadow
                 });
+
+            // penalized icon
+            var connectionLabelContainer = updated.select('g.connection-label-container');
+            if (connectionLabelContainer.select('text.penalized-icon').empty()) {
+                connectionLabelContainer.select('g.queued-container')
+                    .append('text')
+                    .attrs({
+                        'class': 'penalized-icon',
+                        'y': 14
+                    })
+                    .text(function () {
+                        return '\uf252';
+                    })
+                    .append('title');
+            }
+
+            // determine whether or not to show the penalized icon
+            connectionLabelContainer.select('text.penalized-icon')
+                .classed('hidden', function () {
+                    var flowFileAvailability = _.get(d, 'status.aggregateSnapshot.flowFileAvailability', null)

Review comment:
       Thanks, I have tested it with `return false;` to see the icon and did not check the console after the last touches.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org