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

fixing import users script; .include? method implementation throwing errors #56

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ambulatorymerperson
Copy link
Contributor

Link back to Jira ticket:

Description

The .include? method was creating errors in several places. One implementation of it checked to see if a contact method type was sms or phone before adding the country code to the request body. That seemed unnecessary to me, so this version includes the country code by default. The code that determines if a user should be set to observer for a team role used the include method and I changed it to just check if the base role is stakeholder, limited stakeolder, or observer instead of seeing if base role included read_only.

…previously set on the condition that the contact method type was phone or sms, however, the include method was throwing an error and this extra condition seemed redundant. Also fixed how the script defaults to observer for team role
@ambulatorymerperson ambulatorymerperson requested a review from a team February 13, 2023 18:55
@Cylix Cylix marked this pull request as draft February 21, 2023 21:23
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.

1 participant