Add policy_auto_dismissed field to Vulnerabilities ES index
What does this MR do and why?
This MR adds the policy_auto_dismissed field to Vulnerabilities ES index.
References
Related to: #581391
Screenshots or screen recordings
How to set up and validate locally
-
Follow the ES installation instructions first.
Enable and set up Elasticsearch: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/elasticsearch.md?ref_type=heads
-
Verify that the Elasticsearch mapping includes the
policy_auto_dismissedfieldRun the following command in your terminal to check the field mapping for vulnerabilities in Elasticsearch:
curl -s "http://localhost:9200/gitlab-development-vulnerabilities-*/_mapping?pretty" | grep -A5 policy_auto_dismissedExpected output:
"policy_auto_dismissed" : { "type" : "boolean" },
This confirms that the policy_auto_dismissed field is correctly indexed and available for use in vulnerability documents.
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.
