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

#31 CMS page/block coverage #105

Merged
merged 33 commits into from
Sep 11, 2018

Conversation

roma-glushko
Copy link
Member

@roma-glushko roma-glushko commented Jun 30, 2018

Description

PR enables to fetch CMS pages via GraphQL entry point. The following stuff is available:

  • Only enabled pages will be returned by the API
  • Store view context is passed in the HTTP header and only pages relevant to given context will be returned

API returns the following info:

  • url key
  • layout
  • page title
  • content heading
  • meta title, keywords, description

Fixed Issues (if relevant)

  1. CMS page coverage #31: CMS page coverage

Manual testing scenarios

Using ChromeiQL, it's possible to send the following query:

  cmsPage(id: 1) {
    url_key
    title
    content
    content_heading
    page_layout
    meta_title
    meta_description
    meta_keywords
  }
}

@roma-glushko roma-glushko self-assigned this Jun 30, 2018
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Jun 30, 2018

CLA assistant check
All committers have signed the CLA.

@roma-glushko roma-glushko mentioned this pull request Jun 30, 2018
@paliarush paliarush added requires-documentation requires-tests PRs which require GraphQL tests labels Jul 2, 2018
'page_content' => $cmsPageModel->getContent(),
'content_heading' => $cmsPageModel->getContentHeading(),
'layout' => $cmsPageModel->getPageLayout(),
'mate_title' => $cmsPageModel->getMetaTitle(),
Copy link

Choose a reason for hiding this comment

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

Small typos. mate >> meta

Valeriy Nayda added 3 commits July 19, 2018 13:18
…support

# Conflicts:
#	app/code/Magento/CmsGraphQl/etc/module.xml
#	app/code/Magento/CmsGraphQl/etc/schema.graphqls
#	composer.lock
@naydav naydav changed the title #31 CMS page coverage #31 CMS page/block coverage Jul 19, 2018
@magento-engcom-team magento-engcom-team added this to the Release: 2.3.0 milestone Jul 19, 2018
@naydav naydav force-pushed the 31-cms-page-graphql-support branch from a9a332b to 2cb2705 Compare August 13, 2018 12:23
@naydav naydav force-pushed the 31-cms-page-graphql-support branch from 2cb2705 to c5ecc0c Compare August 13, 2018 13:08
Valeriy Nayda added 3 commits August 13, 2018 17:28
-- Update composer json
…aphql-support

# Conflicts:
#	composer.lock
-- Update composer json
Valeriy Nayda added 3 commits August 27, 2018 13:34
…aphql-support

# Conflicts:
#	composer.lock
-- Update composer lock
-- Update composer lock
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants