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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
POC
Validate SA market solution
In
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
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.
...