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

feat: local files generated by svc and pipeline are not deleted #1034

Merged
merged 6 commits into from Jun 22, 2020
Merged

feat: local files generated by svc and pipeline are not deleted #1034

merged 6 commits into from Jun 22, 2020

Conversation

seongm-1
Copy link
Contributor

@seongm-1 seongm-1 commented Jun 18, 2020

Addresses #1031, #800

Summary

svc delete

  • will not delete manifest.yml
  • will not delete addons/

pipeline delete

  • will not delete pipeline.yml
  • buildspec.yml was already not deleted

app delete

  • will not delete the files mentioned above but only delete .workspace file

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

TODO:
e2e testing

Copy link
Contributor

@SoManyHs SoManyHs left a comment

Choose a reason for hiding this comment

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

LGTM! Just a few small things -- also do you think it'd be helpful to modify the long description of the various delete commands to mention that the local files will be persisted?

Also, would you mind adding some manual output (unless the e2e tests cover this). Thanks!!

internal/pkg/workspace/workspace.go Outdated Show resolved Hide resolved
internal/pkg/cli/app_delete.go Outdated Show resolved Hide resolved
Copy link
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

LGTM and +1 to Hsinghui's comment to have our e2e tests covering this.

internal/pkg/cli/app_delete.go Outdated Show resolved Hide resolved
Copy link
Contributor

@efekarakus efekarakus left a comment

Choose a reason for hiding this comment

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

Awesome, I love all these deletions :D

internal/pkg/workspace/workspace.go Outdated Show resolved Hide resolved
internal/pkg/cli/interfaces.go Outdated Show resolved Hide resolved
internal/pkg/cli/interfaces.go Outdated Show resolved Hide resolved
internal/pkg/cli/app_delete.go Outdated Show resolved Hide resolved
internal/pkg/cli/app_delete.go Outdated Show resolved Hide resolved
internal/pkg/cli/app_delete.go Outdated Show resolved Hide resolved
internal/pkg/workspace/workspace.go Outdated Show resolved Hide resolved
Copy link
Contributor

@iamhopaul123 iamhopaul123 left a comment

Choose a reason for hiding this comment

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

ship it:shipit: feel free to remove the tag after fixing remaining comments

@iamhopaul123 iamhopaul123 added the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Jun 19, 2020
@iamhopaul123 iamhopaul123 self-requested a review June 19, 2020 20:46
Copy link
Contributor

@kohidave kohidave left a comment

Choose a reason for hiding this comment

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

Yay~ Thank you!

@efekarakus efekarakus removed the do-not-merge Pull requests that mergify shouldn't merge until the requester allows it. label Jun 22, 2020
@mergify mergify bot merged commit 0d26912 into aws:master Jun 22, 2020
Sprint 🏃‍♀️ automation moved this from In review to Pending release Jun 22, 2020
mergify bot pushed a commit that referenced this pull request Jun 29, 2020
Added e2e tests.

Had to reinitialize app and svc inside the test files since my tests revolves around not deleting local files (expect .workspace) when running `app delete` and `svc delete`. 

Addresses #1034 

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Sprint 🏃‍♀️
  
Pending release
Development

Successfully merging this pull request may close these issues.

None yet

5 participants