feat: allow to manage display_order value for building block definiti…#218
Conversation
📊 Test Coverage
❌ Acceptance tests failed (advisory — the job runs against the last merged meshfed-release backend, so a change needing a companion backend PR fails here until that backend merges; the real gate is meshfed-release's Uncovered functions (combined run)Combined with |
5321918 to
49e6c12
Compare
|
|
grubmeshi
left a comment
There was a problem hiding this comment.
Have a look at my proposal of implementing it differently. I think only addressing this inside the resource is not enough and it must be handled inside versionContentHash itself.
816cdbc to
72737b4
Compare
…on I/O without affecting the calculated hash for change detection CU-86cabn76y
…nd checks. Include BB definition version input and output displayOrder field into hashsum calculation as they cannot be changed on released versions.
8b73bcd to
249a384
Compare
grubmeshi
left a comment
There was a problem hiding this comment.
Please address my review comments, in general, the approach is sound I think.
249a384 to
bf6305c
Compare
…ulated by an older hash algorithm version Fixes #209
bf6305c to
8f569e8
Compare
f482f99 to
15f7b81
Compare
…on I/O without affecting the calculated hash for change detection
CU-86cabn76y
Summary
Added a manageable display_order field to building block definition version inputs and outputs.
Implementation:
Client
DisplayOrder int64 with json:"displayOrder,omitempty" on both MeshBuildingBlockDefinitionInput and MeshBuildingBlockDefinitionOutput.
Schema
display_order Int64Attribute on inputs and outputs, Optional + Computed + Default(0) — the Default is what keeps re-plans clean given the backend returns 0 when unset.
Content hash
stripped to 0 before hashing, so reordering never changes content_hash or forces a new version
Released immutability
displayOrdersDiffer guard in Update — needed because display_order is outside the hash, so this restores the "released versions are immutable" behavior with a clear error.
Mock
mirrors input→output display_order for manual BBDs.