Replace user.ai_chat_enabled_namespace_ids by allowed_by_namespace_ids for...

What does this MR do and why?

Replace user.ai_chat_enabled_namespace_ids by allowed_by_namespace_ids for request_duo_chat_response

Issue Description

We have same correlation_id for one user request. Now when user enters question in duo_chat, Behind the scene Gitlab backend makes some calls back and forth to AI-Gateway. In this process some events are tracked in gitlab rails and some in ai-gateway with same correlation_id.

In this issue, feature_enabled_by_namespace_ids field is different in one of the internal event tracked in gitlab rails. As it turns out it was fetching those namespaces differently from other tracking calls. This mismatch can lead to reporting errors.

More info - #507389 (closed)

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

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

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Ankit Panchal

Merge request reports

Loading