Skip to content

Group Feature in git-compilance-checker

Dasari Akshaya requested to merge akshaya into dev

###What does this MR do?

This merge request adds a feature to show the number of groups a GitLab user belongs to in the User Profile Overview section. It uses the user’s access token to fetch group membership and displays the count in the existing UI without changing the layout.

###Motivation / Use Case

Earlier, the User Profile Overview did not correctly show group information or relied on APIs that were not working reliably. This feature helps users quickly understand which and how many groups they are part of, using their own GitLab access token with read_api permission.

###Implementation Notes

Group data is fetched using the GitLab REST API endpoint: GET /groups?membership=true

The feature uses username + user access token for authentication.

Existing UI layout is preserved; only the Groups count is updated dynamically.

No old or deprecated APIs are used.

Projects, issues, and merge request counts are intentionally left as N/A.

###How to Test

Pull this branch.

Activate the virtual environment.

Run:

streamlit run app.py

Open the app in the browser.

Go to User Profile Overview.

Enter a valid GitLab username and a personal access token with read_api.

Click Fetch User Groups.

Verify that:

Group count is shown correctly.

Group list is displayed.

UI layout remains unchanged.

###BEFORE

Screenshot_from_2026-02-08_10-39-31

AFTER

Screenshot_from_2026-02-10_14-24-03Screenshot_from_2026-02-10_14-24-07

###Checklist

Feature is documented (via MR description)

Code is clean and readable

No breaking changes

Feature tested locally

Edited by Dasari Akshaya

Merge request reports

Loading