-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce new commands to deploy resources in the Go client #8995
Conversation
The CI stuff highlights some issues, but I think these are non issues: using a deprecated API (no way around it), and some duplicate code (I think that's fair for now, as we will replace the old deploy command eventually). |
Introduce a new `DeployResourceCommand` to the Go client API which to revert the previously committed breaking change. This means, in order to deploy DMN, users will have to use the new API. The old API is restored and will work as it previously used to.
Introduces a new sub command to the `deploy` command: `deploy resource`. This allows deploying resources, including DMN, making use of the new `DeployResourceCommand` API introduced in the client. Previous usages of the `deploy` command will work as before. The only caveat is if your filename was called purely `resource`, in which case you will get a proper error informing you about the new command.
2362a53
to
8c2f307
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
bors merge |
@npepinpe I just noticed that the old API is not deprecated. Can you add this in a follow-up PR? |
Build succeeded:
|
8997: Mark DeployProcessCommand as deprecated for Go client r=npepinpe a=npepinpe ## Description This PR marks `DeployProcessCommand` as a deprecated method in the Go client, and also the `zbctl deploy <processPath>...` usage (to be replaced by `zbctl deploy resource <resourcePath>...`). Using the deprecated API in Go will trigger a warning (as you can see by our need to add `//nolint` in places 😄) ## Related issues related to #8995 Co-authored-by: Nicolas Pepin-Perreault <[email protected]>
9002: [Backport release-8.0.0] Mark DeployProcessCommand as deprecated for Go client r=npepinpe a=github-actions[bot] # Description Backport of #8997 to `release-8.0.0`. relates to #8995 9007: [Backport release-8.0.0] Fix notification of snapshot replication listeners about missed events r=oleschoenburg a=oleschoenburg ## Description Manual backport of #8994 for the `8.0`release branch Co-authored-by: Nicolas Pepin-Perreault <[email protected]> Co-authored-by: Ole Schönburg <[email protected]>
Description
This PR reverts the previous breaking changes and instead introduces new commands to deploy decisions and decision requirements. The client must now use
client.NewDeployResourceCommand()
, and the oldclient.NewDeployProcessCommand()
has been restored. Similarly,zbctl
now supports its oldzbctl deploy <path> <path>
behavior, but also supportszbctl deploy resource mySuper.dmn
as well, which behaves the same as the old deploy command but can deploy DMN files.Related issues
related to #8979
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation: