Skip to content

sa: getAuthorizationStatuses checks results#8726

Open
jsha wants to merge 3 commits intomainfrom
checkvalidities
Open

sa: getAuthorizationStatuses checks results#8726
jsha wants to merge 3 commits intomainfrom
checkvalidities

Conversation

@jsha
Copy link
Copy Markdown
Contributor

@jsha jsha commented Apr 22, 2026

If this function gets fewer responses than expected, that means some of the authorizations were deleted before their containing order expired (or were never written due to a bug). Error out.

Fix a test that fails with this extra check in place.

If this function gets fewer responses than expected, that means some of the
authorizations were deleted before their containing order expired (or were never
written due to a bug). Error out.

Fix a test that fails with this extra check in place.
@jsha jsha marked this pull request as ready for review April 22, 2026 23:06
@jsha jsha requested a review from a team as a code owner April 22, 2026 23:06
@jsha jsha requested a review from beautifulentropy April 22, 2026 23:06
Comment thread sa/model.go Outdated
Comment thread sa/model.go
Comment thread sa/sa_test.go Outdated
@beautifulentropy beautifulentropy self-requested a review May 7, 2026 17:42
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

@jsha, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

Comment thread sa/sa.go
Comment on lines +590 to +599
func containsDuplicates(ids []int64) bool {
seen := make(map[int64]bool, len(ids))
for _, id := range ids {
if seen[id] {
return true
}
seen[id] = true
}
return false
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we could do the same thing with slices.Contains().

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