Skip to content

Make phone number non-editable LG-1722#3253

Merged
achapm merged 19 commits intomasterfrom
no-phone-edit-LG-1722
Sep 9, 2019
Merged

Make phone number non-editable LG-1722#3253
achapm merged 19 commits intomasterfrom
no-phone-edit-LG-1722

Conversation

@cpbgsa
Copy link
Contributor

@cpbgsa cpbgsa commented Sep 3, 2019

No description provided.

@cpbgsa cpbgsa marked this pull request as ready for review September 4, 2019 16:27
in_array(PhoneNumberCapabilities::INTERNATIONAL_CODES.keys)
end

it 'validates that the number matches the requested international code' do
Copy link
Contributor

Choose a reason for hiding this comment

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

Some of these tests still look useful. What is the reason for removing them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed by mistake. Re-added.

bypass_sign_in current_user
else
render_edit
render :edit
Copy link
Contributor

Choose a reason for hiding this comment

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

not covered

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added test

return true if phone_configuration&.delivery_preference != otp_delivery_preference
return true if otp_make_default_number && !default_phone_configuration?
false
user.phone_configurations.map(&:phone).include?(phone)
Copy link
Contributor

Choose a reason for hiding this comment

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

not covered

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@cpbgsa cpbgsa requested a review from jmhooper September 9, 2019 14:24
Copy link
Contributor

@achapm achapm left a comment

Choose a reason for hiding this comment

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

👍 Great work Clara. Looks like you covered everything I remember from our last review.

@achapm achapm merged commit 1eb1622 into master Sep 9, 2019
@achapm achapm deleted the no-phone-edit-LG-1722 branch September 9, 2019 21:12
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.

4 participants