Repository navigation
OSAC-2921: PRD — Add standardized display_name and description fields to resource Metadata #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d63b85e
6aaeb80
41a965b
ede0a66
dee67f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Add Standardized display_name and description Fields to Resource Metadata | ||
|
|
||
| | Field | Value | | ||
| |-------------|---------| | ||
| | Author(s) | Udi Shkalim | | ||
| | Jira | https://redhat.atlassian.net/browse/OSAC-2921 | | ||
| | Date | 2026-07-21 | | ||
|
|
||
| ## Problem Statement | ||
|
|
||
| OSAC resources use `metadata.name` as the primary human-visible identifier, but this field is constrained to DNS-label format (lowercase alphanumeric and hyphens, max 63 characters), making it unsuitable as a user-friendly label. Some resource types (Project, Role, NetworkClass, catalog items, templates) work around this with per-resource `title` and `description` fields, while most resources (ComputeInstance, VirtualNetwork, Subnet, PublicIP, BlockVolume) have no friendly name at all. This inconsistency forces repeated per-resource-type discussions about whether to add display fields and produces an uneven user experience across VMs, virtual networks, public IPs, and other resources. | ||
|
|
||
| ## In Scope | ||
|
|
||
| - Consistent, user-friendly resource naming across all OSAC resource types, all personas, and all client interfaces (API, CLI, Web UI) `[PR review: mhrivnak]` | ||
| - Two new shared Metadata fields: `display_name` (optional, max 63 characters) and `description` (optional, max 256 characters) — both mutable, clearable, and not required to be unique `[Clarify: R2.Q1, R3.Q1, R4.Q4, PR review: sk-ilya]` | ||
| - Reconciliation of existing per-resource `title`/`description` fields — removed from all 12 resource types that currently have them: Project, Role, IdentityProvider, InstanceType (description only), ClusterTemplate, ComputeInstanceTemplate, BareMetalInstanceTemplate, NetworkClass, HostType, ComputeInstanceCatalogItem, BareMetalInstanceCatalogItem, ClusterCatalogItem `[Clarify: R1.Q1, PR review: sk-ilya, ygalblum]` | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift Align the removal list with the stated flat-shape boundary. Line 17 removes fields from NetworkClass, HostType, templates, and catalog items, but the PR objective says only spec-level fields on Project, Role, IdentityProvider, and InstanceType are removed; flat-shape resources retain their existing fields. Split the lists and document how retained fields coexist with shared metadata. 🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Declining this suggestion — it reflects an earlier scope that reviewers explicitly rejected. @sk-ilya and @ygalblum asked to remove resource-level |
||
| - Filtering and sorting by `display_name` `[Clarify: R2.Q2]` | ||
|
|
||
| ## Out of Scope | ||
|
|
||
| - Resource identity — `metadata.name` remains the unique identifier `[PR review: mhrivnak]` | ||
| - Display behavior (how clients present `display_name` vs `metadata.name`) — deferred to UX and design phase `[PR review: mhrivnak, ygalblum]` | ||
| - Template parameter `title`/`description` fields within ComputeInstanceTemplate, BareMetalInstanceTemplate, and ClusterTemplate — only resource-level fields are affected `[Clarify: R1.Q3]` | ||
|
|
||
| ## User Stories | ||
|
|
||
| ### Cloud Provider Admin | ||
|
|
||
| - As a Cloud Provider Admin, I want resources across all tenant organizations to show a consistent, human-readable `display_name` and `description` so that I can quickly identify and audit resources when reviewing or supporting tenants, regardless of resource type. | ||
|
mhrivnak marked this conversation as resolved.
Resolved
|
||
| - As a Cloud Provider Admin, I want to filter and sort resource lists by `display_name` so that I can find resources across tenants using natural-language terms. `[Clarify: R2.Q2, PR review: mhrivnak]` | ||
|
|
||
| ### Cloud Infrastructure Admin | ||
|
|
||
| - As a Cloud Infrastructure Admin, I want platform-defined resources I manage (NetworkClass, HostType, catalog items, templates) to use the same `metadata.display_name` and `metadata.description` fields as all other resources, so that naming conventions are consistent across platform and tenant resources. `[PR review: sk-ilya, ygalblum]` | ||
|
|
||
| ### Tenant Admin | ||
|
|
||
| - As a Tenant Admin, I want all resource types I manage (VMs, virtual networks, public IPs, security groups, etc.) to support a friendly `display_name` and `description` so that I can give resources a natural-language name and description that are not constrained to DNS-label format. `[PR review: mhrivnak]` | ||
| - As a Tenant Admin, I want to update or clear `display_name` and `description` on existing resources so that I can correct labels or remove outdated descriptions as resources evolve. `[Clarify: R3.Q1]` | ||
|
|
||
| ### Tenant User | ||
|
|
||
| - As a Tenant User, I want to give my resources a friendly `display_name` (up to 63 characters) and `description` when creating them so that I can identify and organize them more easily than relying on the constrained `metadata.name` field. `[Clarify: R2.Q1]` | ||
|
|
||
| ## Dependencies | ||
|
|
||
| - **fulfillment-service proto and server changes:** Must land before UI and E2E test changes, since both depend on the updated Metadata definition and API behavior. | ||
|
|
||
| --- | ||
|
|
||
| ## Provenance | ||
|
|
||
| Authored: draft @ prd 0.5.0 - 92734a2, workspace main @ aac0f8e | ||
| Final: respond @ prd 0.6.1 - 96de078, workspace main @ 7b4fff2 | ||
|
|
||
| > Context changed between draft and respond. | ||
|
|
||
| <!-- ai-workflow-provenance:{"schema_version":1,"provenance_kind":"session","workflow":"prd","workflow_version":"0.6.1","ai_workflows":"96de078","source_repo":"7b4fff2","source_repo_branch":"main","commits_behind_main":0,"commits_ahead_main":0,"main_ref":"main","phases":["draft","revise","respond","respond","respond"],"authoring_modes":["skill"],"context_changed":true} --> | ||
Uh oh!
There was an error while loading. Please reload this page.