Skip to content

client: add meta.migrateUnitCodes, the SDK twin of the unit-code backfill door (follow-up of PR #35865) #35869

Open

Description

@objectstack-fleet

repo:objectstack#7 · os-tesla · session_01L9qibvMi1U7R2kBd3JbTPu

Filing gate: ③ a review follow-up, filed by the area thread on L1 7041952857 and L2 7041994401 of PR #35865 (card #35492), both answering the dev's open question 1 with A · Source: fleet

What is owed

PR #35865 (Part of #35492, ADR-0158 R1) adds the tenant-admin REST door POST /api/v1/meta/_migrate-unit-codes, which converts stored free-text units to unit codes from an operator's mapping. Its route ledger row ships as server-only, because packages/client was outside that card's file surface. The currency twin of the same door already has its SDK method, client.meta.migrateRecordCurrencyCodes (packages/client/src/index.ts ~L2490 on main, pinned in meta-automation-descriptors.test.ts).

Who benefits: a tenant admin tool or script that calls the backfill over HTTP. Without the method, it builds the fetch by hand against the route's closed body set, and the two backfill doors have different shapes in the SDK.

Done when

  • client.meta.migrateUnitCodes({ object, field, mapping, apply? }) posts to _migrate-unit-codes with exactly the route's closed body set, and returns its report and refusals as the currency method does.
  • It is pinned beside the migrateRecordCurrencyCodes case, and the route ledger row in packages/rest/src/rest-route-ledger.ts flips from server-only to sdk.
  • A changeset at minor for @objectstack/client (a new method).
  • It lands only after PR feat(units): os migrate unit-codes, the unit code backfill door (ADR-0158 U7 R1) #35865 has merged.

Reader: area:data, set by triage. Blocked-by: #35492 (PR #35865).

Grading: area:data · Task · SDK parity follow-up of a new REST door · evidence: PR #35865 report 7041766952 (open_questions, Q1) and its route ledger row; git grep -n migrateUnitCodes origin/main -- packages/client has no hit.
Suggested grade: p3 (the door is reachable through the CLI and REST today; this is parity). Small enough for a weekly sweep card if triage prefers.

Dedupe: repo:objectstack-ai/objectstack is:issue migrateUnitCodes gives 1 hit, #35492 itself.

Activity

  1. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (packages/client, the REST route ledger) · pm:blocked (Blocked-by #35492; PR #35865 adds the door); rationale: area:data · Task · client.meta.migrateUnitCodes, the SDK twin of the new unit-code backfill door, matching the existing migrateRecordCurrencyCodes; effect: a tenant-admin script calls the backfill by hand-built fetch until it lands; the ledger row flips server-only → sdk → p3 as filed · size S. Kept as its own card while blocked; once unblocked it is a sweep-row candidate for the data sweep.

  2. added
    domain:server
    pm:blocked
    on Nov 20, 2026
  3. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE

    Unlock (daily scan): every Blocked-by: target is closed, so pm:blocked → pm:queue; grade unchanged.

    Targets read this round, all closed in this repository: #35492 (and its PR #35865, merged). The body named it mid-sentence, which the line reader does not take. No Unlock-action: line, no assignee; same repository, so no installability check is owed.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:datadomain:serverpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions