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

Facet visibility #80

Closed
michaelbromley opened this issue Mar 21, 2019 · 1 comment
Closed

Facet visibility #80

michaelbromley opened this issue Mar 21, 2019 · 1 comment

Comments

@michaelbromley
Copy link
Member

There should be a boolean property on Facets which determines whether they are visible via the shop api.

Use case: A facet name "profit margin" with values "highly profitable" etc. is used in the back-end for e.g. Promotion actions or just for internal organization. We might not want to make this info known to the shop customers.

@michaelbromley
Copy link
Member Author

We will use the isPrivate field, just like with Collections.

The following parts of the shop API must omit private Facets / Values:

  • Product.facetValues - via shop-product.resolver.ts
  • ProductVariant.facetValues - via product-variant-entity.resolver.ts
  • SearchResponse.facetValues - via fulltext-search.resolver.ts

michaelbromley added a commit that referenced this issue Apr 26, 2019
michaelbromley added a commit that referenced this issue Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant