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

Accept any query string for externalId #1330

Merged
merged 4 commits into from
Jan 15, 2021

Conversation

smatting
Copy link
Contributor

@smatting smatting commented Jan 14, 2021

This PR will update the behaviour of GET /scim/v2/Users?filter=externalId eq "<x>". Without this PR if <x> is not en email the endpoint will return a 400. With this PR it will return an empty result set.

For context: https://wearezeta.atlassian.net/browse/SQSERVICES-204

Copy link
Member

@jschaul jschaul left a comment

Choose a reason for hiding this comment

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

Any change to the API should also have a test added that makes use of that API functionality to A) document the desired behaviour and B) avoid future regressions.

Copy link
Member

@jschaul jschaul left a comment

Choose a reason for hiding this comment

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

(comment would be nice, otherwise looks good!)

@smatting smatting force-pushed the SQSERVICES-204-external-filter branch from f17f336 to a4899e9 Compare January 14, 2021 18:25
Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

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

approved, but please add the something along the lines of the comment i suggested.

services/spar/src/Spar/Scim/User.hs Show resolved Hide resolved
Co-authored-by: fisx <mf@zerobuzz.net>
@smatting smatting merged commit 9732876 into develop Jan 15, 2021
@smatting smatting deleted the SQSERVICES-204-external-filter branch January 15, 2021 12:48
@smatting smatting mentioned this pull request Jan 15, 2021
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