Skip to content

Fix arguments error for metrics rake file

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

Fix args error for seed metrics rake file - ee/lib/tasks/gitlab/seed/metrics.rake

ERROR

bundle exec rake 'gitlab:seed:development_metrics[68]'

rake aborted!
ArgumentError: wrong number of arguments (given 4, expected 3)
/Users/grace/gitlab-development-kit/gitlab/app/models/repository.rb:814:in `create_file'
/Users/grace/gitlab-development-kit/gitlab/ee/lib/tasks/gitlab/seed/metrics.rake:46:in `block (3 levels) in <main>'
/Users/grace/.asdf/installs/ruby/3.2.3/bin/bundle:25:in `load'
/Users/grace/.asdf/installs/ruby/3.2.3/bin/bundle:25:in `<main>'
Tasks: TOP => gitlab:seed:development_metrics
(See full trace by running task with --trace)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Grace Chung

Merge request reports