Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Expose catalog configuration data as a new info query type. #535

Closed
@zetlen

Description

@zetlen

Description (*)

Exposure of catalog configuration data as a catalogInfo query type.

Expected behavior (*)

The data whose defaults are set in Magento_Catalog/etc/config.xml and whose overrides can be set in the database should be available for query, in order to configure, build, and deploy Progressive Web Apps which honor that configuration.

Benefits

Unlike most other PWAs, PWA Studio and Venia aim to be as controllable by the Magento 2 admin UI as possible. If the administrator sets a new default for any of these fields, a PWA should do its best to honor that. Most of the time, that requires making a large query to the store instance while rendering the PWA, so things like pagination defaults and URL suffixes can be built into the runtime.

Additional information

This issue came up when the PWA team examined how to treat URL suffixes for SEO-friendly catalog URLs. Initially, we simply hardcoded the standard .html extension to check for pages which we need to dynamically route with a GraphQL query to urlResolver. There are two problems with that:

  • CMS pages and other custom pages need not have the .html extension
  • The actual extension is configurable by the administrator in Configuration > Catalog > Search Engine Optimization > Category URL Suffix / Product URL Suffix.

Therefore, we need to be able to access this through some API. If the information is privileged, then we can begin using authentication over GraphQL if necessary and doing the call on the server side alone.

Relevant issues:
magento/pwa-studio#936
magento/pwa-studio#1029

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions