Closed 3rdvision closed 2 years ago
Woof, Woof!
Thank you @SDK slow response when doing setInitialsExtra for submitting the "SDK slow response when doing setInitialsExtra" issue 😎.
Please do not forget to review our internal guidelines:
Description
section, but considered adding other sectionsEngaging in the development process in the best possible way helps it being efficient and fast.
Your friend, Tobias (Platforme's mascot)
This can be solved by implementing a debouncer when doing setInitialsExtra
.
Now this debouncer could be implemented at SDK level and enabled/disabled with a certain timer by default or we just don't implement it and instead pass that responsibility to whoever uses the SDK.
@joamag I'd say this is a point of discussion in tech decision.
discussion
Yes, let's implement it at the SDK level. On top of that let's cancel previous requests when new ones arise if needed.
On top of that let's canceled previous requests when new ones arise, if needed.
That one is already implemented
Ok, going ahead with the debouncer implementation at SDK level for the setInitialsExtra
.
@3rdvision Is this story ready for QA? If so, please update the Kanban board 😄
@msp-platforme Deployed and ready to test at https://ripe-white-now.platforme.com/?context=saint_laurent_hoodie
We no longer see the first character being rendered first, and then rendering the rest of the inserted characters. In that regard, the expectation is met. Speed performance still is not ideal, @3rdvision will see what else can be done.
Description
SDK takes too long to update images when calling for several
setInitialsExtra
.In practice ripe-white takes much longer - more than 2x the amount of time - than RIPE API to render an image after user initials requests.
I believe this has to do with SDK's implementation to cancel old requests - it's not working as expected.
Please watch the videos below.
Expected vs. Observed
Repro Steps
Videos
From RIPE White
https://user-images.githubusercontent.com/24736423/154675074-28cfaf4d-8b71-4693-a583-aaf27e82d030.mp4
From YSL's Website
https://user-images.githubusercontent.com/24736423/154671733-9ef37962-0f57-49fe-8a61-95b511df74c7.mp4