Repository navigation
Conversation
xyte-genie
left a comment
There was a problem hiding this comment.
AI: Adds the new device details history read to the CLI catalog and typed client, so operators and agents can fetch a device's current details plus its earlier values. It mirrors the hub endpoint and must ship after it; until then the call returns not found.
reviewed@440c4b7cccfcf5c55eaa5afcc231cfe44212aabb
|
AI: Review lenses for 440c4b7
|
…s it apart from getHistories; upgrade note
… since release, untracked fields, week/month by age, 401 for unknown devices)
There was a problem hiding this comment.
🔵 Needs a closer look
The required Hub server#9871 prerequisite is inaccessible, so a maintainer must verify its merge and deployment status and confirm the history-retention contract before approval.
No open issues 🎉
What changed in this PR
Adds device details history to the CLI’s endpoint catalog and typed organization client, making it available through the existing raw API command. Availability depends on hub PR #9871 landing.
Changes:
- Registers the read-only endpoint and adds
organization.getDeviceDetailsHistory. - Updates shipped skill data, usage documentation, and release notes.
- Adds tests for endpoint metadata, namespace routing, authorization, path encoding, and body omission.
| File | Description |
|---|---|
tests/namespaces.test.ts |
Tests the new client method’s catalog mapping. |
tests/endpoints.test.ts |
Validates endpoint metadata and contract notes. |
tests/auth-and-client.test.ts |
Tests request rendering, authorization, and body omission. |
src/types/client.ts |
Declares the organization client method. |
src/client/namespaces/organization.ts |
Maps the method to the new catalog key. |
src/api-catalog/public-endpoints.json |
Defines the endpoint and documents history semantics. |
skills/xyte-cli/references/endpoints.md |
Adds usage guidance and a CLI example. |
skills/xyte-cli/data/public-endpoints.json |
Mirrors the endpoint in shipped skill data. |
CHANGELOG.md |
Records the addition and skill-refresh guidance. |
Review effort: Balanced
ariel-greenfeld
left a comment
There was a problem hiding this comment.
AI: Adds organization.devices.getDeviceDetailsHistory (catalog entry, skill copy byte-identical, namespace + type, endpoints.md, CHANGELOG, tests). Route, method, org auth, path param, no body and the 401/response shape all match hub #9871 (get :details, on: :member, set_device before_action, jbuilder partial, Bruno doc). No code findings: 0 Critical, 0 High, 0 Mid, 0 Low.
CI is red only on windows-installer-package failed in runner setup (PowerShell Expand-Archive overload error extracting node.exe), not in anything this diff touches, and it passed on an earlier run of this branch. Approving; please re-run that job before merge. Merge after hub #9871 is deployed, or the endpoint answers 404.
UX: not applicable (no UI).
reviewed@5be36a86199845deb2aa1693834f3c8d0bb9e403
DEV-7080 — GET organization device details history
Linear: https://linear.app/xyte/issue/DEV-7080 · Hub: https://github.com/xyte-io/server/pull/9871 · MCP: xyte-io/xyte-mcp#41
Merge after hub #9871 — until it lands, the endpoint answers 404.
What changed
organization.devices.getDeviceDetailsHistory—GET /core/v1/organization/devices/:device_id/details, org key, pathdevice_id, no query/body. Same key as xyte-mcp.client.organization.getDeviceDetailsHistory({ path: { device_id } }).references/endpoints.md, CHANGELOG[Unreleased].CLI:
xyte-cli api call organization.devices.getDeviceDetailsHistory --tenant <tenant> --path-json '{"device_id":"<id>"}'Checks
npm test1283 passed (2 skipped), typecheck clean, lint unchanged vs main (0 errors).Heads-up
docs.xyte.io/reference/get-device-details-historygoes live with the customer-docs PR (DEV-7080) after the hub release.endpoints.mdconflicts expected with DEV-7554: scheduled maintenance endpoints in the catalog and client (hub #9705) #85, DEV-7985: getIncidents notifications[].error and missing query params #88, DEV-7993: sync the catalog with the new Partner coupon and tag endpoints #89.