-
Notifications
You must be signed in to change notification settings - Fork 46
Refactor check_upgrade_savepoint after MDL-83424 #363
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
base: main
Are you sure you want to change the base?
Refactor check_upgrade_savepoint after MDL-83424 #363
Conversation
It's save to assume that this script will not be used for any Moodle version below 3.0, so let's remove old code accordingly. Signed-off-by: Daniel Ziegenberg <[email protected]>
…check_upgrade_savepoints Signed-off-by: Daniel Ziegenberg <[email protected]>
Signed-off-by: Daniel Ziegenberg <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #363 +/- ##
=======================================
Coverage 25.22% 25.22%
=======================================
Files 72 72
Lines 3271 3271
=======================================
Hits 825 825
Misses 2446 2446
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi Daniel, Can you please break this out into multiple commits -- one for each change and especially separating out the phpcbf one. It's impossible to review this in a meaningful way. You haven't explained the removal of the maturity constants |
Hi @andrewnicols, thx for the review.
This are already three commits:
The removal of the maturity constant is explained in the body of the first commit: "It's safe to assume that this script will not be used for any Moodle version below 3.0, so let's remove old code accordingly." Greetings, |
I removed a check for old branches from check_upgrade_savepoints. Because of the move to
public
with the changes in MDL-83424, the check wasn't working anymore as intended.I also activated a check already in the code to verify that there is not more than one upgrade function, and ran
phpcbf
on the file with Moodle code standards.