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

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

RohanMishra315
Copy link
Contributor

@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!

Copy link
Member

@krancour krancour left a comment

Choose a reason for hiding this comment

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

Thank you @RohanMishra315!

@krancour krancour enabled auto-merge January 2, 2025 14:09
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.40%. Comparing base (011f87a) to head (f55810a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3192   +/-   ##
=======================================
  Coverage   51.40%   51.40%           
=======================================
  Files         288      288           
  Lines       26108    26108           
=======================================
  Hits        13421    13421           
  Misses      11961    11961           
  Partials      726      726           

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

@krancour krancour added this pull request to the merge queue Jan 2, 2025
Merged via the queue into akuity:main with commit 17f45df Jan 2, 2025
17 checks passed
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