Add MINIMAL_ACCESS user statistics
Summary
As discussed in #342125 (closed), we currently have no visibility into the billing of MINIMAL_ACCESS
members in the User Statistics
Although we include these members in our billable member counts (unless on Ultimate), they're not added to the statistics, e.g.
So, given the following scenario:
Group A has 4 billable members:
- 1 No project or group
- 1 Minimal Access
- 1 Guest
- 1 Maintainer
Visiting their user stats, they'll see a billable total of 4, but only see a breakdown for 3.
Proposal
As confirmed here #342125 (comment 694781105), we should add this user level to the breakdown to add clarity and visibility for billable members.
- Add a new column to the
user_statistics
table forwith_highest_role_minimal_access
- Update the
UserStatistics
model to include this new level - Update the UI to display the count
Considerations
The MINIMAL_ACCESS
role is only available in EE (Premium+) so we should consider conditionally displaying the statistics etc. based on that
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Vijay Hawoldar changed milestone to %Backlog
changed milestone to %Backlog
- Vijay Hawoldar added backend devopsfulfillment featureaddition frontend grouputilization sectionfulfillment workflowblocked + 1 deleted label
added backend devopsfulfillment featureaddition frontend grouputilization sectionfulfillment workflowblocked + 1 deleted label
- Vijay Hawoldar set weight to 2
set weight to 2
- Vijay Hawoldar marked this issue as related to #342125 (closed)
marked this issue as related to #342125 (closed)
- 🤖 GitLab Bot 🤖 added typefeature label
added typefeature label
- Vijay Hawoldar removed the relation with #342125 (closed)
removed the relation with #342125 (closed)
- Author Maintainer
@amandarueda I created this issue to split the effort out of #342125 (closed) as it's more in depth and this part can be handled independently.
I've added a weight of 2 because it has front, backend and DB work.
I suspect the frontend is likely a small change (I think we just need to add a new row here) and can likely be handled by whoever picks this up from backend
Edited by Vijay Hawoldar 1 Collapse replies - Developer
@vij which issue is this work blocked by?
- Author Maintainer
@amandarueda you beat me to updating the label
it's not blocked by anything, I originally thought it maybe blocked by the original issue (#342125 (closed)) but I changed my mind will update the label now! 1 1
- Vijay Hawoldar mentioned in issue #342125 (closed)
mentioned in issue #342125 (closed)
- Amanda Rueda changed milestone to %14.5
changed milestone to %14.5
- Vijay Hawoldar added workflowready for development label and removed workflowblocked label
added workflowready for development label and removed workflowblocked label
- 🤖 GitLab Bot 🤖 added [deprecated] Accepting merge requests label
added [deprecated] Accepting merge requests label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#4942 (closed)
mentioned in issue gitlab-org/quality/triage-reports#4942 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5011 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5011 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5105 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5105 (closed)
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#5172 (closed)
mentioned in issue gitlab-org/quality/triage-reports#5172 (closed)
- Ammar Alakkad assigned to @aalakkad
assigned to @aalakkad
- Ammar Alakkad added workflowin dev label and removed workflowready for development label
added workflowin dev label and removed workflowready for development label
- Ammar Alakkad mentioned in merge request !73651 (merged)
mentioned in merge request !73651 (merged)
- 🤖 GitLab Bot 🤖 removed [deprecated] Accepting merge requests label
removed [deprecated] Accepting merge requests label
- Ammar Alakkad added workflowin review label and removed workflowin dev label
added workflowin review label and removed workflowin dev label
- Developer
I couldn't verify the changes on staging or production because it's under
/admin/stats
but verified locally after it got merged.@amandarueda do we need to verify it on a real self-managed installation? if yes, do you know if we have a way to do it?
Collapse replies - Developer
@aalakkad from gitlab.com staging:
I tried adding a user to a group with minimal access and don't see it in the role dropdown though
- Developer
- Developer
@amandarueda I had the same issue locally, it got resolved after deleting the license then uploading it again
But the good thing is that the new row is showing the table which is the purpose of this issue
Edited by Ammar Alakkad - Developer
Oh great! @aalakkad can you just post a screenshot of your example before closing? If you have any troubles just let me know and I can try it again.
- Developer
On my end it looks like this
admin -> stats adding a member I'm thinking maybe it's like this (stats not updated) because my local instance is using .com features locally, it's not a "pure" self-managed one.
@amandarueda Do you want me to try verifying this on a real testing self-managed instance?
- Developer
- Developer
@amandarueda Yes, the feature got merged on the 12th and will be included in %14.5 once it's released.
- Developer
ok great, let's close the issue for %14.5 in that case @aalakkad. When %14.5 is available, I'll upgrade my SM instance and test it in production. Acknowledging that this is not an ideal workflow, but since it's already merged and risk is low based on your initial tests, I think we can be flexible here.
- Developer
@amandarueda verified on production self-managed instance (using nightly build to get latest changes), thanks to @sheldonled for creating the instance!
- Maintainer
@aalakkad No problem
I'll tear down that instance later today if we don't need it anymore
- Ammar Alakkad added workflowverification label and removed workflowin review label
added workflowverification label and removed workflowin review label
- Amanda Rueda removed backend label
removed backend label
- Amanda Rueda changed milestone to %14.6
changed milestone to %14.6
- Amanda Rueda added missed:14.5 label
added missed:14.5 label
- Amanda Rueda closed
closed
- Amanda Rueda changed milestone to %14.5
changed milestone to %14.5
- Amanda Rueda removed missed:14.5 label
removed missed:14.5 label