Repository navigation
Conversation
|
Bito Review Skipped - Source Branch Not Found |
|
Removed the unused FilterActiveUserIds helper and its associated unit test in commit 12cb36e. |
|
Thanks for the review. I followed up on those points in commit |
|
Pushed the cleanup. The unrelated appstore helper test is gone now, and the unused FilterActiveUserIds helper/test were already removed in the previous update. |
8bf1924 to
b5d80e2
Compare
|
Reviewed the latest PR state and the available checks. SonarQube reports a passed quality gate with 0 new issues, 0 accepted issues, and 0 security hotspots. I did not make additional changes because no maintainer action was requested; the Bito review was skipped due to a source-branch lookup issue. A local Go test was not runnable because Go is not installed in this environment. |
…undant-branches-and-queries
|
Thanks for the review @Shivam-nagar23. The unrelated appstore test and unused repository helper/test you flagged have been removed; the current diff is limited to UserCommonService.go and its test. Could you take another look and dismiss the old changes-requested review if the cleanup now addresses your concerns? |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|



Summary of Changes
This PR optimizes role verification logic and adds batch user status filtering:
UserCommonService.go:UserRepository.go:FilterActiveUserIdshelper to batch-filter active users in-memory from user models, avoiding unnecessary round-trips.pkg/auth/user/UserCommonService_test.goto test role evaluation permutations.pkg/auth/user/repository/UserRepository_test.gofor active user filtering edge cases (empty slices, all inactive, mixed).pkg/appStore/installedApp/service/common/AppStoreDeploymentCommonService_test.gocovering deployment validation helpers.Files Changed
pkg/auth/user/UserCommonService.gopkg/auth/user/repository/UserRepository.gopkg/auth/user/UserCommonService_test.gopkg/auth/user/repository/UserRepository_test.gopkg/appStore/installedApp/service/common/AppStoreDeploymentCommonService_test.go