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

Id mainline updates #16

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Id mainline updates #16

wants to merge 13 commits into from

Conversation

michael-gratton
Copy link
Contributor

Bring the engine up-to-date with current Identity mainline

Copy link
Contributor

@andy-south andy-south left a comment

Choose a reason for hiding this comment

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

Hi Mike. I only really had queries about a few little things. I skimmed through the unit tests, but I assume if they're passing OK then it's most likely all good!

@@ -10,11 +10,11 @@ def nationbuilder_id
end

def phone
strip_country_code(@object.landline)
strip_country_code(@object.phone_numbers.mobile.first)
Copy link
Contributor

Choose a reason for hiding this comment

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

Oopsies. This looks to be the wrong field, but I think you picked it up in a later commit.

end

def mobile
strip_country_code(@object.mobile)
strip_country_code(@object.phone_numbers.landline.first)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

@@ -34,7 +34,7 @@ def self.push_in_batches(sync_id, members, external_system_params)
if sync_type === 'tag'
member_ids.each do |member_id|
member = Member.find(member_id[:identity_id])
member.update_external_id(SYSTEM_NAME, member_id[:nationbuilder_id], {sync_id: sync_id}) if member
member.update_external_id(SYSTEM_NAME, member_id[:nationbuilder_id])
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't we still need an "if member" here? Or member&.update_external_id(...)?

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.

2 participants