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

update UI errors for secrets on scripts and software #25008

Merged
merged 3 commits into from
Dec 24, 2024

Conversation

ghernandez345
Copy link
Contributor

relates to #24550

This addes some UI error messages when trying to use fleet secret variables on scripts and software packages.

NOTE: The code works the same but has just been refactored to be encapsulated in a getErrorMessage function

  • Manual QA for all new/changed functionality

Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.75%. Comparing base (1a1ec72) to head (734fb9f).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #25008   +/-   ##
=======================================
  Coverage   63.75%   63.75%           
=======================================
  Files        1610     1610           
  Lines      153174   153166    -8     
  Branches     3928     3923    -5     
=======================================
- Hits        97660    97658    -2     
+ Misses      47728    47722    -6     
  Partials     7786     7786           
Flag Coverage Δ
frontend 53.43% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

} else {
renderFlash("error", getErrorMessage(e));
}
renderFlash("error", getErrorMessage(e));
Copy link
Contributor

Choose a reason for hiding this comment

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

🧼

@ghernandez345 ghernandez345 merged commit d1a9917 into main Dec 24, 2024
14 checks passed
@ghernandez345 ghernandez345 deleted the feat-ui-update-secret-errors branch December 24, 2024 21:26
"error",
`Couldn’t upload. Request timeout. Please make sure your server and load balancer timeout is long enough.`
);
} else if (reason.includes("Fleet couldn't read the version from")) {
Copy link
Member

@RachelElysia RachelElysia Dec 27, 2024

Choose a reason for hiding this comment

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

Is there a reason this else if was removed? I added it back, but lmk

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I mistakenly deleted this. Thanks for catching

Copy link
Member

Choose a reason for hiding this comment

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

@ghernandez345 thanks for cleaning up the error code!!!

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

Successfully merging this pull request may close these issues.

3 participants