NoMethodError: undefined method `with_api_commit_entity_associations' for #<ActiveRecord::Relation []>
https://sentry.gitlab.net/gitlab/gitlabcom/issues/4160420/?referrer=gitlab_plugin
NoMethodError: undefined method `with_api_commit_entity_associations' for #<ActiveRecord::Relation []>
Did you mean? with_api_entity_associations
app/services/search_service.rb:64:in `search_objects'
search_results.objects(scope, page: page, per_page: per_page, preload_method: preload_method)
lib/api/search.rb:68:in `block in search'
@results = search_service.search_objects(preload_method)
lib/api/search.rb:67:in `search'
@search_duration_s = Benchmark.realtime do
lib/api/search.rb:194:in `block (2 levels) in <class:Search>'
present search({ project_id: user_project.id, repository_ref: params[:ref] }), with: entity, current_user: current_user
lib/api/api_guard.rb:219:in `call'
response = super(env)
...
(166 additional frame(s) were not displayed)