Track edit action by snippet editor for usage data
What does this MR do?
In this MR we implement the changes to track the action when the user uses the snippet editor.
But how is that possible? Recently, we introduced the api_user? method in the BaseMutation
class. This method returns false when the user has a session and, therefore, is using the UI. Othewise, it would be a regular query call to GraphQL with a token. That user with the session means that the operation was performed by the UI and, therefore, with the snippet editor.
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Refs #232841 (closed)
Edited by Francisco Javier López (ex-Gitlab)