You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the review. I followed up on those points in commit 12cb36e727564194cf4adea8d0fbb7d4692da209: the unused FilterActiveUserIds helper and its associated test are removed, so the remaining diff is limited to the intended auth/appstore changes.
Pushed the cleanup. The unrelated appstore helper test is gone now, and the unused FilterActiveUserIds helper/test were already removed in the previous update.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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