Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Conversation

sethvargo
Copy link
Contributor

@sethvargo sethvargo commented Nov 24, 2020

@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Nov 24, 2020
}

if realm, err = c.db.FindRealm(realmID); err != nil {
scopes = append(scopes, database.WithAuditRealmID(realmID))
Copy link
Contributor

Choose a reason for hiding this comment

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

realm, err = c.db.FindRealm(realmID)
scopes = append(scopes, database.WithAuditRealmID(realm.ID))

I think this would be the same without needing interface{} params necessarily

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, but that adds another db call and I think it leaks the existence of a realm

@sethvargo sethvargo changed the title Accept string ids or raw ids as input to realm scope Lookup realm before passing in ID Nov 24, 2020
@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit 2f07582 into main Nov 24, 2020
@google-oss-robot google-oss-robot deleted the sethvargo/intconv branch November 24, 2020 19:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants