Skip to content

feat(GlobalTagging): add message field to TagResultsItem#294

Open
stefano-rm wants to merge 1 commit intoIBM:mainfrom
stefano-rm:feat/add-message-field-tagresultsitem
Open

feat(GlobalTagging): add message field to TagResultsItem#294
stefano-rm wants to merge 1 commit intoIBM:mainfrom
stefano-rm:feat/add-message-field-tagresultsitem

Conversation

@stefano-rm
Copy link

PR summary

Add optional message field to TagResultsItem class to expose detailed error messages returned by the GhoST Tags API when tagging operations fail.

PR Checklist

  • The commit message follows the Angular Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Current vs new behavior

Current behavior: When a tagging operation fails, the TagResultsItem only contains resourceId and isError fields. Error details are not exposed to SDK users.

New behavior: The TagResultsItem now includes an optional message field with a getter method that returns the error message from the API, providing better error diagnostics.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

  • Related to (IBM) task #29830
  • Changes are minimal: adds the message field and its getter method
  • The field is optional and backward compatible
  • Swagger definition has been updated and merged in the ghost-for-resources repository

Add message field to TagResultsItem class to expose detailed error
messages from the GhoST Tags API.

Changes:
- Added message field to TagResultsItem class
- Added getMessage() getter method

Related: ghost-for-resources swagger PR (merged)
Signed-off-by: Stefano Roberto Mollica <stefano.mollica@it.ibm.com>
@CLAassistant
Copy link

CLAassistant commented Feb 12, 2026

CLA assistant check
All committers have signed the CLA.

Copy link

@mkrudele mkrudele left a comment

Choose a reason for hiding this comment

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

I don't see unit tests for the case is_error = true, where the message is set.

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.

3 participants