Skip to content

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

Merged
craicoverflow merged 2 commits intomainfrom
kafka_delete_msg
Jun 3, 2021
Merged

fix(kafka delete): show proper message for delete operation#700
craicoverflow merged 2 commits intomainfrom
kafka_delete_msg

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

[kafka.delete.log.info.deleteSuccess]
description = 'Info message when instance was deleted'
one = 'Kafka instance "{{.Name}}" has successfully been deleted' No newline at end of file
one = 'Kafka instance "{{.Name}}" is being deleted. You can monitor its progress by running "rhoas status".' No newline at end of file
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.

[kafka.delete.log.info.deleteSuccess]
description = 'Info message when instance was deleted'
one = 'Kafka instance "{{.Name}}" has successfully been deleted' No newline at end of file
one = 'Kafka instance "{{.Name}}" is being deleted. You can monitor its progress by running "rhoas status".' No newline at end of file
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