cloudbreak
cloudbreak copied to clipboard
CB-18629 - Data Lake Postgres upgrade fails due to flow restart
This commit:
- eliminates the
resourceidbeing 0 for a couple of flows inflowlogentity - sets
DBStackServiceasResourceIdProvider - introduces
UpgradeDatabaseResponsethat includes aflowIdentifier,currentVersionand areasonif the flow is not triggerable due to a certain validation - removes
BadRequestwhen upgrade flow is already happening -> just returns the flowId and a descriptive reason field - introduces a check if the DB engine version matches the one sent in the request, and if so then it does not trigger the upgrade flow -> just returns the current version and a descriptive reason field