Problem
In the flow of delivery, in the moment of open cart and calculate the price with the function priceOrder
the app can take some fees in the fulfillment-service
through of some Features Flags on Launch Darkly. But at the moment the flow arrive in the delivery-service
in the function applyQuote
where they use one of two flows, Bringg or Partner.
In case use the Partner flow, the partner removes some values of Fees, putting the value zero. And in case use the Bringg flow, the system gets the values on Launch Darkly again.
Current flow
Currently, the flow for partners return only fees fixed in the code, and these fees are zero.
Solution
For this solution, we can use two options:
1 - Create a new function in the partners-dispach
to get the values of features flags on Launch Darkly.
2 - Create a new function to get the values of features flags on Launch Darkly, and use the same function in Bringg and Partners flow, in this case we need to change the flow of Bringg as well.
Question
We have some features flags with fees, are we going to use these flags or create a new?
R: Use the same flags.
0 Comments