You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by jskora <gi...@git.apache.org> on 2016/08/18 15:06:33 UTC
[GitHub] nifi pull request #886: NIFI-1867 Improve ModifyBytes to make it easy to rem...
GitHub user jskora opened a pull request:
https://github.com/apache/nifi/pull/886
NIFI-1867 Improve ModifyBytes to make it easy to remove all FlowFile content (0.x)
* Add "Remove All Content" property, related functionality, and tests to ModifyBytes processor to allow deletion of all flow file content.
* Removed @Ignore annotation on class and unnecessary EOL translation of test data. Because ModifyBytes treat input as binary data, not text, line endings don't matter as long as they byte offsets are calculated correctly.
(For 0.x branch, a separate PR for 1.x branch will follow.)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jskora/nifi NIFI-1867-0.x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/886.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #886
----
commit d8cba513daecb022e0620a8a0bd57bdca76ea99a
Author: Joe Skora <js...@apache.org>
Date: 2016-08-18T14:02:24Z
* Add "Remove All Content" property, related functionality, and tests to ModifyBytes processor to allow deletion of all flow file content.
* Removed @Ignore annotation on class and unnecessary EOL translation of test data. Because ModifyBytes treat input as binary data, not text, line endings don't matter as long as they byte offsets are calculated correctly.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] nifi pull request #886: NIFI-1867 Improve ModifyBytes to make it easy to rem...
Posted by jskora <gi...@git.apache.org>.
Github user jskora closed the pull request at:
https://github.com/apache/nifi/pull/886
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] nifi pull request #886: NIFI-1867 Improve ModifyBytes to make it easy to rem...
Posted by pvillard31 <gi...@git.apache.org>.
Github user pvillard31 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/886#discussion_r75447699
--- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ModifyBytes.java ---
@@ -74,6 +74,13 @@
.addValidator(StandardValidators.DATA_SIZE_VALIDATOR)
.defaultValue("0 B")
.build();
+ public static final PropertyDescriptor REMOVE_ALL = new PropertyDescriptor.Builder()
+ .name("Remove All Content")
+ .description("Remove all content from the FlowFile superseding Start Offset and End Offset properties.")
+ .required(true)
+ .addValidator(StandardValidators.BOOLEAN_VALIDATOR)
+ .defaultValue("false")
--- End diff --
Could you add
````
.allowableValues("true", "false")
````
in such a case?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] nifi issue #886: NIFI-1867 Improve ModifyBytes to make it easy to remove all...
Posted by jskora <gi...@git.apache.org>.
Github user jskora commented on the issue:
https://github.com/apache/nifi/pull/886
Closed by 0.x branch commit f89bc9efd8b8458b5bfd6a1b4045ce8230117ff4.
Thanks @pvillard31
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] nifi pull request #886: NIFI-1867 Improve ModifyBytes to make it easy to rem...
Posted by jskora <gi...@git.apache.org>.
Github user jskora commented on a diff in the pull request:
https://github.com/apache/nifi/pull/886#discussion_r75469531
--- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ModifyBytes.java ---
@@ -74,6 +74,13 @@
.addValidator(StandardValidators.DATA_SIZE_VALIDATOR)
.defaultValue("0 B")
.build();
+ public static final PropertyDescriptor REMOVE_ALL = new PropertyDescriptor.Builder()
+ .name("Remove All Content")
+ .description("Remove all content from the FlowFile superseding Start Offset and End Offset properties.")
+ .required(true)
+ .addValidator(StandardValidators.BOOLEAN_VALIDATOR)
+ .defaultValue("false")
--- End diff --
Will do.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] nifi issue #886: NIFI-1867 Improve ModifyBytes to make it easy to remove all...
Posted by pvillard31 <gi...@git.apache.org>.
Github user pvillard31 commented on the issue:
https://github.com/apache/nifi/pull/886
+1, checked improvement, full build w/ contrib-check, LGTM.
Merged in 0.x.
@jskora, could you manually close this PR? Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] nifi issue #886: NIFI-1867 Improve ModifyBytes to make it easy to remove all...
Posted by jskora <gi...@git.apache.org>.
Github user jskora commented on the issue:
https://github.com/apache/nifi/pull/886
@pvillard31, I committed the .allowableValues change to this and the 1.x pull https://github.com/apache/nifi/pull/890.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---