NIFI-5909 PutElasticsearchHttpRecord doesn't allow to customize the timestamp format#3227
NIFI-5909 PutElasticsearchHttpRecord doesn't allow to customize the timestamp format#3227SavtechSolutions wants to merge 7 commits intoapache:masterfrom
Conversation
|
Never mind this, added the tests already |
|
I'm not a good reviewer for this one, but anything you can do to add test cases and improve the overall quality is appreciated, and makes it easier for current and future code changes/reviews. |
|
Yes, I do plan to add them - time permitting, as there's some infrastructure coding I need to do first, to make content assertions possible. |
…ts used to write Records to Elasticsearch
26e14fd to
2406ca0
Compare
… on the timezone of test executor)
There was a problem hiding this comment.
@SavtechSolutions ,
IMO, descriptions for time/date/timestamp descriptors should be consistent with existing ones. Please take a look at CSVReader for example.
Also, having expression language allowed on flow file level can cause inconsistency of date/time/timestamp data fields in ES. I would restrict it to Variable Registry level.
Also, before you commit the changes, you could run
mvn -T 2 clean install -Pcontrib-check -Ddir-only
to make sure you don't have styling issues and all tests are passing.
...ssors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchHttpRecord.java
Outdated
Show resolved
Hide resolved
...ssors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchHttpRecord.java
Outdated
Show resolved
Hide resolved
...ssors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchHttpRecord.java
Outdated
Show resolved
Hide resolved
...ssors/src/main/java/org/apache/nifi/processors/elasticsearch/PutElasticsearchHttpRecord.java
Outdated
Show resolved
Hide resolved
…scope to variable registry; added an appropriate validator along with its Maven dependency; moved format initialization to @OnScheduled
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/pom.xml
Outdated
Show resolved
Hide resolved
|
+1 LGTM. Pulled the changes and rebuilt the instance. Tested with different formats. Thank you for improvements! Merging to master. |
added optional settings for date, time, and timestamp formats used to write Records to Elasticsearch
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:
Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
Has your PR been rebased against the latest commit within the target branch (typically master)?
Is your initial contribution a single, squashed commit?
For code changes:
For documentation related changes:
Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.