Add safe-guard for projects not in the group with AI enabled
What does this MR do and why?
This code changes behaviour of Duo chat in the blob page. If the blob comes from project from Namespace that is not having AI-settings enabled, blob is not added to the prompt.
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.
- On blob page within namespace with AI enabled - ask any question in Duo Chat. Observe prompt in
llm.log
file. - On blob page within namespace without AI enabled - ask any question in Duo Chat. Observe prompt in
llm.log
file. See the difference.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #429358