NIFI-2722:

- Updating the component entity as long as the proposed entity is not older than the current one since stats are bundled in the entity too.

This closes #983

Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
Matt Gilman 2016-09-02 07:34:57 -04:00 committed by Koji Kawamura
parent 867c84f32c
commit d37480eaff
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ nf.Client = (function() {
}, },
/** /**
* Determines whether the proposedData is newer than the currentData. * Determines whether the proposedData is not older than the currentData.
* *
* @param currentData Maybe be null, if the proposedData is new to this canvas * @param currentData Maybe be null, if the proposedData is new to this canvas
* @param proposedData Maybe not be null * @param proposedData Maybe not be null
@ -59,8 +59,8 @@ nf.Client = (function() {
var currentRevision = currentData.revision; var currentRevision = currentData.revision;
var proposedRevision = proposedData.revision; var proposedRevision = proposedData.revision;
// return whether the proposed revision is newer // return whether the proposed revision is not less
return proposedRevision.version > currentRevision.version; return proposedRevision.version >= currentRevision.version;
} else { } else {
return true; return true;
} }