Change how we consume seats in use in the frontend
This is a technical implementation after our investigation in #361991 (closed)
Technical details
We need to replace this.totalSeatsInUse
method with the use of this.total
.
We want to update specs in subscription_seats_spec.js
to cover the changes.
Steps to reproduce
- Go to any Paid group
- Go to
Settings > Usage Quotas > Seats tab
(http://gdk.test:3000/groups/< group-id >/-/usage_quotas#seats-quota-tab
) - Take note of the seats the paid group is using
- Then go to
Group information > Members
(http://gdk.test:3000/groups/< group-id >/-/group_members
) - Add a new Member
- Go back to the
Usage Quotas
page (http://gdk.test:3000/groups/< group-id >/-/usage_quotas#seats-quota-tab
) - Observe the cards numbers don't change
- After the code change described above, we'll have the real numbers for
Seats in use / Seats in subscription
If you want to see the numbers for Max seats used and Seats owed to update, you'll need to go to rails console
:
subscription = Group.find(108).gitlab_subscription
subscription.refresh_seat_attributes!
subscription.save!
Before code change | After code change | After script above (and adding more members) |
---|---|---|
![]() |
![]() |
![]() |
MR implementing this issue: !103817 (merged)
Edited by Sheldon Led