Versions Compared

Key

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

...

Update the admin app to consume this from loyalty API

Add a new backend structure to connect the admin app search user to the loyalty service, using loyalty middleware as a bridge to get the user information from loyalty users table.

Zenuml sequence macro lite
uuid21edafca-167a-456d-9207-3d2ea87845e1
customContentId4737171649
updatedAt2024-05-24T17:37:39Z

Add new graphQl call FE to BE in Admin App.

Add new resolver in BE to consume the Intl Loyalty Middleware service.

Expand
titleDetailed solution

Schemas/Customer

  • Update the Query with the new method customerByLoyaltyId and update graphQl queries

    image-20240521-201830.pngImage Modified

  • Create a new method customerByLoyaltyId inside the Query resolvers section (with the same signature and name of query above)

    image-20240521-200957.pngImage Modified
    • To get the User from Loyalty serivce, can be used this provider

    image-20240522-191903.pngImage Modified

queries/customers

Create a new query inside the customers queries

image-20240522-195309.pngImage Modified

Create a use query for consume the customerByLoyaltyId

image-20240522-194947.pngImage Modified

Add on the map section the new query

image-20240522-195002.pngImage Modified

universal-search/searchInstructions

Add new descriptions to this list for loyalty id

image-20240522-204049.pngImage Modified

The text for loyaltyId already exist in Lokalize, avoiding the necessity of create a new string text.

⚠️Potential Challenges

Was made a POC to map all the challenges and no one appear.

...