[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-16 Thread mattyb149
Github user mattyb149 commented on the issue:

https://github.com/apache/nifi/pull/2672
  
+1 LGTM, made a couple of edits before merging (see comments), thanks for 
the improvement! Merging to master


---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-15 Thread MikeThomsen
Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2672
  
[Added a Jira ticket](https://issues.apache.org/jira/browse/NIFI-5197) to 
track the issue with the invalid scope bugs.


---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-15 Thread MikeThomsen
Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2672
  
@mattyb149 I just changed the override to be the one without a parameter. I 
agree that there should be a task for squashing the scope bugs, but do the few 
that got squashed here need to be cherry picked out or should they just stay in?


---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-15 Thread mattyb149
Github user mattyb149 commented on the issue:

https://github.com/apache/nifi/pull/2672
  
I think the invalid scopes thing should be done in a separate Jira, there 
are more than just the ones above (~40 in total) so I think we should tackle 
them all at once, and have this PR just call evaluateAttributeExpressions with 
the empty map. I don't think that's a hack, it emulates the real behavior 
(although the real one has a ValueLookup whose constructor skips flow file 
processing if null).


---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-15 Thread MikeThomsen
Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2672
  
@markap14 I added a detailed comment describing why I did what I did and 
fixed a few processors that had invalid scopes applied to their properties. 
Build seems totally fine now. Let me know if you need any more changes.


---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-14 Thread ottobackwards
Github user ottobackwards commented on the issue:

https://github.com/apache/nifi/pull/2672
  
I think making this consistent for testing is a good idea.  The fact that 
the Mock classes in nifi can replicate the runtime behavior is very important 
to implementors.

I think that the changes to the other processors might be better suited 
outside of this pr though.

Also, I wouldn't mind seeing a comment or more comments in the Mock class 
referencing the runtime behavior they are enforcing.



---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-13 Thread MikeThomsen
Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2672
  
@pvillard31 can you take a look?


---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-11 Thread MikeThomsen
Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2672
  
@markap14 Any feedback?


---


[GitHub] nifi issue #2672: NIFI-5145 Made MockPropertyValue.evaluateExpressionLanguag...

2018-05-03 Thread MikeThomsen
Github user MikeThomsen commented on the issue:

https://github.com/apache/nifi/pull/2672
  
@pvillard31 @joewitt Could one of you do a code review on this? It aims to 
roll back a little of the new testing behavior that breaks 
evaluateExpressionLanguage(FlowFile) when the input is null. The work around to 
get the testing behavior to match the live behavior is [pretty 
hackish](https://issues.apache.org/jira/browse/NIFI-5145).


---