-
Notifications
You must be signed in to change notification settings - Fork 46
remove DiscreteScopes() from selectors #2036
Conversation
3596227
to
d75ecbc
Compare
2477238
to
ec2182d
Compare
src/internal/operations/backup.go
Outdated
// TODO: should always be 1, since backups are 1:1 with resourceOwners now. | ||
opStats.resourceCount = len(data.ResourceOwnerSet(cs)) | ||
// should always be 1, since backups are 1:1 with resourceOwners. | ||
opStats.resourceCount++ |
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.
nit: is there ever a time we'll need to call BackupOp.Run()
multiple times and have resourceCount > 1? Otherwise it seems easier to grok if it's just opStats.resourceCount = 1
since readers won't need to know the previous value of opStats.resourceCount
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.
Either way works for now. We should probably clean up that tracking to match current behavior in general.
ec2182d
to
20a65f6
Compare
Aviator status
This PR was merged using Aviator. |
PR failed to merge with reason: some CI status(es) failed. |
PR failed to merge with reason: some CI status(es) failed. |
DiscreteScopes is a vestigial func from when scopes contained the list of resource owners to track. That behavior is no longer in use.
4f4c866
to
a8f008d
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
DiscreteScopes is a vestigial func from when scopes contained the list of resource owners to track. That behavior is no longer in use.
Does this PR need a docs update or release note?
Type of change
Issue(s)
Test Plan