Skip to content

Add notes fields to work item query

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

Add notes fields to work item query

If the migrations are finished and the new feature flag is enabled, include both notes and notes_internal in the query for each WorkItem

This is MR 3 in a stream of 4. See #15645 (comment 2141977597) for implementation plan.

Changelog: added

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

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

Numbered steps to set up and validate the change are strongly suggested.

  1. In rails console enable the experiment fully
    Feature.enable(:advanced_search_work_item_uses_note_fields)
  2. Perform elasticsearch query for a workitem which will return a query with the notes fields
Edited by Joe Snyder

Merge request reports

Loading