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

feat(api-apw): cms workflow #2450

Merged
merged 10 commits into from Jul 4, 2022

Conversation

brunozoric
Copy link
Contributor

@brunozoric brunozoric commented May 30, 2022

Changes

This PR introduces API hooks and logic for the CMS entry publishing workflow.

How Has This Been Tested?

Jest.

@brunozoric brunozoric added this to the 5.29.0 milestone May 30, 2022
@brunozoric brunozoric self-assigned this May 30, 2022
@brunozoric brunozoric requested a review from Pavel910 June 1, 2022 12:29
@brunozoric brunozoric marked this pull request as ready for review June 1, 2022 12:34
@brunozoric brunozoric modified the milestones: 5.29.0, 5.30.0 Jun 23, 2022
@brunozoric brunozoric merged commit 57c082d into feat/apw-headless-cms Jul 4, 2022
endymion1818 added a commit that referenced this pull request Jul 25, 2022
* fix(app-apw): form usages

* fix: bring back `AWS_ELASTIC_SEARCH_DOMAIN_NAME` env var support

* fix: revert `AWS_ELASTIC_SEARCH_DOMAIN_NAME` support

* feat: add react-properties package (#2499)

* fix(react-properties): use babel config from project-utils

* fix: add missing slash

* fix: add missing `advancedAccessControlLayer` property

* fix: ensure `WCP_PROJECT_ENVIRONMENT_API_KEY` env var

* feat(pulumi): add support for remote resources

* chore(pulumi): reformat with prettier

* fix: rename `PulumiRemoteResource` to `PulumiAppRemoteResource` [no ci]

* fix: add error handling

* chore(release): publish v5.29.0-beta.0 🎉 🚀

* chore: update package versions (webiny-versions)

* chore: update yarn.lock

* fix(cypress): add a short wait to fix flaky test

* fix(pulumi): process resource handlers at config stage

* feat(pulumi-aws): add an AWS OpenSearch module

* feat(pulumi-aws): add production features to ElasticSearch module

* chore(release): publish v5.29.0-beta.1 🎉 🚀

* chore: update package versions (webiny-versions)

* chore: update yarn.lock

* fix(serverless-cms-aws): replace require with import [no ci]

* docs: replace `runProgram` with just `run` [no ci]

* chore: update `example.env`

* fix: convert `run` back to sync method

* chore: run prettier

* chore(release): publish v5.29.0-beta.2 🎉 🚀

* chore: update package versions (webiny-versions)

* chore: update yarn.lock

* chore(release): publish v5.29.0 🎉 🚀

* chore: update package versions (webiny-versions)

* chore: update yarn.lock

* ci: enable running Cypress tests on PRs

* ci: enable running Cypress tests on PRs

* ci: enable running Cypress tests on PRs

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* ci: enable running Cypress tests on PRs [no ci]

* chore: update `jest` and `ts-jest` packages

* ci: enable running Cypress tests on PRs [no ci]

* ci: test Jest retries

* chore: add Jest setup file and globally set `jest.retryTimes(5);`

* ci: test Cypress retries

* ci: test Cypress retries

* fix: update ts-jest

* fix: add `@jest-environment jsdom`

* chore: set `"jsx": "react"`

* chore: update yarn.lock

* chore: run prettier

* chore: properly merge `setupFilesAfterEnv`

* chore: update babel-jest

* test: undo temporary change

* test: add `@jest-environment jsdom`

* refactor(api-headless-cms): optional chaning in checks (#2512)

* fix: unset default transform rules and remove obsolete name prop

* chore: add a void package for types

* fix: disable @types/jsdom package because of conflicts

* test(api-apw): disable tenant link verification

* test(react-properties): setup nanoid mocks

* fix(cwp-template-aws): add missing .babelrc file

* feat(project-utils): use retries to delete indexes on snapshot errors (#2513)

* fix: use handlers for the `projectAppParams.pulumi` parameter

* fix: use handlers for the `projectAppParams.pulumi` parameter

* feat: export Pulumi app types

* feat(api-apw): cms workflow (#2450)

* feat(api-mailer): package to send e-mails from the system (#2514)

* feat(cwp-template-aws): add apw to user projects (#2523)

* fix(app-headless-cms): revisions cache update on publish (#2525)

* chore: remove WCP project ID

* feat: assign WCP project ID via WCP_PROJECT_ID

Usually, the ID is set via webiny.project.ts, but, for dev/testing purposes, we want to be able to set the WCP project ID via an env var too.

* fix: improve error messages

* feat: reorganize code and add support for WCP_PROJECT_ID env var

* chore: run prettier

* feat: typescript to 4.7.4 (#2527)

* ci: change permission-level to "write"

* feat: decouple Page Editor and introduce a Block Editor (#2529)

* feat(api-headless-cms): combine cms contexts and graphqls (#2528)

* refactor(api-apw): remove unnecessary cms code (#2530)

* test(api-headless-cms): header parameter plugin (#2532)

* feat(api-headless-cms): correct endpoint types (#2533)

* fix(app-page-builder): resurrect "click-to-add" element (#2534)

* fix(api-headless-cms): locale error when system not installed (#2537)

* feat: bring back APW into Webiny Projects (#2535)

* fix: bring back APW into Webiny projects

* chore: update yarn.lock

* fix: correct import of `AdvancedPublishingWorkflow`

* chore: regenerate TS configs

* fix(cli-watch-command): correct glob generation

* fix: remove empty if statement

* fix: correct glob generation

* fix: bring back APW into Webiny projects

* fix: bring back APW into Webiny projects

* chore: update yarn.lock

* fix: correct import of `AdvancedPublishingWorkflow`

* chore: regenerate TS configs

* fix: remove `AdvancedPublishingWorkflow` from template's `App.tsx` file

* fix(app-page-builder): improve editor core (#2536)

* ci(cleanup): add EventBridge cleanup script

* feat(ui): upgrade rmwc/base, use npm package

* chore(ui): update components

* fix(app-page-builder, app-form-builder): update other packages

* fix(app-admin): resolve tslib to fixed version due to version clashes

* fix(api): rebase & fix conflicts

* fix(settings): add back typescript to resolutions

* chore(ui): update material components

* fix(project-utils): turn off webpackImporter

* fix(material): resolve material versions

* fix(ui): upgrade material-components-web

* fix(app-admin): fix grid layout issue

* fix(app-admin): correct font on body tag

* fix(app-admin): restore installer grid height

* fix(ui): resolvem aterial select to latest vesion

* fix(ui): update select styles

* fix(ui): rm ChipIcon, responding to review comments

* fix(ui): rm ChipIcon, responding to review comments

* fix(app-admin): update select styles

* fix(ui): add tslib as explicit dependency

* fix(package json): tidy resolutions, update lockfile

* fix(packagejson): pin tslib

* fix(packages): add tslib as explicit

* fix(ui): restore secondary button styles

* feature(app-admin-rmwc): Add Portal to overlaysHOC

* fix(app-admin): update select input caret style

* fix(lockfile): sync lockfile

* chore(ui): prettify code

* fix(ui): rm tslib from main package.json

* chore(ui): move tslib to dependencies from devDependencies :face_palm:

* fix(app-page-builder): add defaultValue & beforeChange to select

* chore(packages): rm spurious file

* fix(ui): move tslib to admin app dependencies

* fix(ui): autofil label position

* fix(ui): rm grid-gap from splitView

* fix(app-page-builder): fix zoom select styles

* fix(app-page-builder): icon positioning fix

* fix(app-admin-rmwc): fix portal rendering issue

* fix(lockfile): rebase on next, resolve peer dependencies correctly

* fix(ui): pass data-testid as props to input component

* fix(cypress): update installation script selectors

* fix(ui): remove forked rmwc packages

* fix(app-admin-rwmc): synchronise dependencies

* fix(cypress): update login tests, add testid to some views

* fix(cypress): update selectors for uploadImage.spec

* fix(cypress): update selectors and test

* fix(cypress): update form builder tests

* fix(cypress): add testids to fieldRenderers

* fix(cyperss): update contentEntries tests

* fix(app-headless-cms): add testids to inputs

* fix(cypress): update content models tests

* fix(cypress): update search and sort models

* fix(cypress): i18n createLocale updates (wip)

* fix(cypress): update i18n tests

* fix(cypress): update account tests

* fix(cypress): update createMenu test

* fix(cypress): pb menu items tests

* fix(cypress): update menus, users tests

* fix(cypress): update security admin group test

* fix(cypress): update pb menus list test

* fix(cypress): update pb categories tests

* fix(lockfile): nuke lockfile and reinstall

* fix(cypress): rebase on next, resolve issues

* fix(lockfile): rebase on next, replace lockfile

* fix(packagejson): unpin pretty-format

* fix(app-page-builder): set default value for page zoom

* fix(ui): correct chip icon margins

* fix(app-admin): fix ui issue with SEO settings meta tags

* fix(appformbuilder): update input label

* chore(package): rm tslib from package.json :ta_da:

* fix(cypress): update failed pipeline tests

* fix(cypress): update downshift selectors

* feat(ui): upgrade rmwc/base, use npm package

* chore(ui): update components

* fix(app-page-builder, app-form-builder): update other packages

* fix(app-admin): resolve tslib to fixed version due to version clashes

* fix(api): rebase & fix conflicts

* fix(settings): add back typescript to resolutions

* chore(ui): update material components

* fix(project-utils): turn off webpackImporter

* fix(material): resolve material versions

* fix(ui): upgrade material-components-web

* fix(ui): resolvem aterial select to latest vesion

* fix(ui): update select styles

* fix(ui): rm ChipIcon, responding to review comments

* fix(ui): rm ChipIcon, responding to review comments

* fix(app-admin): update select styles

* fix(ui): add tslib as explicit dependency

* fix(package json): tidy resolutions, update lockfile

* fix(packagejson): pin tslib

* fix(packages): add tslib as explicit

* fix(ui): restore secondary button styles

* feature(app-admin-rmwc): Add Portal to overlaysHOC

* fix(app-admin): update select input caret style

* fix(lockfile): sync lockfile

* chore(ui): prettify code

* fix(ui): rm tslib from main package.json

* chore(ui): move tslib to dependencies from devDependencies :face_palm:

* chore(packages): rm spurious file

* fix(ui): move tslib to admin app dependencies

* fix(app-admin-rmwc): fix portal rendering issue

* fix(lockfile): rebase on next, resolve peer dependencies correctly

* fix(ui): remove forked rmwc packages

* fix(app-admin-rwmc): synchronise dependencies

* fix(cyperss): update contentEntries tests

* fix(cypress): update content models tests

* fix(cypress): update search and sort models

* fix(cypress): i18n createLocale updates (wip)

* fix(cypress): update i18n tests

* fix(cypress): pb menu items tests

* fix(cypress): update menus, users tests

* fix(cypress): update pb menus list test

* fix(lockfile): nuke lockfile and reinstall

* fix(cypress): rebase on next, resolve issues

* fix(lockfile): rebase on next, replace lockfile

* fix(packagejson): unpin pretty-format

* chore(package): rm tslib from package.json :ta_da:

* fix(cypress): update downshift selectors

* fix: menuItems Cypress tests

* fix: better child button handling

* fix: searchAndSortCategories Cypress tests

* chore: formatting

* fix: pageListMenuItemType Cypress tests

* chore(ui): rebase, format code

* fix(cypress): fix remaining 2 tests

* fix(cypress): improve flaky test

* fix(cypress): add pb page publish button testid

* fix(cypress): select element correctly

* chore(cypres): wait for type to finish to reduce flakiness

* fix: cypress cross-origin tests

* chore: code review and commands order

* chore: commands order

* fix(cypress): force click confirm delete

* fix(ui): use template literals for css

Co-authored-by: Bruno Zorić <bruno.zoric@gmail.com>
Co-authored-by: Adrian Smijulj <adrian1358@gmail.com>
Co-authored-by: Pavel Denisjuk <pavel@webiny.com>
Co-authored-by: webiny-bot <webiny-bot@webiny.com>
Co-authored-by: Leonardo Giacone <leonardo.giacone@gmail.com>
@brunozoric brunozoric deleted the feat/api-apw/headless-cms branch October 4, 2022 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant