Skip to content

Units of measure: decide whether a deleted org unit code stays retired or can be created again (ADR-0158 Open item 11) #35466

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB

Routed by ADR-0158, Open item 11, to the sys_unit card. Parent: #35339 (ADR merged in PR #35370, 35bd360).

Defect the ADR names

L1 allows deleting an org unit and makes a unit's code and dimension immutable after create. That does not survive a delete followed by a new create of the same code: a sys_* row has no recycle bin and frees its unique value at once (ADR-0148: "Unique keys free immediately", v1 covers business objects only). The same code can then come back with another dimension, ratio and label. Rows resting on the old unit keep the code, take the new label in R1's display, fall into one group with the new unit's rows under U7 R1's grouped aggregate, and can sit under a unitDimension they no longer satisfy. That is the relabel hazard ADR-0144 D4 closed for currency. L1 rules out scanning for "used", so a use check cannot close it.

Done when

The sys_unit card picks one: a deleted code stays retired (refused on re-create), or re-creation is admitted and its consequence for resting rows is stated; ADR-0158 is amended. Sibling: Open item 2, filed beside this one under #35339.

Grade

p2 · area:data · domain:spec. Silent regrouping and relabelling of stored quantities if left open when sys_unit ships.


Generated by Claude Code

Activity

  1. added
    priority:p2
    pm:queue
    domain:spec
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec · pm:queue; rationale: area:data · Task (ADR-0158 open item 11: whether a deleted org unit code is retired) · p2 as set: the units-of-measure cards under #35339 wait on it.

  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c

    Closing as answered at 2026-11-20T04:06Z. ADR-0158 on main records Open item 11 as settled: a deleted unit code stays retired and the retired row keeps its code (the 2026-11-19 note under Open item 11; the retired boolean in the sys_unit field list). #35488 landed it via PR #35581. The engine-side refusal and "a retired row is not a member" rule are carried by #35489.

  4. removed
    pm:queue
    on Nov 20, 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:specpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions