Skip to content

Id mainline updates#16

Open
michael-gratton wants to merge 13 commits into
mainfrom
id-mainline-updates
Open

Id mainline updates#16
michael-gratton wants to merge 13 commits into
mainfrom
id-mainline-updates

Conversation

@michael-gratton
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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!


def phone
strip_country_code(@object.landline)
strip_country_code(@object.phone_numbers.mobile.first)
Copy link
Copy Markdown
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.


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

Choose a reason for hiding this comment

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

Same here.

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
Copy Markdown
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