-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: grant dormancy check #56
Conversation
|
||
s.logger.Info(fmt.Sprintf("getting active grants for provider %q", provider.URN)) | ||
grants, err := s.List(ctx, domain.ListGrantsFilter{ | ||
Statuses: []string{string(domain.GrantStatusActive)}, // TODO: evaluate later to use status_in_provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on the todo here and add a detailed comment if we are picking it up later.
func isSubset(subset, superset []string) bool { | ||
checkset := make(map[string]bool) | ||
for _, element := range subset { | ||
checkset[element] = true | ||
} | ||
for _, element := range superset { | ||
if checkset[element] { | ||
delete(checkset, element) | ||
} | ||
} | ||
return len(checkset) == 0 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test cases for this module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Co-authored-by: sushmith <[email protected]>
db52a8b
to
4f30781
Compare
requested changes already made previously
No description provided.