Skip to content
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

fix(kafka delete): show proper message for delete operation #700

Merged
merged 2 commits into from
Jun 3, 2021

Conversation

rkpattnaik780
Copy link
Contributor

Closes #615

Verification Steps

  1. Run go run ./cmd/rhoas kafka delete <instance-name>

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • Documentation added for the feature
  • CI and all relevant tests are passing
  • Code Review completed
  • Verified independently by reviewer

one = 'Kafka instance "{{.Name}}" is being deleted. You can monitor its progress by running "rhoas status".'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you delete a Kafka instance, it will remove it from the config file, so rhoas status will not show anything. Also, if you delete a Kafka by passing the ID or name, rhoas status will be showing the status of a different one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best to remove the second sentence.

one = 'Kafka instance "{{.Name}}" is being deleted. You can monitor its progress by running "rhoas status".'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also expect to see the same message when skipping confirmation.

Currently it shows:

❯ rhoas kafka delete -y
Deleting Kafka instance "enda-kafka"

Kafka instance "enda-kafka" has successfully been deleted

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated
Screenshot from 2021-06-03 19-50-43

@craicoverflow craicoverflow merged commit ad71bba into main Jun 3, 2021
@craicoverflow craicoverflow deleted the kafka_delete_msg branch June 3, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When deleting a Kafka instance, it should say "Kafka instance being deleted" or similar
2 participants