feat(assets): add licence section (vendor, seat count, expiry) to CMDB (PMS-454) #376
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-454-asset-license-fields"
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?
Manual QA expanded the PMS-454 CMDB scope (issue comment) to include a per-asset licence section. The earlier CMDB-expansion work (063, commit
6691ce8) already shipped the other QA-requested fields (assigned user, IP, hostname, MAC, installed date, department, in-transit ticket) and the dependency/impact-map endpoints already satisfy the remaining acceptance criteria; the licence section was the one outstanding item. The warranty-expiry auto-tag is explicitly "filed separately" and the richer CI-type taxonomy lives in a sibling ticket, so both stay out of scope here.Adds three nullable flat columns on
assets(migration 080), mirroring how 063 added the rest of the CMDB fields rather than introducing a side table: license_vendor VARCHAR(150), license_seat_count INTEGER (CHECK >= 0), license_expiry DATE, plus a partial index on (tenant_id, license_expiry) for the "licences lapsing soon" filter. Threads the three fields through AssetResponse, CreateAssetRequest, and UpdateAssetRequest (seat count validated non-negative, vendor capped at 150 chars), the list/get SELECTs, the create INSERT, the update UPDATE (COALESCE so a partial PUT leaves untouched columns alone), and the AssetRow row mapping.#PMS-454