Add Disconnect Functionality for Jobber Integration#28
Merged
Conversation
Contributor
Author
|
@TylerB24890 Just a heads up: this PR introduces a REST endpoint at jobber-wp/includes/classes/Disconnect.php Lines 53 to 61 in 7d20b25 |
…middleware for full support
…e REST API registration has been removed
Collaborator
|
Note I've removed the REST API integration for now, as we'll need to support this in the middleware first and that may not be ready by the time we submit this to WordPress.org, so removed that and we can come back to that later. For reference when we need this again, removed that in d180247 |
dkotter
approved these changes
Apr 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Change
This PR adds disconnect functionality to the Jobber integration, allowing users to disconnect their Jobber account from WordPress. The implementation includes:
Disconnectclass that handles both UI-initiated and middleware-initiated disconnects/wp-json/jobber/v1/disconnectfor the middleware to calldelete_stored_data()methodThe disconnect functionality can be triggered in two ways:
Note:
Once the middleware is ready, this will be extended to also trigger a request to the middleware to handle the disconnection flow completely.
Closes #19
How to test the Change
Changelog Entry
Credits
Props @dkotter @faisal-alvi
Checklist: