Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[API] sorting product by position in taxon#12621

Merged
GSadee merged 2 commits into
Sylius:masterfrom
AdamKasp:sorting-product-by-position-in-taxon
May 12, 2021
Merged

[API] sorting product by position in taxon#12621
GSadee merged 2 commits into
Sylius:masterfrom
AdamKasp:sorting-product-by-position-in-taxon

Conversation

@AdamKasp
Copy link
Copy Markdown
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
License MIT

@AdamKasp AdamKasp added the API APIs related issues and PRs. label May 10, 2021
@AdamKasp AdamKasp requested a review from a team as a code owner May 10, 2021 13:42

$rootAlias = $queryBuilder->getRootAliases()[0];
$queryBuilder
->distinct()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you decided for distinct here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I added innerJoin to products taxons collection, and I want to avoid any duplication of record in response.

@AdamKasp AdamKasp force-pushed the sorting-product-by-position-in-taxon branch from 1023d2d to 957ebb7 Compare May 11, 2021 06:15
Comment thread src/Sylius/Behat/Context/Api/Shop/ProductContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Shop/ProductContext.php Outdated
@AdamKasp AdamKasp force-pushed the sorting-product-by-position-in-taxon branch from 957ebb7 to 8ef2574 Compare May 11, 2021 06:52
@AdamKasp AdamKasp force-pushed the sorting-product-by-position-in-taxon branch from c27bb21 to 45a61db Compare May 12, 2021 07:15
@GSadee GSadee merged commit 2588620 into Sylius:master May 12, 2021
@GSadee
Copy link
Copy Markdown
Member

GSadee commented May 12, 2021

Thank you, Adam! 🥇

@AdamKasp AdamKasp deleted the sorting-product-by-position-in-taxon branch July 19, 2021 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API APIs related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants