-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix NLU Settings and Wp-CLI #96
Conversation
This updates the get_plugin_settings() function in helpers to allow for users to pass in a service to get the settings for that service. This also keys services in the filter to make them easily queryable when traversing the objects since numerical indicies can be unpredictable.
Could use a code review from someone more familiar with the codebase, overall looks fine to me though. |
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.
LGTM, appreciate a review from @ryanwelcher or @helen
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.
Looks good to me.
Fixes NLU Settings backwards compatibility and WP-CLI command registration.
Benefits
Possible Drawbacks
New Provider classes will be required to implement the
reset_settings()
method.Verification Process
Settings
git checkout 1.2.1
git checkout bug/nlu-credentials
xDebug Screenshot of endpoint results: https://i.gyazo.com/d01608a12c69244cb655bfe67a361781.png
WP-CLI
git checkout bug/nlu-credentials
wp classifai --help
wp classifai reset
Checklist: