feat(cmdb): ITIL CI classification on asset types and lifecycle on assets (PMS-456) #336
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-server!336
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-456-itil-ci-types"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Layers an ITIL CI classification on the existing per-tenant CMDB. Adds two opt-in columns:
asset_types.itil_categorytags the type with the industry-standard ITIL CI class (hardware / software / service / network / document / location, or a tenant-coined value). Free-text VARCHAR(50) so a tenant can coin a new category without a schema migration; the SPA offers the standard set as suggestions. Indexed partial on (tenant_id, itil_category) so the "show me all hardware CIs" filter is one index scan per category.assets.itil_lifecycle_stagetracks the per-CI lifecycle position (planned / in_service / retired, or a tenant-coined value). Pulls onto the asset (not the type) because two assets sharing a type can be in different lifecycle positions all the time.Both columns surface through AssetTypeResponse and AssetResponse for read, and through UpsertAssetTypeRequest / CreateAssetRequest / UpdateAssetRequest for write; existing rows surface as
Noneand the SPA renders that as "Unclassified" / "Unknown" so an upgrade does not require backfill.Phase 2 of PMS-456 (CI relationships graph traversal + impact analysis) is intentionally not in this PR. The existing
asset_relationshipstable already gives the parent-child shape; the impact-analysis traversal + the SPA's CI map visualisation are tracked as a follow-up under the same ticket.#PMS-456
479a44f957d25ebcaa2f