-
Notifications
You must be signed in to change notification settings - Fork 18
[CLI-3590] Rename tableflow topic [create | delete]
to [enable | disable]
and add [create | delete]
as aliases
#3090
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
base: main
Are you sure you want to change the base?
Conversation
🎉 All Contributor License Agreements have been signed. Ready to merge. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
return fmt.Errorf(errors.DeleteResourceErrorMsg, resource.NetworkLinkService, id, err) | ||
} | ||
return nil | ||
return c.V2Client.DeleteNetworkLinkService(environmentId, id) |
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.
The Delete
(and DeleteWithoutMessage
) functions already wrap these errors w/ a message nearly identical to DeleteResourceErrorMsg
, so these changes are to remove redundant phrasing from error messages like Error: failed to delete n-abc123: failed to delete network "n-abc123": ...
tableflow topic create
to enable
and add create
as an aliastableflow topic [create | delete]
to [enable | disable]
and add [create | delete]
as aliases
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.
Great job on this! Everything looks good to me 👍
Going to wait on merging this one. |
Release Notes
Breaking Changes
New Features
confluent tableflow topic create
toconfluent tableflow topic enable
, and addcreate
as an alias to preserve existing workflows and avoid a breaking changeconfluent tableflow topic delete
toconfluent tableflow topic disable
, and adddelete
as an alias to preserve existing workflows and avoid a breaking changeBug Fixes
delete
commandsChecklist
What
section below whether this PR applies to Confluent Cloud, Confluent Platform, or both.Test & Review
section below.Blast Radius
section below.What
Rename Cloud commands
confluent tableflow topic [create | delete]
toconfluent tableflow topic [enable | disable]
, but keepcreate
anddelete
as aliases to prevent breaking changes.In order to make the wording of outputs and error messages consistent with the
delete
->disable
change, the bulk deletion code has been updated to not hardcode "delete" in strings. Some code duplication has been removed as well.This has also improved output strings for the
plugin uninstall
command, which now usesuninstall
instead ofdelete
in the confirmation prompts and error messages.This PR also adds some new integration tests for
schema-registry kek [delete | undelete]
to 1) improve test coverage and 2) make sure that removing duplicate code in the bulk deletion code didn't alter these outputs.Finally, I removed some redundant error wrapping.
Blast Radius
The blast radius of the primary change should be 0, since aliases have been added to preserve the existing behavior. Any issues with the updates to the bulk deletion code could affect the wording of confirmation prompts and deletion error messages of any delete command (although the actual behavior should not be affected).
References
Test & Review
confluent tableflow topic [enable | disable]
and kept existing integration tests forcreate
anddelete
to check the validity of those aliases.confluent sr kek [delete | undelete]
and on-premconfluent kafka link delete
to test the wording of the confirmation prompts.Manual Testing:
Enable:
Create (Alias):
Disable:
Delete (alias; after recreating/re-enabling the two topics):
Help output for enable, showing alias:
Help output for disable, showing alias: