Index state tracking: Incremental updates
What does this MR do and why?
ff: #561020
test MR: !200497 (diffs)
issue: #554445 (closed)
We need to do incremental updates for git events, such as a merge commit, by running the Indexer
and enqueueing embedding references.
In ee/app/services/ai/active_context/code/initial_indexing_service.rb
, the repository record kicks off initial indexing, which calls the indexer, enqueues refs, and manages state.
For incremental updates, we need to do something similar but not change the states: once a repo is in :ready
state, we don't change states again.
References
Screenshots or screen recordings
Before | After |
---|---|
push to master branch workflow:
merge to master branch workflow:
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #554445 (closed)