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: adopt delete app confirmation to new prompt util #20664

Merged

Conversation

pasha-codefresh
Copy link
Member

@pasha-codefresh pasha-codefresh commented Nov 5, 2024

Related to: #19528

Here also was a bug related to deletion of multiple resources, it didnt because numOfApps was initialized incorrectly

  1. Cascade delete is false and no --yes flag ( which enables prompts )

Снимок экрана 2024-11-05 в 14 15 17

  1. Cascade delete is true and noPrompt is false
    Снимок экрана 2024-11-05 в 14 45 19

Signed-off-by: pashakostohrys <pavel@codefresh.io>
@pasha-codefresh pasha-codefresh requested a review from a team as a code owner November 5, 2024 11:24
Copy link

bunnyshell bot commented Nov 5, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Signed-off-by: pashakostohrys <pavel@codefresh.io>
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 25.58140% with 32 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@8cf990b). Learn more about missing BASE report.
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
cmd/argocd/commands/app.go 0.00% 19 Missing ⚠️
cmd/argocd/commands/utils/prompt.go 45.83% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master   #20664   +/-   ##
=========================================
  Coverage          ?   55.10%           
=========================================
  Files             ?      324           
  Lines             ?    55262           
  Branches          ?        0           
=========================================
  Hits              ?    30451           
  Misses            ?    22196           
  Partials          ?     2615           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: pashakostohrys <pavel@codefresh.io>
Signed-off-by: pashakostohrys <pavel@codefresh.io>
Comment on lines 1456 to 1459
var (
confirmAll = false
confirm bool = false
)
Copy link
Member

Choose a reason for hiding this comment

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

nit: should we add data type to both variables to be consistent?

cmd/argocd/commands/utils/prompt_test.go Show resolved Hide resolved
Signed-off-by: pashakostohrys <pavel@codefresh.io>
@ishitasequeira ishitasequeira enabled auto-merge (squash) November 5, 2024 14:47
@ishitasequeira ishitasequeira merged commit b9d5387 into argoproj:master Nov 5, 2024
26 checks passed
adriananeci pushed a commit to adriananeci/argo-cd that referenced this pull request Dec 4, 2024
* feat: adopt delete app confirmation to new prompt util

Signed-off-by: pashakostohrys <pavel@codefresh.io>

* feat: adopt delete app confirmation to new prompt util

Signed-off-by: pashakostohrys <pavel@codefresh.io>

* feat: adopt delete app confirmation to new prompt util

Signed-off-by: pashakostohrys <pavel@codefresh.io>

* feat: adopt delete app confirmation to new prompt util

Signed-off-by: pashakostohrys <pavel@codefresh.io>

* chore: remove type where it is not needed

Signed-off-by: pashakostohrys <pavel@codefresh.io>

---------

Signed-off-by: pashakostohrys <pavel@codefresh.io>
Signed-off-by: Adrian Aneci <aneci@adobe.com>
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.

2 participants