-
Notifications
You must be signed in to change notification settings - Fork 72
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
Query value seems to be ignored #108
Comments
I figured it out, it's because the search-result app uses the Context from vtex.store if that's available. I created a new page without the context, then the StoreFront settings are being passed as props to the GraphQL query component and it's working as intended. |
Hi @hapoza, thanks for opening the issue. In fact these schema properties should only be shown in storefront if the app is outside the context you mentioned. |
@rerissondaniel Then it's a different bug, they are being shown when the Context is present. Check this store, it is a vanilla implementation of dreamstore, no code customization was done: https://avanti.myvtex.com/admin/cms/storefront It does show the inputs for Query, Map and others when accessing a page that's within SearchContextProvider. Should I create a new issue? |
@hapoza Yes, but it causes the misunderstanding that made you open this issue. I'm looking into it, but I don't know if that will be possible to solve right now, because the props that are coming to |
We're also facing this problem with the querystrings. |
This issue is referring to dreamstore themes (that used version 1.x of this app). We are migrating our legacy dreamstores to store-theme, but the "issue" still happens on the latest version (if the page has a SearchContext, storefront configs are not used). If we create a template that doesn't have the context, it works as intended. |
Expected Behavior
The app should respect the options provided to StoreFront, like "Query" and "Other Query Strings".
Current Behavior
If I go to StoreFront and type a valid query on the input, when I access the URL that I created a configuration for, it does not load the results with the query that was filled on storefront.
The prop does show up on ReactDevTools when inspecting the SearchResultQueryLoader component, inside
props.querySchema
asqueryField
andrestField
.Doing the same exact query on the API works, example
/api/catalog_system/pub/products/search/whatever?map=ft&fq=productClusterIds:137
Possible Solution
N/A
Steps to Reproduce (for bugs)
fq=productClusterIds:{{cluster id}}
Context
I'm trying to create an URL that loads an specific collection, like it is possible to do on CMS, by creating the URL and attributing a product cluster to it
Your Environment
The text was updated successfully, but these errors were encountered: