-
Notifications
You must be signed in to change notification settings - Fork 69
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
Bring back the rest-user-exists-controller file #6303
Conversation
This fixes an error that happens during the plugin upgrade process. We'll need to keep this file until a more robust solution is found.
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.1 MB ℹ️ View Unchanged
|
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.
Code diff looks good. Will test. I left a comment about leaving changelog empty.
Also, the file can be an empty class and that will be fine I think.
The goal is to avoid the fatal error.
changelog/fix-plugin-upgrade
Outdated
Significance: patch | ||
Type: fix | ||
|
||
Missing file during plugin upgrade |
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.
I suggest to not add any changelog for this PR as the problem this PR is trying to fix did not exist in previous version.
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.
Removed in 1dd9f40
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.
Sorry, I meant not to remove the whole changelog file because then GH check for changelog will fail.
You can:
- Run
npm run changelog
. - Choose
patch
. - Leave empty when prompted with "Changelog entry. May be left empty if this change is particularly insignificant".
- Leave a comment why you put an empty changelog.
I know that npm run changelog
isn't too clear.
I talked about it several times, eg p1683308423223529/1683298938.613009-slack-CGGCLBN58
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.
Oh I misunderstood. Added an empty changelog with a comment
I updated PR description with better reproduce steps and error. |
Looks like the |
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.
Besides changelog concern, this PR should be good to merge. Approving.
Co-authored-by: Shendy <[email protected]>
@malithsen @shendy-a8c Is this file still needed after half a year? As I understand, this is code that is not being used, but it is left for upgrade purposes. |
@vladolaru This is correct. If we remove it, there's the risk of users upgrading from 5.8.x to a later version running into the error, but at this point % of versions below, that seems to be less than 1.5% 469f8fdffca011514a0024294f6dca43-logstash. Even for those users, it will not prevent the upgrade. So, I don't have any strong objections to removing this file. For some additional context, this issue is being discussed in paJDYF-aZa-p2 |
This fixes an error that happens during the plugin upgrade process.
class-wc-rest-user-exists-controller.php
and its references were removed in #6174During the plugin upgrade process,
init_rest_api
of the current WCPay version is invoked. This results in printing an error during the upgrade. This PR adds the file back to silence the error until we find a more robust solution.Changes proposed in this Pull Request
class-wc-rest-user-exists-controller.php
file removed in Remove WooPay subscriptions user check endpoint #6174Testing instructions
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge