Subscription dates not set in GitLab Duo Usage page
Summary
On the groups/:group_id/-/settings/gitlab_duo_usage page, the Subscription start date and Subscription end date fields in the information card on the right display Not available. However, these fields contain the correct dates in the same information card on groups/:group_id/-/usage_quotas#code-suggestions-usage-tab.
Steps to reproduce
- Create a new user with a new group.
- Add a Premium or Ultimate subscription with a Duo Pro add-on.
- Navigate to
groups/:group_id/-/settings/gitlab_duo_usage.
What is the current bug behavior?
On the groups/:group_id/-/settings/gitlab_duo_usage page, the Subscription start date and Subscription end date fields in the information card on the right display Not available instead of the correct dates.
What is the expected correct behavior?
On the groups/:group_id/-/settings/gitlab_duo_usage page, the Subscription start date and Subscription end date fields in the information card on the right should display the subscription start and end dates.
Relevant logs and/or screenshots
View of groups/:group_id/-/settings/gitlab_duo_usage:
View of groups/:group_id/-/usage_quotas#code-suggestions-usage-tab:
Possible fixes
It seems like code_suggestions_info_card.vue - which is shared between the two URLs mentioned in this issue - is not receiving a start date from the expected sources. This can be seen in the startDate computed method where neither this.subscription is received from the GraphQL request, nor this.subscriptionStartDate from the injected mechanism. We should investigate why these values are not being set on this page.

