Repository navigation
H-3484: Seed practical measurement property types - #10485
Draft
vilkinsons wants to merge 1 commit into
Draft
vilkinsons wants to merge 1 commit into
vilkinsons wants to merge 1 commit into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seeds 102 practical property types using 45 existing data types or conversion groups. These let product specifications and observations distinguish meanings such as battery charge capacity, battery energy capacity, tank capacity, payload mass, network download rate, and available storage.
Stacked on #10484. Tracked in H-3484.
The catalogue covers dimensions and capacity; environmental observations; electricity and energy; equipment and fluids; transport; computing and communications; and light, sound, and radiation.
Properties reference common quantity parents to accept compatible metric, imperial, and US customary units. Fractions use bounded representations with unit-specific ranges, counts use integer domains, and the two sound-level properties require their declared A or C weighting. Charge and energy, mass and amount concentration, active/apparent/reactive power, and fuel consumption/economy retain separate meanings and unit families.
The migration resolves data-type references through the installed migration state and uses the existing idempotent property seeder. Existing types and conversion expressions are unchanged. The modeling notes describe the choices and limits: measurement conditions belong in the surrounding observation model, and physical relationships beyond existing data-type constraints are not enforced by these scalar properties.
An explicit TODO links BE-1156. Reciprocal
constant / selfconversions remain omitted until the team's future fallible-conversion support is available. Closed PR #10480 is not a dependency. Division precision is unchanged.Validation:
Stack created with GitHub Stacks CLI • Give Feedback 💬