Files
alfresco-ng2-components/docs/content-services/services/node-comments.service.md
Shivangi Shree 9a0b75caa1 [ADF-5582] Fix avatar rendering logic in adf-node-comments (#10995)
* [ADF-5582] Update NodeCommentsService to take userId as an argument in getUserImage

* [ADF-5582] Add unit tests for avatar caching and retrieval in NodeCommentsService

* Refactor NodeCommentsService unit tests to avoid accessing private members

* [ADF-5582] Remove picture Id from getUserImage

* [ADF-5582] Add comment to getAvatarCache and fix sonarcloud issues

* Update node-comments.service.spec.ts

* Trigger sonar

* [ADF-5582] Add method to return avatar url in people api

* [ADF-5582] Fix sonar cloud issue

* [ADF-5582] Add comment to getUserImage and fix request address for getAvatarImageUrl
2025-08-05 16:54:58 +05:30

1.3 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Node Comments Service v6.0.0 Active 2022-12-19

Node Comments Service

Adds and retrieves comments for nodes in Content Services.

API

  • add(id: string, message: string): Observable<CommentModel>
    Adds a comment to a task.
    • id: string - ID of the target task
    • message: string - Text for the comment
    • Returns Observable<CommentModel> - Details about the comment
  • get(id: string): Observable<CommentModel[]>
    Gets all comments that have been added to a task.
  • getUserImage(userId: string): string
    Returns the avatar URL for the specified user.
    • userId: string - ID of the user
    • Returns string - URL of the user's avatar image