Implement 'asked_on_the_same_page' attribute on Duo Chat
requested to merge 443798-implement-is-asked-on-same-page-as-previous-question-attribute-on-duo-chat-user-questions into master
What does this MR do and why?
This MR implements the 'asked_on_the_same_page' Snowplow attribute so that is used for Duo Chat analytics.
This is a followup to this MR: !146131 (merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist.
It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
None
How to set up and validate locally
Check out Mark's awesome video(Gitlab Unfiltered) for help with this.
- Comment out https://gitlab.com/gitlab-org/gitlab/-/blob/6d0b85d8140d296116aa41b8c352639407ad0d41/ee/lib/gitlab/llm/completions/chat.rb#L74
- Ask chat a question
- Observe snowplow-micro for the new attribute If the question was asked on the same page as the previous question, the attribute 'asked_on_the_same_page' should be true. Otherwise, it should be false.
When either the previous question or current question does not have a referer URL, the attribute should not be present in the Snowplow output.
Related to #443798 (closed)
Edited by Lesley Razzaghian