Skip to content
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

Merged
merged 20 commits into from
Aug 16, 2023
Merged

feat: grant dormancy check #56

merged 20 commits into from
Aug 16, 2023

Conversation

rahmatrhd
Copy link
Member

No description provided.

api/handler/v1beta1/activity.go Show resolved Hide resolved
core/grant/service.go Outdated Show resolved Hide resolved
cli/job.go Show resolved Hide resolved

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
Copy link
Collaborator

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.

core/grant/service.go Show resolved Hide resolved
plugins/providers/bigquery/activity.go Show resolved Hide resolved
plugins/providers/bigquery/model.go Outdated Show resolved Hide resolved
plugins/providers/bigquery/model.go Outdated Show resolved Hide resolved
plugins/providers/bigquery/provider.go Outdated Show resolved Hide resolved
Comment on lines +650 to +676
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
}
Copy link
Collaborator

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

core/grant/service.go Show resolved Hide resolved
@mabdh mabdh self-requested a review August 16, 2023 07:19
@rahmatrhd rahmatrhd dismissed bsushmith’s stale review August 16, 2023 07:23

requested changes already made previously

@rahmatrhd rahmatrhd merged commit 9f36481 into main Aug 16, 2023
7 checks passed
@rahmatrhd rahmatrhd deleted the dormant-access-revocation branch September 8, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants