simonbence commented on code in PR #8726:
URL: https://github.com/apache/nifi/pull/8726#discussion_r1588943898


##########
nifi-extension-bundles/nifi-flow-registry-client-bundle/nifi-flow-registry-client-services/src/main/java/org/apache/nifi/registry/flow/NifiRegistryFlowRegistryClient.java:
##########
@@ -149,7 +149,7 @@ public boolean isStorageLocationApplicable(final 
FlowRegistryClientConfiguration
     }
 
     @Override
-    public Set<FlowRegistryBucket> getBuckets(final 
FlowRegistryClientConfigurationContext context) throws FlowRegistryException, 
IOException {
+    public Set<FlowRegistryBucket> getBuckets(final 
FlowRegistryClientConfigurationContext context, final String branch) throws 
FlowRegistryException, IOException {

Review Comment:
   I wanted to point 
[here](https://github.com/bbende/nifi/blob/NIFI-13120/nifi-extension-bundles/nifi-flow-registry-client-bundle/nifi-flow-registry-client-services/src/main/java/org/apache/nifi/registry/flow/NifiRegistryFlowRegistryClient.java#L242-L247)
 as an example. The point was, here (even though it will aways be the default 
one) the branch is handled as it coukld be different and we might expect 
something else from the argument then the default.
   
   Thus it looks like it could have different value, which (in case of this 
particular implementation) is not true at this point. I think this "proper 
handling" can be misleading and might result unrealistic responses: it can 
return a snapshot with proper content but having metadata pointing to an 
arbitrary (non-existing) branch.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to