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

fix: incorrectly worded error message in argocd-update is corrected #3192

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RohanMishra315
Copy link

@RohanMishra315 RohanMishra315 commented Dec 24, 2024

fixes : #3163

  1. Error Message Adjustment:

Changed the phrasing from "was not initiated by %q and not by %q" to "was initiated by %q and not by %q".
This directly states who initiated the operation (status.Operation.InitiatedBy.Username) and clarifies it wasn't initiated by the expected user (applicationOperationInitiator).

@RohanMishra315 RohanMishra315 requested a review from a team as a code owner December 24, 2024 04:34
Copy link

netlify bot commented Dec 24, 2024

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit f55810a
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-io/deploys/676bec2ea34d940008eadc40
😎 Deploy Preview https://deploy-preview-3192.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@RohanMishra315 RohanMishra315 changed the title incorrectly worded error message form argocd-update is changed and updated fix: incorrectly worded error message in argocd-update is corrected Dec 24, 2024
@krancour krancour added this to the v1.2.0 milestone Dec 24, 2024
@krancour
Copy link
Member

krancour commented Dec 24, 2024

@RohanMishra315, it looks like there's a test case that is sensitive to the wording in that error and needs to be adjusted accordingly:

require.ErrorContains(t, err, "current operation was not initiated by")

You can run the tests locally to ensure this passes:

https://docs.kargo.io/contributor-guide/hacking-on-kargo#running-tests

After that's corrected, LGTM.

Thank you for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrectly worded error message form argocd-update step causes confusion
2 participants