Skip to content

Fix usage_data.rb yard tag for track_usage_event

What does this MR do and why?

The yard @param tag for Gitlab::Utils::UsageData#track_usage_event is incorrect, it accepts a Symbol as well as a String.

This causes false positive Code Inspect errors in RubyMine for code which calls this method.

Screenshots or screen recordings

Screenshot_2023-06-25_at_1.34.17_AM

How to set up and validate locally

Open ee/app/graphql/mutations/remote_development/workspaces/update.rb and see that RubyMine Inspect Code no longer shows the above error.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Chad Woolley

Merge request reports

Loading