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

add prefixes to lookup metrics #477

Merged
merged 1 commit into from
Mar 14, 2022
Merged

Conversation

ecordell
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the area/dispatch Affects dispatching of requests label Mar 11, 2022
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Mar 11, 2022
@ecordell ecordell requested a review from jakedt March 11, 2022 21:05
@ecordell ecordell marked this pull request as ready for review March 11, 2022 21:05
return ld.lookupHandler.LookupViaChecks(ctx, validatedReq)
}

return ld.lookupHandler.Lookup(ctx, validatedReq)
}

func prefix(namespace string) (prefix string) {
Copy link
Member

Choose a reason for hiding this comment

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

We must have some code for this somewhere...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't see anything that assumed the namespace string had already been validated like it is here

return ld.lookupHandler.LookupViaChecks(ctx, validatedReq)
}

return ld.lookupHandler.Lookup(ctx, validatedReq)
}

func prefix(namespace string) (prefix string) {
parts := strings.Split(namespace, "/")
Copy link
Member

Choose a reason for hiding this comment

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

SplitN

@ecordell ecordell merged commit 6909fdc into authzed:main Mar 14, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/dispatch Affects dispatching of requests area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants