Update seat utilization page to use duo start and end dates
What does this MR do and why?
This change updates how GitLab Duo subscription dates are displayed in the admin interface. Instead of using the general license subscription dates, the code now specifically uses the Duo add-on's start and end dates. The main modifications:
- In the seat utilization page, renamed parameters from generic subscription dates to Duo-specific dates
- Updated the controller to fetch Duo add-on purchase dates instead of general license dates
- Simplified the date display logic in the info card component by directly using the Duo add-on dates rather than conditionally choosing between different date sources
- Updated tests to reflect these changes
This change makes the displayed dates more accurate for GitLab Duo subscriptions by showing when the Duo add-on specifically starts and ends, rather than the dates of the overall license subscription.
References
Screenshots or screen recordings
Subscription setup
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Purchase a Self-managed subscription and link license to your local gitlab
- Purchase a GitLab Duo subscription with different dates to your self-managed instance
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.
Related to #514283 (closed)
Edited by Minahil Nichols