[
https://issues.apache.org/jira/browse/NIFI-4989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16406296#comment-16406296
]
ASF GitHub Bot commented on NIFI-4989:
--------------------------------------
Github user pvillard31 commented on the issue:
https://github.com/apache/nifi/pull/2560
@MikeThomsen - can you have a look at this commit:
https://github.com/pvillard31/nifi/commit/5a67aa152bf2844de6a9192bfb75a073e80a595b
I reworked a bit the tests to avoid "removing" a property while executing
the tests. Basically, instead of having a shared instance of the TestRunner for
all the test suite, I initialize one eache time (to be sure there is no
conflict between the tests and to avoid issues in cases tests are not executed
in the same order each time). Regarding your comment about the validation
failing, it's because we're providing a default value "_id". Because of that
the property will always return true to isSet(). Since we're adding a new
property and the user needs to use one of the two, I suggest removing the
default value: it does not break anything, and it "forces" the user to
understand the choice the user is doing. Does that make sense?
> PutMongo cannot specify nested fields or multiple lookup keys
> -------------------------------------------------------------
>
> Key: NIFI-4989
> URL: https://issues.apache.org/jira/browse/NIFI-4989
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Mike Thomsen
> Assignee: Mike Thomsen
> Priority: Major
>
> From the user mailing list:
> {quote}{color:#222222}I am using PutMongo processor to update documents in a
> mongoDB collection.{color}
> {color:#222222}I would like to specify nested field and multiple key in the
> update Key.{color}
> {color:#222222}For exemple :{color}
> {color:#222222}- my mongodb documents are {"nom":"HAMEL",
> "prenom":"Yves",{color}
> {color:#222222}"ids":\{"idSoc":"1234", "idInterne":"788"}}{color}
> {color:#222222}- I would'd like to set update query key to something like
> {"ids.idSoc" ,{color}
> {color:#222222}"nom"}{color}
> {color:#222222}- this would means that I update document with ids.idSoc and
> nom equals to{color}
> {color:#222222}my mew document.{color}
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)