VSA table: Change the default sort by to 'Duration time'

Problem to solve

When analyzing the work-stream, VSA users need to know quickly where their time is spent during each stage. They need to detect bottlenecks that are slowing down the SDLC.

Related to this note.

Proposal

Change the default sorting of the VSA table from 'Last event' to 'Duration'.

Current default - by 'Last event':

Screenshot_2023-10-05_at_15.29.10 :

Proposed default - 'Duration':

Screenshot_2023-10-05_at_15.30.42

Implementation Guide

  • Replace the PAGINATION_SORT_FIELD_END_EVENT default setting with the PAGINATION_SORT_FIELD_DURATION:
    • https://gitlab.com/gitlab-org/gitlab/-/blob/8362dce8002bfacdc4876d2c85493abe2cc7513f/app/assets/javascripts/analytics/cycle_analytics/store/mutations.js#L44
    • https://gitlab.com/gitlab-org/gitlab/-/blob/8362dce8002bfacdc4876d2c85493abe2cc7513f/ee/app/assets/javascripts/analytics/cycle_analytics/store/mutations.js#L215
    • https://gitlab.com/gitlab-org/gitlab/-/blob/8362dce8002bfacdc4876d2c85493abe2cc7513f/app/assets/javascripts/analytics/cycle_analytics/store/state.js#L32
    • https://gitlab.com/gitlab-org/gitlab/-/blob/8362dce8002bfacdc4876d2c85493abe2cc7513f/ee/app/assets/javascripts/analytics/cycle_analytics/store/state.js#L48
  • Update related tests
Edited Oct 27, 2023 by Himani Mehra
Assignee Loading
Time tracking Loading