bbende / nifi

Mirror of Apache NiFi
Apache License 2.0
1 stars 1 forks source link

`nifi-reg import-flow-version` must not require the `--flowVersion` argument #18

Closed aperepel closed 6 years ago

aperepel commented 6 years ago

This is quite counterintuitive. We should be either using the flow version from the definition file or default to latest on import, i.e. append-only mode. Also, version counts will not necessarily match between buckets/instances, e.g. Dev & Prod, so requiring this arg is not right.

bbende commented 6 years ago

I agree, I think it should just become the next one up number. Since we don't have a true import on the registry side, we can just make a call to determine the latest version number of the flow we are importing to, and then make the imported version be the next one-up number. Will work on this.