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

Implement support module with WebAPI endpoint for development #41

Closed
ericerway opened this issue Mar 28, 2018 · 8 comments
Closed

Implement support module with WebAPI endpoint for development #41

ericerway opened this issue Mar 28, 2018 · 8 comments

Comments

@ericerway
Copy link

ericerway commented Mar 28, 2018

As a developer, I want to quickly and easily set up a PWA development environment connected to a Magento 2 instance.

Enable this quick setup with a Web API endpoint for communication between the Magento 2 backend configuration and the PWA developer tools.

AC

  1. Web API endpoint for checking, and if necessary modifying, store configuration to the following requirements:

    • Magento is installed and responding
    • Magento version is within supported range specified in theme manifest
    • Storefront and admin are both HTTPS-only, with redirect-to-HTTPS enabled
    • TLS certificate is signed with SAN extensions
    • Static resource signing is disabled
    • SEO redirects are enabled
    • Template symlinking is allowed
    • Theme under development is installed and activated on the default store
  2. Web API endpoint (or additional response data from the endpoint defined in (1) above) for providing the following values:

    • Configured base URLs
    • Static asset path for the active theme, variant, and locale
    • File system path to the folder or symbolic link for theme assets
    • TLS certificate and certificate authority in PEM format
    • Buildpack connector which consumes API endpoint to provision and confirm store configuration
    • Stretch: Layout updates to disable "Layout XML Update" fields in admin when PWA theme is
      active
    • Test coverage and documentation (as appropriate)
@ericerway ericerway added this to the Milestone 3 milestone Mar 30, 2018
@ericerway ericerway removed this from the Milestone 3 milestone Apr 24, 2018
@DrewML
Copy link
Contributor

DrewML commented May 9, 2018

@zetlen This could be a good candidate for contribution, but it's missing too much info at the moment. Do you have detailed AC for what you need from this endpoint?

@zetlen
Copy link
Contributor

zetlen commented May 9, 2018

That's something @paliarush asked me for a while back, and I owe it. I'll write that up ASAP.

@DrewML
Copy link
Contributor

DrewML commented May 15, 2018

Removing the Help Wanted label until actionable AC has been specified.

@zetlen zetlen changed the title Implement WebAPI endpoint for development Implement support module with WebAPI endpoint for development May 22, 2018
@DrewML
Copy link
Contributor

DrewML commented Jun 2, 2018

@ericerway @zetlen this is a pretty large ticket for an external contribution. Can we chop this up into separate stories? Seems like most of the listed items could be separate tickets.

@zetlen
Copy link
Contributor

zetlen commented Jun 8, 2018

Definitely. The tickets would be:

  • Make admin-authorized Web API endpoint for showing config values and store status information
  • Add functionality to that API endpoint for mutating those values
  • Add "PWA-relevant settings group" concepts so the tooling can ask for a standard response instead of specific config values

@zetlen
Copy link
Contributor

zetlen commented Jun 8, 2018

Please add or break down anything you think is extra.

@miguelbalparda
Copy link

miguelbalparda commented Jun 12, 2018

Magento is installed and responding
Magento version is within supported range specified in theme manifest

anystore.com/magento_version i.e https://82503e2667.nxcli.net/magento_version might help here.

@PWAStudioBot
Copy link

This issue was moved to magento/pwa-studio#29

@DrewML DrewML closed this as completed Jun 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants