Add archived to notes index
What does this MR do and why?
This MR will add a boolean field archived
in the notes
index mapping. This field can be used to hide archived projects' notes from the search result.
Screenshots or screen recordings
How to set up and validate locally
- Open the rails console
bundle exec rails c
- Run the following commands
require_relative 'ee/elastic/docs/20230719142200_add_archived_to_notes.yml'
AddArchivedToNotes.new(20230719142200).migrate
- Check the mapping of the
commits
index
curl -H 'Content-type: application/json' -XGET 'http://localhost:9200/gitlab-development-notes/_mappings' | json_pp
- Make sure there is a field
archived
withtype
asboolean
is present
MR 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 #414905 (closed)
Edited by Ravi Kumar