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

Use GraphQL for e-mail template table and update form #354

Conversation

loan-laux
Copy link
Contributor

@loan-laux loan-laux commented Feb 26, 2021

Resolves #227
Impact: major
Type: performance|refactor|chore

Issue

The current e-mail template table and update form use the Templates Meteor pub/sub to pull data, and a Meteor method to update templates. This is outdated and should be replaced by a GraphQL query and mutation.

Solution

Refactor the e-mail template table and update form to use GraphQL instead.

Breaking changes

None.

Testing

Test with reactioncommerce/api-plugin-translations#15.

  1. Go to Settings > Email Templates.
  2. Make sure your e-mail templates display in the table.
  3. Click a row of the table and edit the e-mail template.
  4. Make sure that the update works.

Signed-off-by: Loan Laux <loan@outgrow.io>
Signed-off-by: Loan Laux <loan@outgrow.io>
Signed-off-by: Loan Laux <loan@outgrow.io>
Signed-off-by: Loan Laux <loan@outgrow.io>
Signed-off-by: Loan Laux <loan@outgrow.io>
Copy link
Contributor

@MohanNarayana MohanNarayana left a comment

Choose a reason for hiding this comment

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

The new template table and update pop up looks great. Thanks for your contribution.

@MohanNarayana MohanNarayana merged commit 8df99af into reactioncommerce:trunk Mar 1, 2021
@Akarshit Akarshit mentioned this pull request Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor template settings form to use the GraphQL API
2 participants