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
Update the wp-comments package to use the WP REST API directly #542
Conversation
🦋 Changeset is good to goLatest commit: 557b2f5 We got this. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
We are receiving same error on this PR as reported by @luisherranz previously in bradennapier/eslint-plus-action#45 |
The e2e tests are failing on the previous version of WP - I will look into this, but in the meantime you can already review it @DAreRodz :) |
"taskTimeout": 60000 | ||
"taskTimeout": 60000, | ||
"retries": { | ||
"runMode": 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test failures were really weird and had multiple causes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great, @michalczaplinski! 👌
I will merge this now, despite the eslint failure as I have no eslint issues locally so it was most likely just a problem with the github action. Note that I have added the |
What:
Update the implementation of the
wp-comments
package to use the REST API directly.Why:
The previous implementation has a problem with following redirects as outlined in the Feature Discussion: https://community.frontity.org/t/wordpress-comments-package/1267/53?u=mmczaplinski
How:
wp-comments
package to use the REST API directlystate.source.data
andstate.source.comment
. This is handled inside of thesubmit()
action.author_email
data
to@frontity/source
query
,route
&link
from the non-URL entities that are fetched from the REST API.Also additionally:
load-db.js
script for local testing using the e2e testing system.Tasks:
Unrelated Tasks