wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.98k stars 1.32k forks source link

ccTLD registration occasionally fails #18452

Open ovitrif opened 1 year ago

ovitrif commented 1 year ago

See internal ref: pc8HXX-ZF-p2#comment-812 @ point 6

Expected behavior

Country Code Top-Level Domains (ccTLD) are registered error-free, like the common well-known TLDs.

Actual behavior

We're occasionally getting failures when some ccTLD are registered via the app. For example, in the case of Canadian domains (ie. .ca) the failures occur because the 'Canadian presence' field is missing.

.ca example in Calypso

Steps to reproduce the behavior

Note The idea is to short-circuit the checkout web-view since the domain costs $0, but that’s where we do the contact validation so if we skip it we don’t get the additional data.

  1. Register a new account and create a new site
  2. Purchase just a plan to your site (without domain)
  3. Try to register a domain on that site via the mobile app
  4. 💥 Notice there is an error in the internal system
ovitrif commented 1 year ago

Had a discussion with the team owning the backend side of domains [int. ref: p1685113632812939/1684852958.979399-slack-C0BNMNMNG]. The conclusion was to remove this specific flow from the mobile apps, since it's a bit more complicated to get right and we don't have the infrastructure at the moment to let the server side inform clients which requirements are specific to the selected country-code TLD.

I can work on the Android 'fix' during the next maintenance rotation, there's no rush to fix this at the moment.