Skip to content

Conversation

kingbj940429
Copy link
Contributor

@kingbj940429 kingbj940429 commented Feb 26, 2025

Related to #21691

There are two Expected Behaviors

  1. A readable error message pointing out that negative values are not allowed.
  2. Silently interpreting the revisionHistoryLimit as 0.

I choose num 2.

Before

image
image

After

image
image

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

@kingbj940429 kingbj940429 requested a review from a team as a code owner February 26, 2025 17:02
Copy link

bunnyshell bot commented Feb 26, 2025

❗ Preview Environment undeploy from Bunnyshell failed

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to try again to remove the environment

kingbj940429 and others added 11 commits February 27, 2025 02:09
fix(appcontroller): if a history limit is negative, automatically converted to 0

Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
…oproj#21887) (argoproj#21936)

Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Co-authored-by: Ishita Sequeira <46771830+ishitasequeira@users.noreply.github.com>
Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: reggie-k <regina.voloshin@codefresh.io>
Signed-off-by: Regina Voloshin <reginakagan@gmail.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Co-authored-by: rumstead <37445536+rumstead@users.noreply.github.com>
Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
…abels (argoproj#22008)

Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
…#21990)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
…rgoproj#21989)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: Isaac Gaskin <isaac.gaskin@circle.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
…rgoproj#21015)

Signed-off-by: toyamagu2021 <toyamagu2021@gmail.com>
Signed-off-by: toyamagu-2021 <toyamagu2021@gmail.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: nitishfy <justnitish06@gmail.com>
Signed-off-by: Nitish Kumar <justnitish06@gmail.com>
Co-authored-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
@kingbj940429 kingbj940429 force-pushed the kingbj940429/fix-history-causes-panic branch from 0a156f9 to bb59553 Compare February 26, 2025 17:10
@kingbj940429 kingbj940429 requested review from a team as code owners February 26, 2025 17:10
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@b88ad57). Learn more about missing BASE report.
⚠️ Report is 788 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #22036   +/-   ##
=========================================
  Coverage          ?   53.96%           
=========================================
  Files             ?      342           
  Lines             ?    57091           
  Branches          ?        0           
=========================================
  Hits              ?    30812           
  Misses            ?    23692           
  Partials          ?     2587           

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

Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
@kingbj940429
Copy link
Contributor Author

@rumstead
Can you review this PR again? :)

Copy link
Member

@rumstead rumstead left a comment

Choose a reason for hiding this comment

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

Thanks for the first contribution and bug fix! LGTM. Let's see if someone else with more familiarity can review as well.

@agaudreault agaudreault merged commit 274e918 into argoproj:master May 8, 2025
32 checks passed
LyhengTep pushed a commit to LyhengTep/argo-cd that referenced this pull request May 10, 2025
…verted to 0 (argoproj#22036)

Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
ranakan19 pushed a commit to ranakan19/argo-cd that referenced this pull request May 20, 2025
…verted to 0 (argoproj#22036)

Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: Kanika Rana <krana@redhat.com>
olivergondza pushed a commit to olivergondza/argo-cd that referenced this pull request May 20, 2025
…verted to 0 (argoproj#22036)

Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
tylerrosnett pushed a commit to StateFarmIns/argo-cd that referenced this pull request May 27, 2025
…verted to 0 (argoproj#22036)

Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
chansuke pushed a commit to chansuke/argo-cd that referenced this pull request Jun 4, 2025
…verted to 0 (argoproj#22036)

Signed-off-by: kingbj0429 <kingbj0429@lunit.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

10 participants