Skip to content

insights: don't error on empty repo in commit indexer

Warren Gifford requested to merge insights/empty-repo-commit-error into main

Created by: leonore

closes #37151 (closed)

instead of erroring we mark the repo as successfully last indexed in commit_index_metadata

Test plan

Added unit tests for the new helper and for the function.

Tested on enterprise-codeinsights (before/after): Screenshot 2022-07-01 at 13 46 51 image

and we successfully insert the metadata. image

Merge request reports

Loading