Skip to content

SP-397: include description in asset-registry list output#356

Open
Kastriot Salihu (ksalihu) wants to merge 1 commit into
mainfrom
ksalihu/SP-397-asset-registry-list-description
Open

SP-397: include description in asset-registry list output#356
Kastriot Salihu (ksalihu) wants to merge 1 commit into
mainfrom
ksalihu/SP-397-asset-registry-list-description

Conversation

@ksalihu
Copy link
Copy Markdown
Contributor

@ksalihu Kastriot Salihu (ksalihu) commented May 22, 2026

asset-registry list previously rendered each entry as <assetType> - <displayName> [<group>], dropping the descriptor's description field. Append - <description> when a description is present and leave the line unchanged for descriptors with null descriptions. Update the user-guide example output (also drops a stale (basePath: ...) suffix the docs claimed but the code never produced) and refresh the unit test to cover both the with-description and no-description branches.

Changed files:

  • src/commands/asset-registry/asset-registry.service.tslogDescriptorSummary now conditionally appends the description.
  • tests/commands/asset-registry/asset-registry-list.spec.ts — covers both the with-description and no-description branches (asserts no trailing - and no null literal when the descriptor has no description).
  • docs/user-guide/asset-registry-commands.md — example output refreshed and a one-liner added explaining the format. Also drops a stale (basePath: ...) suffix the docs claimed but the code never produced.

Testing

  • npx jest --testPathPattern="asset-registry/asset-registry-list" — 3/3 passing
  • Full asset-registry suite — 36/36 passing
  • Built locally and ran asset-registry list against develop; all 8 registered asset types now show their description after the group.

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Includes-AI-Code: true

`asset-registry list` previously rendered each entry as
`<assetType> - <displayName> [<group>]`, dropping the descriptor's
`description` field. Append ` - <description>` when a description is
present and leave the line unchanged for descriptors with `null`
descriptions. Update the user-guide example output (also drops a stale
`(basePath: ...)` suffix the docs claimed but the code never produced)
and refresh the unit test to cover both the with-description and
no-description branches.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
@ksalihu Kastriot Salihu (ksalihu) requested review from a team as code owners May 22, 2026 12:20
};

it("Should list all asset types", async () => {
it("Should list all asset types with description when present", async () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should test cases when description is present and not present.

@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants