Search::IndexRepairService still using Repository index for projects

Summary

Search::IndexRepairService is still referencing the main index. The project data was moved over to a separate index in #344644 (closed)

Steps to reproduce

Note: you need to have Elasticsearch and Advanced search enabled and indexing complete

  1. Open rails console: rails c
  2. Get an existing project: p = Project.last
  3. Kick off the repair service: Search::IndexRepairService.execute(p)
  4. Verify in the logs that the project is queued for indexing because it's not found in the index (it is in the index, so this is the bug)
{
  "severity": "WARN",
  "time": "2023-10-25T19:22:51.599Z",
  "class": "Search::IndexRepairService",
  "message": "project document missing from index",
  "namespace_id": 71,
  "root_namespace_id": 71,
  "project_id": 28
}
{
  "severity": "DEBUG",
  "time": "2023-10-25T19:22:51.608Z",
  "class": "Elastic::ProcessBookkeepingService",
  "redis_set": "elastic:incremental:updates:0:zset",
  "message": "track_items",
  "count": 1,
  "tracked_items_encoded": "[[97,\"Project 28 project_28\"]]"
}

What is the current bug behavior?

  1. Main index is checked by service

What is the expected correct behavior?

  1. Project index is checked by service

Possible fixes

Need to adjust the service to use the project index when checking project status. Also verify the routing used. It looks like routing is no longer utilized in the project index