Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #40364 +/- ##
==========================================
- Coverage 66.27% 66.27% -0.01%
==========================================
Files 2459 2460 +1
Lines 197073 197340 +267
Branches 8572 8572
==========================================
+ Hits 130614 130786 +172
- Misses 54636 54706 +70
- Partials 11823 11848 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| err = fleet.NewInvalidArgumentError("script", err.Error()).WithStatus(http.StatusConflict) // TODO: confirm error message with product/frontend | ||
| } else if errors.As(err, &fkErr) { | ||
| err = fleet.NewInvalidArgumentError("team_id", "The team does not exist.").WithStatus(http.StatusNotFound) | ||
| err = fleet.NewInvalidArgumentError("team_id/fleet_id", "The fleet does not exist.").WithStatus(http.StatusNotFound) |
There was a problem hiding this comment.
At this point, we don't know what key they actually used. So I'm just listing both. These are server logs, not user-facing, and they'll go away in Fleet 5.
iansltx
left a comment
There was a problem hiding this comment.
Couple minor wording tweaks, but reasonable on the whole
|
Addressed feedback, good finds! |
iansltx
left a comment
There was a problem hiding this comment.
Thx for the cleanup! LGTM.
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** For #40348 # Details This PR updates a number of error message on the server to use `fleet` and `report` instead of `team` or `query` where applicable. # Checklist for submitter If some of the following don't apply, delete the relevant line. - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. this is all internal, i don't think it warrants a changelog ## Testing - [X] Added/updated automated tests - [ ] QA'd all new/changed functionality manually I did not go trying to trigger all these errors. It's text changes.
Cherry-pick of #40364 into `rc-minor-fleet-v4.82.0`.
Related issue: For #40348
Details
This PR updates a number of error message on the server to use
fleetandreportinstead ofteamorquerywhere applicable.Checklist for submitter
If some of the following don't apply, delete the relevant line.
changes/,orbit/changes/oree/fleetd-chrome/changes.See Changes files for more information.
this is all internal, i don't think it warrants a changelog
Testing
I did not go trying to trigger all these errors. It's text changes.