-
Notifications
You must be signed in to change notification settings - Fork 211
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
Rollback to more than one version backward leads to upgrade to latest version #3077
Comments
I always thought that the rollback would keep on rolling back. So this is what I think should happen.
Inviting @GeekPress here. |
This isn't the expected behavior. If we want to rollback twice for any reasons, we should be able to do it. |
Reproduce the problem Identify the root cause wp-rocket/inc/classes/subscriber/Plugin/class-updater-subscriber.php Lines 247 to 249 in 5434080
this line is checking Wordpress plugin latest version and if the latest version is newer than the current version it will add the newer always Scope a solution wp-rocket/inc/classes/subscriber/Plugin/class-updater-subscriber.php Lines 247 to 249 in 5434080
this code is called when updating and when rollback so inside rollback function Line 204 in 2b2fe80
we will define a new constant and check on the first code to stop checking on the last version number. also add a check on the last version to stop on is: 2.3.7 Estimate the effort
@arunbasillal Please confirm that the last version to stop on is: 2.3.7 as we started using |
I went back quite a lot and this commit confirms that Thank you 👍 |
@piotrbak We have a problem concerning the grooming here and we discussed with @engahmeds3ed about it. |
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
When trying to rollback for more than one time this leads to upgrade instead of multiple rollbacks.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
we have two scenarios here:-
Screenshots
First rollback from 3.7.0.1 to 3.6.4
Second rollback from 3.6.4 to 3.5.5.1
Additional context
We need product input here
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: