The source project of this merge request has been removed.
Don't enable metrics if in a Rake task
What does this MR do?
Disables metrics when run from Rake
Are there points in the code the reviewer needs to double check?
Is an environment variable appropriate for this? There doesn't seem to be a built-in way to detect rake
Why was this MR needed?
Metrics relies on the ApplicationSetting
database model, which is inappropriate when running, e.g., rake db:migrate
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
What are the relevant issue numbers?
Edited by Nick Thomas