WorkItem Elastic reference
Compare changes
Files
28@@ -12,19 +12,51 @@ module IssuesSearch
Adds a new Elastic Reference and a new index for WorkItems.
ee/elastic/migrate/20240501134252_create_work_items_index.rb
creates the index using the mappings and settings in ee/lib/search/elastic/types/work_item.rb
ee/lib/gitlab/elastic/helper.rb
is updated to look for a definition in ee/lib/search/elastic/types/
, otherwise fallback to the proxies.ee/lib/search/elastic/references/work_item.rb
creates the reference for work items.
safely_read_attribute_for_elasticsearch(target, attr_name)
from InstanceProxyUtil
so we can use it for as_indexed_json
Please evaluate this MR against the MR acceptance checklist.
Elastic::MigrationWorker.new.perform
Elastic::ProcessBookkeepingService.new.execute
Related to #457724 (closed) and #454046 (closed)