Github user Chaffelson commented on a diff in the pull request:

    https://github.com/apache/nifi-registry/pull/98#discussion_r165489168
  
    --- Diff: 
nifi-registry-framework/src/main/java/org/apache/nifi/registry/service/RegistryService.java
 ---
    @@ -589,8 +589,15 @@ public VersionedFlowSnapshot createFlowSnapshot(final 
VersionedFlowSnapshot flow
                 // update the modified date on the flow
                 metadataService.updateFlow(existingFlow);
     
    +            // get the updated flow, we need to use "with counts" here so 
we can return this is a part of the response
    +            final FlowEntity updatedFlow = 
metadataService.getFlowByIdWithSnapshotCounts(snapshotMetadata.getFlowIdentifier());
    +            if (updatedFlow == null) {
    +                throw new ResourceNotFoundException("Versioned flow does 
not exist for identifier " + snapshotMetadata.getFlowIdentifier());
    +            }
    +            final VersionedFlow updatedVersionedFlow = 
DataModelMapper.map(existingBucket, updatedFlow);
    +
    --- End diff --
    
    Sounds good.
    Now if only I had a maven builder to Docker for NiFi-Registry...


---

Reply via email to