-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
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.
added a comment on the parameter naming, other than that LGTM
@@ -255,7 +255,8 @@ const teams = { | |||
}, | |||
searchTeam: { | |||
organizationId: validationRules.organizationId, | |||
query: requiredString | |||
query: requiredString, | |||
type: Joi.string().optional().allow('default', 'exact') |
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.
the name default for the partial search doesn't sound well to me, maybe pattern
?
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.
Code looks good to me, should there be documentation changes also though?
@dberesford I'll fix conflicts and add docs in a commit and then merge... swagger was updated, but we can put in explicit section i usage? |
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.
LGTM
rather than add a new endpoint, I added an optional type parameter to search, it defaults to our normal search mechanism, but when it is set to type=exact it will perform an exact name search.
we could put the same strategy in place for name search for users endpoint and policy endpoints if approved