Skip to content

Add action_name to AI response subscription

Nicolas Dular requested to merge nd/add-action-name-to-subscription into master

What does this MR do and why?

Related issue: #420296 (closed)

Add action_name to AI response subscription

So far we filtered the aiCompletionResponse subscription down by userId, and resourceId. However, when two different features use the same resourceId (e.g. when both features are on the same page), both features were received the subscription response.

This lead to issues where a user sees the response from e.g. the chat in the "View Summary" AI feature.

To mitigate the problem, we're adding the actionName as an additional filter for the subscription. This way, two features on the same page would no longer receive the responses from each other.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Nicolas Dular

Merge request reports