Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

feat(client): filters handler for store-api #740

Merged
merged 5 commits into from
May 14, 2020

Conversation

mkucmus
Copy link
Collaborator

@mkucmus mkucmus commented May 13, 2020

Changes

Adds the possibility of filtering within product-listing endpoint.

Checklist

@vercel
Copy link

vercel bot commented May 13, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/shopware-pwa/shopware-pwa-docs/9zdmcy4qq
✅ Preview: https://shopware-pwa-docs-git-feat-filters-converter-for-store-api.shopware-pwa.now.sh

@vercel vercel bot temporarily deployed to preview May 13, 2020 22:03 Inactive
@vercel vercel bot temporarily deployed to preview May 13, 2020 22:11 Inactive
@mkucmus mkucmus marked this pull request as ready for review May 13, 2020 22:12
@mkucmus mkucmus requested a review from patzick May 13, 2020 22:25
@github-actions
Copy link

💙 shopware-pwa-canary successfully deployed at https://c58c0a0410b50f5a36eee27619b3db7acc736262.shopware-pwa-canary.preview.storefrontcloud.io

@@ -74,7 +77,16 @@ export const convertSearchCriteria = (
}

if (filters && filters.length) {
params.filter = filters;
// append filters in store-api style using convertToStoreApiFilters
if (apiType && apiType === ApiType.store) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

could be just

Suggested change
if (apiType && apiType === ApiType.store) {
if (apiType === ApiType.store) {

@patzick patzick merged commit 5a1fac1 into master May 14, 2020
@patzick patzick deleted the feat/filters-converter-for-store-api branch May 14, 2020 07:33
@patzick patzick added this to the v0.1.0 milestone May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants