You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sc...@apache.org on 2017/08/24 23:05:30 UTC

[1/3] nifi git commit: NIFI-2715 - Keep 'Content Claim' header visible

Repository: nifi
Updated Branches:
  refs/heads/master acee2627c -> 6c426f7a1


NIFI-2715 - Keep 'Content Claim' header visible


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/a9ee2aa5
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/a9ee2aa5
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/a9ee2aa5

Branch: refs/heads/master
Commit: a9ee2aa5e4cd3eafa7369840f199e2f1b48900ca
Parents: a7ea178
Author: yuri1969 <19...@gmail.com>
Authored: Mon Aug 21 19:54:29 2017 +0200
Committer: Scott Aslan <sc...@gmail.com>
Committed: Thu Aug 24 18:38:29 2017 -0400

----------------------------------------------------------------------
 .../webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp    | 3 ++-
 .../nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css    | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/a9ee2aa5/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
index b366b72..043d463 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
@@ -66,7 +66,8 @@
                 <div class="spacer">&nbsp;</div>
                 <div class="settings-right">
                     <div id="flowfile-with-no-content" class="content-details">
-                        <div class="flowfile-header">No Content Available</div>
+                        <div class="flowfile-header">Content Claim</div>
+                        <div class="flowfile-info unset">No Content Available</div>
                     </div>
                     <div id="flowfile-content-details" class="content-details">
                         <div class="flowfile-header">Content Claim</div>

http://git-wip-us.apache.org/repos/asf/nifi/blob/a9ee2aa5/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
index 2fbfabe..a2e6a8e 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
@@ -108,7 +108,7 @@ div.flowfile-header {
     padding: 5px;
 }
 
-div.detail-name {
+div.detail-name, div.flowfile-info {
     width: 100%;
     font-size: 12px;
     font-weight: 500;


[2/3] nifi git commit: NIFI-2715 - When performing a Queue Listing, if...

Posted by sc...@apache.org.
NIFI-2715 - When performing a Queue Listing, if...

...FlowFile has no content, UI does not indicate this fact

For FlowFiles with no content:
* Added a simple title replacing the Content Claim's one.
* Defaulted File Size to 0 bytes using common formatting.


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/a7ea178c
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/a7ea178c
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/a7ea178c

Branch: refs/heads/master
Commit: a7ea178cdc02355cf8fa1b83555351a477522ecd
Parents: acee262
Author: yuri1969 <19...@gmail.com>
Authored: Wed Aug 16 22:42:08 2017 +0200
Committer: Scott Aslan <sc...@gmail.com>
Committed: Thu Aug 24 18:38:29 2017 -0400

----------------------------------------------------------------------
 .../WEB-INF/partials/canvas/flowfile-details-dialog.jsp       | 3 +++
 .../src/main/webapp/js/nf/canvas/nf-queue-listing.js          | 7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/a7ea178c/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
index a2de56a..b366b72 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/WEB-INF/partials/canvas/flowfile-details-dialog.jsp
@@ -65,6 +65,9 @@
                 </div>
                 <div class="spacer">&nbsp;</div>
                 <div class="settings-right">
+                    <div id="flowfile-with-no-content" class="content-details">
+                        <div class="flowfile-header">No Content Available</div>
+                    </div>
                     <div id="flowfile-content-details" class="content-details">
                         <div class="flowfile-header">Content Claim</div>
                         <div class="flowfile-detail">

http://git-wip-us.apache.org/repos/asf/nifi/blob/a7ea178c/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js
index 5528105..f214158 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-queue-listing.js
@@ -415,6 +415,9 @@
         }).done(function (response) {
             var flowFile = response.flowFile;
 
+            // set a default for flowfiles with no content claim
+            var fileSize = nfCommon.isDefinedAndNotNull(flowFile.contentClaimFileSize) ? flowFile.contentClaimFileSize : nfCommon.formatDataSize(0);
+
             // show the URI to this flowfile
             $('#flowfile-uri').text(flowFile.uri);
 
@@ -422,7 +425,7 @@
             $('#flowfile-uuid').html(nfCommon.formatValue(flowFile.uuid));
             $('#flowfile-filename').html(nfCommon.formatValue(flowFile.filename));
             $('#flowfile-queue-position').html(nfCommon.formatValue(flowFile.position));
-            $('#flowfile-file-size').html(nfCommon.formatValue(flowFile.contentClaimFileSize));
+            $('#flowfile-file-size').html(nfCommon.formatValue(fileSize));
             $('#flowfile-queued-duration').text(nfCommon.formatDuration(flowFile.queuedDuration));
             $('#flowfile-lineage-duration').text(nfCommon.formatDuration(flowFile.lineageDuration));
             $('#flowfile-penalized').text(flowFile.penalized === true ? 'Yes' : 'No');
@@ -454,8 +457,10 @@
 
                 // show the content details
                 $('#flowfile-content-details').show();
+                $('#flowfile-with-no-content').hide();
             } else {
                 $('#flowfile-content-details').hide();
+                $('#flowfile-with-no-content').show();
             }
 
             // attributes


[3/3] nifi git commit: NIFI-2715 - Match style to 'detail-value'

Posted by sc...@apache.org.
NIFI-2715 - Match style to 'detail-value'

Signed-off-by: Scott Aslan <sc...@gmail.com>

This closes #2100


Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/6c426f7a
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/6c426f7a
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/6c426f7a

Branch: refs/heads/master
Commit: 6c426f7a12d636df66d224a982617bc34535b3e1
Parents: a9ee2aa
Author: yuri1969 <19...@gmail.com>
Authored: Wed Aug 23 18:26:36 2017 +0200
Committer: Scott Aslan <sc...@gmail.com>
Committed: Thu Aug 24 18:39:12 2017 -0400

----------------------------------------------------------------------
 .../nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi/blob/6c426f7a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
index a2e6a8e..31381d9 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/queue-listing.css
@@ -108,7 +108,7 @@ div.flowfile-header {
     padding: 5px;
 }
 
-div.detail-name, div.flowfile-info {
+div.detail-name {
     width: 100%;
     font-size: 12px;
     font-weight: 500;
@@ -117,7 +117,7 @@ div.detail-name, div.flowfile-info {
     color: #262626;
 }
 
-div.detail-value {
+div.detail-value, div.flowfile-info {
     line-height: normal;
     width: 100%;
     color: #775351;