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 send_completion_email and upsert params for importUsers #270

Merged
merged 8 commits into from
Oct 23, 2018
Merged

Add send_completion_email and upsert params for importUsers #270

merged 8 commits into from
Oct 23, 2018

Conversation

Floppy
Copy link
Contributor

@Floppy Floppy commented May 31, 2018

Bringing in @mikemeerschaert's parameter changes from #243 and adding tests.

@luisrudge
Copy link
Contributor

are the default values the same as the server?

@Floppy
Copy link
Contributor Author

Floppy commented Jun 1, 2018

I thought they were, but https://auth0.com/docs/api/management/v2#!/Jobs/post_users_imports doesn't seem to actually list any defaults. Maybe there shouldn't be a default.

@luisrudge
Copy link
Contributor

Yeah, let's not add defaults for this params.

1 similar comment
@luisrudge
Copy link
Contributor

Yeah, let's not add defaults for this params.

@mikemeerschaert
Copy link
Contributor

In my PR i set it to true because on this page: https://auth0.com/docs/users/migrations/bulk-import

it states

send_completion_email - A boolean value which when set to true, sends a completion email to all tenant owners when the job is finished. The default is true, so you must explicitly set this parameter to false if you do not want emails sent.

in fact, the original reason I added the parameter for myself in the SDK is because while developing i was getting emails every time i tested it, so i wanted to be able to turn those off.

@luisrudge
Copy link
Contributor

Ok, cool. What about upsert?

@mikemeerschaert
Copy link
Contributor

Upsert should default to false. (as it does in this PR)

From that same page:

Upsert - A boolean value, false by default. If it is false, users will only be inserted. If there are already user(s) with the same emails as one or more of those being inserted, they will fail. If this value is set to true and the user being imported already exists, the user will be updated with the new information.

@luisrudge
Copy link
Contributor

ok that's perfect. please rebase and I'll merge

@Floppy
Copy link
Contributor Author

Floppy commented Jun 5, 2018

Thanks @mikemeerschaert I thought they were default but was looking in the wrong place. Fixing conflicts now.

@Floppy
Copy link
Contributor Author

Floppy commented Oct 18, 2018

this is ready to go, any chance of a merge?

@luisrudge luisrudge merged commit bcc359c into auth0:master Oct 23, 2018
@luisrudge luisrudge changed the title add send_completion_email and upsert params for importUsers Add send_completion_email and upsert params for importUsers Oct 23, 2018
@luisrudge
Copy link
Contributor

Sorry about the wait! I'll cut a new release this week 🎉

@Floppy Floppy deleted the extra-import-params branch October 30, 2018 11:57
@luisrudge luisrudge added this to the v2.14.0 milestone Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants