Add indexed_at and schema_version to KG replica

What does this MR do and why?

Adds indexed_at and schema_version to KG replica. Knowledge graph schema version is also stored for each zoekt node: then we can periodically check for KG replicas which have version smaller than zoekt node KG version and schedule re-index of the repository (see gitlab-org/rust/knowledge-graph#9 (comment 2625512872) for details).

zoekt-indexer counterpart MR which will be merged later: gitlab-zoekt-indexer!570 (merged)

References

Related to #548463 (closed)

Related to gitlab-org/rust/knowledge-graph#9 (comment 2625512872)

Screenshots or screen recordings

Before After

How to set up and validate locally

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.

Edited by Jan Provaznik

Merge request reports

Loading