You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@allura.apache.org by Dave Brondsema <da...@brondsema.net> on 2015/08/11 21:53:56 UTC

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-



---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** open
**Milestone:** unreleased
**Labels:** phone sf-current sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Tue Aug 11, 2015 07:53 PM UTC
**Owner:** nobody


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-

Posted by Dave Brondsema <da...@brondsema.net>.
- **status**: in-progress --> review
- **Comment**:

fix in forge-classic:db/7960 (it only is needed there, and best way to tighten things up was there too)



---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** review
**Milestone:** unreleased
**Labels:** phone sf-current sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Aug 13, 2015 10:40 AM UTC
**Owner:** Dave Brondsema


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-

Posted by Dave Brondsema <da...@brondsema.net>.
- **labels**: phone, sf-current, sf-1 --> phone, sf-1



---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** closed
**Milestone:** unreleased
**Labels:** phone sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Aug 13, 2015 03:12 PM UTC
**Owner:** Dave Brondsema


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-

Posted by Igor Bondarenko <je...@gmail.com>.
- **status**: review --> closed



---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** closed
**Milestone:** unreleased
**Labels:** phone sf-current sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Aug 13, 2015 03:01 PM UTC
**Owner:** Dave Brondsema


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-

Posted by Dave Brondsema <da...@brondsema.net>.
- **status**: open --> review
- **assigned_to**: Dave Brondsema
- **Comment**:

db/7960



---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** review
**Milestone:** unreleased
**Labels:** phone sf-current sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Tue Aug 11, 2015 07:53 PM UTC
**Owner:** Dave Brondsema


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-

Posted by Igor Bondarenko <je...@gmail.com>.
Looks good! One minor issue, though. The edge of the overlay cuts out a part of submit button with long error message (see attachment).


Attachments:

- [phone-overlay.png](https://forge-allura.apache.org/p/allura/tickets/_discuss/thread/af25341f/d2c3/attachment/phone-overlay.png) (23.9 kB; image/png)


---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** review
**Milestone:** unreleased
**Labels:** phone sf-current sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Aug 13, 2015 10:27 AM UTC
**Owner:** Dave Brondsema


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-

Posted by Igor Bondarenko <je...@gmail.com>.
- **status**: review --> in-progress



---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** in-progress
**Milestone:** unreleased
**Labels:** phone sf-current sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Thu Aug 13, 2015 10:40 AM UTC
**Owner:** Dave Brondsema


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

[allura:tickets] #7960 clean_phone_number function is too eager to prepend 1-

Posted by Igor Bondarenko <je...@gmail.com>.
- **Reviewer**: Igor Bondarenko



---

** [tickets:#7960] clean_phone_number function is too eager to prepend 1-**

**Status:** review
**Milestone:** unreleased
**Labels:** phone sf-current sf-1 
**Created:** Tue Aug 11, 2015 07:53 PM UTC by Dave Brondsema
**Last Updated:** Wed Aug 12, 2015 10:27 PM UTC
**Owner:** Dave Brondsema


`clean_phone_number` will prepend 1- to any 10-digit number, in an attempt to help fix a US number that is missing the international prefix.  However, there are valid 10-digit numbers that aren't US numbers, they are complete numbers including prefix for their own country.

One idea to make it better would be to not do the "1-prepend" to a number if it starts with "+" already (since that indicates a country code is included).  Another option is to not do the "1-prepend" at all, and when the service provider comes back with an error, then we suggest to the user that they might need to prepend "1-" if they are entering a US number.




---

Sent from forge-allura.apache.org because dev@allura.apache.org is subscribed to https://forge-allura.apache.org/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://forge-allura.apache.org/p/allura/admin/tickets/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.