-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(cb2-12001): paginate AD results for test users #27
Conversation
src/aad/getMemberDetails.ts
Outdated
let users = response.data.value | ||
|
||
while (response.data['@nextlink']) { | ||
const nextlink = response.data['@nextlink'].replace('accountEnabled+eq+true', 'accountEnabled eq true') |
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.
This pretty ugly line is because the nextlink value that MS sends back from AD converts the spaces to + signs. The plus signs then in turn break the filter (which would mean we'd only ever do the first fetch).
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.
I love microsoft
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.
Is there a unit test in here that validates that the + are replaced?
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 unit test added in the last commit verifies it implicitly
src/aad/getMemberDetails.ts
Outdated
let users = response.data.value | ||
|
||
while (response.data['@nextlink']) { | ||
const nextlink = response.data['@nextlink'].replace('accountEnabled+eq+true', 'accountEnabled eq true') |
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.
I love microsoft
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.
I LOVE MICROSOFT
Paginate tester results from AD
adds pagination when fetching tester results from AD
link to ticket number
Checklist