Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Best offer first #1184

Merged
merged 3 commits into from
Mar 23, 2022
Merged

chore: Best offer first #1184

merged 3 commits into from
Mar 23, 2022

Conversation

tlgimenes
Copy link
Contributor

@tlgimenes tlgimenes commented Mar 22, 2022

What's the purpose of this pull request?

Moves computation from the frontend to the backend

How it works?

As stated on this comment, this PR sorts offers by placing the best offers on the first bit of the offers array, allowing us to stop doing this computation on the frontend. This should reduce TBT

How to test it?

Tests included, but also, check the base.store preview: vtex-sites/base.store#411

@tlgimenes tlgimenes marked this pull request as ready for review March 22, 2022 17:22
@tlgimenes tlgimenes requested a review from a team as a code owner March 22, 2022 17:22
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 22, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 33a10f1:

Sandbox Source
Store UI Typescript Configuration

@tlgimenes tlgimenes merged commit 66c8f36 into master Mar 23, 2022
@tlgimenes tlgimenes deleted the chore/backend branch March 23, 2022 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant