Coder Social home page Coder Social logo

wp-irving's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-irving's Issues

Add token invalidation to JWT integration

Right now, there's no logic running on every admin page hit that validates the JWT token stored in the user's cookie is valid. We should check/validate this more frequently to ensure auth works as expected.

HomePage Admin Bar Irving API button

Have a homepage Irving API button on the dashboard for quick access to the endpoint. Just like a single post has a WP-Irving API button on the WP bar.

Improve handling of `is_home` flag when setting up the WP_Query object.

When setting up the WP_Query object in Components_Endpoint::build_query(), the is_home flag is not being set correctly because internally, when WP_Query::parse_query() sets those flags, it explicitly includes a condition that the current request is not a REST request.

Since we are always setting up the WP_Query object in the context of a REST request, this will always be false. Annoyingly, the is_home flag is also then used in the logic to set up several other flags, which are now unreliable as well.

Our two options are to either manually set the is_home flag using the same basic logic as WordPress on the parse_query action and then rerun parse_query_vars() to fix inconsistencies, or we need to fork all of the logic that relies on the is_home flag and fix them all manually.

Couldn't get the host and port from the REDIS_MASTER environment variable

Hello!

I'm seeing the following error when trying to run npm run dev:

Mon, 30 Mar 2020 15:46:02 GMT irving:redis [error] Couldn't get the host and port from the REDIS_MASTER environment variable. Please pass a valid REDIS_MASTER environment variable in the form of a host:port string
this error is preventing me from spinning up Irving locally. Any ideas what may be causing this?

Thanks!
Hughie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.