Send archived value to the indexer
What does this MR do and why?
This MR will send a --archived flag to the indexer if the migration add_archived_to_wikis is already finished. The value of the flag will be true if the project is archived and false if the project is not archived.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After | 
|---|---|
How to set up and validate locally
- Ensure the elastic search is enabled in the GDK.
- Create a new wiki
- To simulate the migration is not finished, do an early return falsehere if the name equals toadd_archived_to_wikis
      def migration_finished?(name)
        return false if name == :add_archived_to_wikis
        ::Elastic::DataMigrationService.migration_has_finished?(name)
      end- Verify wikis in the elastic that the archivedattribute is not present
- Now run the migration
bundle exec rake gitlab:elastic:index- 
Now create a new wiki in some project 
- 
Verify the wiki in the elastic that the archivedattribute is present. And the value must befalse
- 
Change the ridvalue with the project id in which you have added the commit
curl -XGET "http://localhost:9200/gitlab-development-wikis/_search" -H "kbn-xsrf: reporting" -H "Content-Type: application/json" -d'
{
 "query": {
   "match": {
     "rid": 7
  }
 }
}' | json_ppMR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
- 
I have evaluated the MR acceptance checklist for this MR. 
Related to #416248 (closed)
Related to Send the archived value from Gitlab to the indexer (#417741 - closed)