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

clay import #19

Closed
4 of 5 tasks
nelsonpecora opened this issue May 22, 2017 · 4 comments
Closed
4 of 5 tasks

clay import #19

nelsonpecora opened this issue May 22, 2017 · 4 comments

Comments

@nelsonpecora
Copy link
Contributor

nelsonpecora commented May 22, 2017

Importers:

  • stdin → Clay
  • Clay Site → Clay
  • Clay Page → Clay
  • Clay Component → Clay
  • Files(s) → Clay
@nelsonpecora
Copy link
Contributor Author

caolan/highland#36

@nelsonpecora
Copy link
Contributor Author

If anyone wants to take a shot at multi-page importing, please make a PR. The platform team doesn't have enough bandwidth right now to do this.

@cperryk
Copy link
Contributor

cperryk commented Aug 22, 2017

@nelsonpecora I'll submit a PR soon for it.

@cperryk
Copy link
Contributor

cperryk commented Aug 23, 2017

Some takeaways from my powwow with Nelson:

  • single page import should have a --published flag to import published versions of pages
  • site import should by default only import drafts but should import published pages if --published flag is set
  • site import should rely on the pages index instead of the /pages endpoint and get the most recently updated pages
  • everything outside of what Amphora specifies as a reserved property of the page object (e.g. urlHistory, url, lastModified), can be assumed to be a component ref / list of component refs
  • by default, single page import and site imports should not overwrite existing layouts -- only add new ones. Any layout that would otherwise be overwritten should be logged. Both commands should have a --overwrite-layouts option that overwrites layout.

I expect to be able to update my PR accordingly within the next few days.

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

2 participants