mirror of https://github.com/apache/nifi.git
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:
parent
867c84f32c
commit
d37480eaff
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue