Follow-up from "track tag delete events"
Create a standard mechanism for tracking events in controllers.
The following discussion from gitlab-ce!32381 should be addressed:
-
@grzesiek started a discussion: (+1 comment) I'm not sure if it makes sense to me to inject
track
method everywhere if we want to track something. Is there a reason why we can't use Rails ActionDispatch middlewares or something like this to track a completion of actions? Alternatively is there a mechanism that would allow is to define an aspect of tracking actions that can be define along withbefore_action
definitions, something liketrack_actions [:index, :destroy]
etc?I know that it might be too late to redesign the tracking mechanism better (I don't know who implemented this and how design decisions were made), but before merging this I would like to figure it out
😸