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

Add feature to permanent delete cluster. #200

Merged
merged 1 commit into from
Feb 1, 2019

Conversation

andrewmchen
Copy link
Contributor

Closes #176.

@codecov-io
Copy link

codecov-io commented Feb 1, 2019

Codecov Report

Merging #200 into master will increase coverage by 0.03%.
The diff coverage is 90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #200      +/-   ##
==========================================
+ Coverage   83.03%   83.07%   +0.03%     
==========================================
  Files          31       31              
  Lines        1957     1967      +10     
==========================================
+ Hits         1625     1634       +9     
- Misses        332      333       +1
Impacted Files Coverage Δ
databricks_cli/clusters/cli.py 94.35% <100%> (+0.38%) ⬆️
databricks_cli/clusters/api.py 53.57% <50%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52737e1...e286444. Read the comment docs.

@provide_api_client
def permanent_delete_cli(api_client, cluster_id):
"""
Permanently deletes a Spark cluster.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nanonit: I know we copied this from the REST API docs - we could consider explicitly mentioning that this is irreversible (although I guess "permanent" already implies that). Also, maybe we should say "Databricks cluster" instead of "Spark cluster" to maintain parity with the other clusters commands, e.g:

"Permanently and irreversibly deletes a Databricks cluster"

Copy link
Contributor

@smurching smurching left a comment

Choose a reason for hiding this comment

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

LGTM! One optional nit about documentation wording

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.

3 participants