Skip to content

Implement force for wiki indexing

Ravi Kumar requested to merge 410190-use-force-true-when-index-wikis into master

What does this MR do and why?

Implementing the force option in ElasticWikiIndexerWorker. Sending force: true when the project needs backfilling.

How to set up and validate locally

  1. Update permission of a project with wiki
  2. And confirm in Elastic that the visibility_level in the wiki index gets updated correctly
curl -H 'Content-type: application/json' -XGET 'http://localhost:9200/gitlab-development-wikis/_search'
  1. Move a project to different namespace.
  2. And confirm in Elastic with the above command that the traversal_ids in the wiki index gets updated correctly

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #410190 (closed)

Edited by Ravi Kumar

Merge request reports