Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jun 23, 2025

What do these changes do?

  • Edit own messages
  • Delete own messages

EditAndDelete

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jun 23, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jun 23, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jun 23, 2025
@odeimaiz odeimaiz marked this pull request as ready for review June 23, 2025 13:22
@odeimaiz odeimaiz requested a review from Copilot June 23, 2025 13:22
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jun 23, 2025
@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 23, 2025

queue

🟠 Waiting for conditions to match

  • any of: [🔀 queue conditions]
    • all of: [📌 queue conditions of queue default]
      • any of: [🛡 GitHub branch protection]
        • check-neutral = deploy to dockerhub
        • check-skipped = deploy to dockerhub
        • check-success = deploy to dockerhub
      • any of: [🛡 GitHub branch protection]
        • check-neutral = system-tests
        • check-skipped = system-tests
        • check-success = system-tests
      • any of: [🛡 GitHub branch protection]
        • check-neutral = unit-tests
        • check-skipped = unit-tests
        • check-success = unit-tests
      • any of: [🛡 GitHub branch protection]
        • check-neutral = check OAS' are up to date
        • check-skipped = check OAS' are up to date
        • check-success = check OAS' are up to date
      • any of: [🛡 GitHub branch protection]
        • check-neutral = integration-tests
        • check-skipped = integration-tests
        • check-success = integration-tests
      • any of: [🛡 GitHub branch protection]
        • check-neutral = build-test-images (frontend) / build-test-images
        • check-skipped = build-test-images (frontend) / build-test-images
        • check-success = build-test-images (frontend) / build-test-images
      • #approved-reviews-by >= 2 [🛡 GitHub branch protection]
      • #approved-reviews-by>=2
      • #changes-requested-reviews-by = 0 [🛡 GitHub branch protection]
      • #changes-requested-reviews-by=0
      • #review-threads-unresolved = 0 [🛡 GitHub branch protection]
      • #review-threads-unresolved=0
      • -conflict
      • -draft
      • base=master
      • branch-protection-review-decision = APPROVED [🛡 GitHub branch protection]
      • label!=🤖-do-not-merge
      • label=🤖-automerge
  • -closed [📌 queue requirement]
  • -conflict [📌 queue requirement]
  • -draft [📌 queue requirement]
  • any of: [📌 queue -> configuration change requirements]
    • -mergify-configuration-changed
    • check-success = Configuration changed

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds the ability for users to edit and delete their own conversation messages via UI controls and new API endpoints.

  • Introduces editMessage and deleteMessage methods in the Conversations client
  • Maps new PUT/DELETE endpoints in the Resources module
  • Extends the message UI and AddMessage dialog to support edit and delete flows, refreshing the view on changes

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
services/static-webserver/client/source/class/osparc/study/Conversations.js Added editMessage and deleteMessage client methods
services/static-webserver/client/source/class/osparc/data/Resources.js Defined editMessage (PUT) and deleteMessage (DELETE) endpoints
services/static-webserver/client/source/class/osparc/conversation/MessageUI.js Added menu button, handlers for edit/delete, and fire events to refresh messages
services/static-webserver/client/source/class/osparc/conversation/Conversation.js Propagate studyId to messages and attach listeners for edit/delete events to refetch messages
services/static-webserver/client/source/class/osparc/conversation/AddMessage.js Extended constructor and layout to support editing existing messages and fire messageEdited
Comments suppressed due to low confidence (3)

services/static-webserver/client/source/class/osparc/conversation/AddMessage.js:39

  • [nitpick] The event commentAdded is inconsistent with the rest of the code that refers to messages; consider renaming it to messageAdded for clarity.
    "commentAdded": "qx.event.type.Data",

services/static-webserver/client/source/class/osparc/study/Conversations.js:97

  • [nitpick] Add JSDoc comments to editMessage and deleteMessage methods explaining parameters and return value for consistency with other client methods.
    editMessage: function(studyId, conversationId, messageId, message) {

services/static-webserver/client/source/class/osparc/study/Conversations.js:97

  • Consider adding unit or integration tests for the new editMessage and deleteMessage client methods to verify correct parameter mapping and error handling.
    editMessage: function(studyId, conversationId, messageId, message) {

Copy link
Collaborator

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

Idea: We can have new type "DELETE_MESSAGE" and you can have updated the type with group_id and the same as we show notification, we can show deleted message :)

@odeimaiz
Copy link
Member Author

@mergify queue

@mergify
Copy link
Contributor

mergify bot commented Jun 23, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 904b669

@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@mergify mergify bot merged commit 904b669 into ITISFoundation:master Jun 23, 2025
60 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants