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

Rewrite Blog pages and actions to use new Fuel Rats WP API. #359

Open
5 tasks
UncleClapton opened this issue Jul 22, 2021 · 0 comments
Open
5 tasks

Rewrite Blog pages and actions to use new Fuel Rats WP API. #359

UncleClapton opened this issue Jul 22, 2021 · 0 comments
Labels
Feature | Blog 📰 An issue that is related to the blog pages. Type | Task ⚙️ An issue or PR that describes or performs a maintenance task or chore.

Comments

@UncleClapton
Copy link
Member

We have a new rest api built by NoLifeKing which renders data in JSONAPI format, includes and all. We can use it to significantly speed up our blog load times by dropping the synchronous request loading we do now in favor of having a all-in-one page that includes related data for us.

 

api docs: https://github.com/FuelRats/fuelrats-blogapi

 

Implementation Requirements

  • Blog data retrieval actions are rewritten to use wpService/axios, and points to [~NoLifeKing]'s wonderful blog API
  • Authors and Categories are either moved to their own global state objects, or separated from blog post objects within the blog global state
    • This is to simplify code required to support blog post filtering options down the line.
  • Blog pages (all.js and blog.js) are rewritten to work with the new JSON API format.
    • Preferably tracking it's own loading state
    • Server-side data loading should be avoided for now due to performance concerns caused by inconsistent response times from the wordpress server.
@UncleClapton UncleClapton added Type | Task ⚙️ An issue or PR that describes or performs a maintenance task or chore. Feature | Blog 📰 An issue that is related to the blog pages. labels Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature | Blog 📰 An issue that is related to the blog pages. Type | Task ⚙️ An issue or PR that describes or performs a maintenance task or chore.
Projects
None yet
Development

No branches or pull requests

1 participant