513512 - Persist namespace_path in duo_chat_events
What does this MR do and why?
We support namespace_path
for code suggestions on DB level, however we don't send this information from our IDE extensions nor we process it on our backend. We need this information to properly link merge requests to specific code suggestion usages.
sks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
-
Make an API call to
track_event
endpointcurl http://localhost:3000/api/v4/usage_data/track_event -X POST -H "Authorization: Bearer glpat-REPLACE_ME" -H 'Content-Type: application/json' -d '{"event": "code_suggestion_shown_in_ide", "project_id": REPLACE_ME, additional_properties": {"language": "javascript", "suggestion_size": 12, "timestamp": "2025-02-06 14:51:00 UTC"}}'
-
In Rails console:
Ai::CodeSuggestionEvent.last
Should have a record like that for an event that just got created:
Related to #513512 (closed)