NIFI-10679 MiNiFi C2 Update Asset Command#6583
NIFI-10679 MiNiFi C2 Update Asset Command#6583briansolo1985 wants to merge 3 commits intoapache:mainfrom
Conversation
bejancsaba
left a comment
There was a problem hiding this comment.
Thanks for your change. It looks really good and is well covered with tests. I had one question around C2ClientConfig / properties could you please take a look there?
| .c2Url(properties.getProperty(C2NiFiProperties.C2_REST_URL_KEY, "")) | ||
| .c2RequestCompression(properties.getProperty(C2NiFiProperties.C2_REQUEST_COMPRESSION_KEY, C2NiFiProperties.C2_REQUEST_COMPRESSION)) | ||
| .confDirectory(properties.getProperty(C2NiFiProperties.C2_CONFIG_DIRECTORY_KEY, DEFAULT_CONF_DIR)) | ||
| .confDirectory(properties.getProperty(C2NiFiProperties.C2_CONFIG_DIRECTORY_KEY, DEFAULT_CONF_DIR)) |
There was a problem hiding this comment.
The asset directory shouldn't be added to the C2ClientConfig? I mean if we treat it as a c2 parameter I think it would make sense. What do you think?
There was a problem hiding this comment.
Good point, fixed it, it also became cleaner
| import java.util.stream.Stream; | ||
| import org.apache.nifi.util.NiFiProperties; | ||
|
|
||
| public class TransferDebugCommandHelper { |
There was a problem hiding this comment.
Thanks it is cleaner this way!
ferencerdei
left a comment
There was a problem hiding this comment.
Thanks for this feature, +1 from me
|
I applied @bejancsaba 's recommendations, please check the PR again. Many thanks |
bejancsaba
left a comment
There was a problem hiding this comment.
+1 from my side, looks really good. Thank you.
Signed-off-by: Csaba Bejan <bejan.csaba@gmail.com> This closes apache#6583.
Signed-off-by: Csaba Bejan <bejan.csaba@gmail.com> This closes apache#6583.
Summary
NIFI-10679
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation