Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This discovery details the code changes necessary for the search by phone to work in admin tool, and is based on the solution n. 1 proposed in Search customer by phone in Admin App.

Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

POC

Validate SA market solution

In

Jira Legacy
serverSystem JIRA
serverId255417eb-03fa-3e2f-a6ba-05d325fec50d
keyIPN-31
, Saudi Arabia team are implementing the possibility to sign up by phone, which has some overlaps with the changes needed for admin app. Their solution creates the lookup by phone records in DynamoDB that allow us search the customer by phone.

Result:

After confirming that SA market is deployed in eu-central-1 AWS Region, I could find lookup user records created in Dynamo indexed by phone:

...

With this information, I was able to validate that the search could work in admin app:

...

The user search, either by phone or emails, depends on the pk2 value of the user record in dynamo that necessarily has to have a phone number or an email, for example:

phone number:

...

email:

...

Therefore, we can only search a customer by phone number or email, but not both. Besides this issue, another problem is the update of the phone number. Today the change would only be reflected in user.details.phoneNumber and not in pk2 (check code below), which leads to the search by phone only working with the first number registered.

...