fleet/server/contexts
Victor Lyuboslavsky 92bc1c650e
Move PostJSONWithTimeout to platform/http package and activity cleanup (#40561)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #38536

- Moved PostJSONWithTimeout to platform/http
- Created platform/errors package with only types needed by ctxerr. This
way, ctxerr did not need to import fleethttp.
- Made activity bounded context use PostJSONWithTimeout directly
- Removed some activity types from legacy code that were no longer
needed

# Checklist for submitter

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
- Changes file `38536-new-activity-bc` already present, and this is just
cleanup from that work.

## Testing

- [x] Added/updated automated tests
- [x] QA'd all new/changed functionality manually


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

## Release Notes

* **Refactor**
* Reorganized error handling utilities for improved clarity and
decoupling.
* Consolidated HTTP utilities to centralize JSON posting functionality
with timeout support.
* Simplified activity service initialization by removing unused internal
parameters.
* Cleaned up test utilities and removed webhook-related test
scaffolding.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-02-26 17:39:10 -06:00
..
apple_bm feat: enable multiple ABM and VPP tokens (#21693) 2024-08-29 18:51:46 -04:00
authz Add new self-service auth method for iOS/iPadOS (#36659) 2025-12-05 10:16:46 -05:00
capabilities add headers denoting capabilities between fleet server / desktop / orbit (#7833) 2022-09-26 07:53:53 -03:00
carvestore Authenticate carve block endpoint before parsing the "data" field (#39353) 2026-02-05 15:55:03 -03:00
certserial My device page (self-service) for iOS/iPadOS (#35238) 2025-11-07 17:30:51 -05:00
ctxdb Fix edge case of AppConfig changes getting lost in cached mysql. (#15352) 2023-11-29 10:09:37 -05:00
ctxerr Move PostJSONWithTimeout to platform/http package and activity cleanup (#40561) 2026-02-26 17:39:10 -06:00
host Refactor endpoint_utils for modularization (#36484) 2025-12-31 09:12:00 -06:00
installersize Request body limits (#39080) 2026-02-05 10:29:53 -05:00
license Refactor endpoint_utils for modularization (#36484) 2025-12-31 09:12:00 -06:00
logging Move PostJSONWithTimeout to platform/http package and activity cleanup (#40561) 2026-02-26 17:39:10 -06:00
publicip Add public ip to hosts & derive geolocation when rendering host (#4652) 2022-03-21 12:29:52 -04:00
token Safely split incoming request headers, remove support for token presence in request body (#39427) 2026-02-18 08:50:04 -08:00
viewer Move NewActivity to activity bounded context (#39521) 2026-02-25 14:11:03 -06:00