Skip to content

Draft: Feat: update agent sessions search

What does this MR do and why?

This MR updates the following to the Agent Sessions searches (in duo side rail, side panel, and the projects page):

  • Adds History to Filtered Search
  • Adds the ability to sort by Status
  • Adds the ability to do a fuzzy search on Titles (all free search is fuzzy search on titles)
  • Adds the ability to do a filtered search on Status Group

References

Related GitLab Issue: #576078

Screenshots or screen recordings

Before After
Screenshot_2025-10-23_at_3.48.26_PM Screenshot_2025-10-23_at_3.11.51_PM
Screen Recording
Screen_Recording_2025-10-23_at_3.10.25_PM

How to set up and validate locally

To Test in Duo Side Rail

  1. Turn on the following feature flags: duo_workflow, duo_workflow_in_ci, ai_flow_triggers and duo_side_rail.
  2. Make sure you are NOT in the new UI
  3. Open Duo Chat and open the Sessions tab (the two overlapping squares icon).
  4. Test search queries (see below for test cases)
  5. If you see no Sessions then run the following query bundle exec rake "gitlab:duo_workflow:populate[50,20,1,<<YOUR_TEST_GROUP_PATH_HERE>>]" to create new agent sessions. Refresh the page.

To Test in Agent Sessions page

  1. Navigate to a project with that has AI features enabled.
  2. In the left side panel, you will see Automate with a tanuki icon. Select Agent sessions from the dropdown.
  3. Test search queries (see below for test cases)

To Test in new UI Side Panel

  1. To test this locally, make sure you have the following FFs enabled: paneled_view, global_topbar, tailwind_container_queriesAfter you can toggle New UI on in user's setting under the user's profile dropdown
  2. Open the side panel and open Sessions.
  3. Test search queries (see below for test cases)

Filter/Sort Testing Steps

Filtering

  1. Select Status Group and use one of the selected values.
  2. Press Enter or click the search icon.
  3. Validate filter works as expected.
  4. If your term was not found, an empty result view should display. You can reset by refreshing the page or clicking the search icon again.

Raw text Search aka Fuzzy Search on Titles

  1. Type in any search term to test raw text search (such as soft dev 58)
  2. Press Enter or click the search icon.
  3. Validate your search term was found (if it existed) or displays the empty result view if not found.

Status Sorting

  1. Go to the ASC/DESC sorting dropdown (on the right or bottom if in panel view) and select a Status and press the up or down icons.
  2. Validate the information has been sorted by the value selected and that pagination works as expected.

Recent History

  1. Select the Recent History icon on the left and select one of the recently searched terms.
  2. Validate term re-appears in the search.

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.

Closes #576078

Edited by Lindsey Shelton

Merge request reports

Loading