-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Clean up (many) deprecated functions #40083
Conversation
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
bfb371a
to
b03fa85
Compare
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.
Psalm found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
IMO, you should not commit all these changes in a single commit but split in multiple commits. This will help get this reviewed correctly. 👍 |
That was a question I was going to have for one of the devs. I thought that perhaps this wouldn't be such a big deal since I only replaced functions that are basically drop-in replacements (i.e. the ones where the function call in There are only two exceptions to this:
Besides those, they're really are just one-to-one replacements. However, if you think it's best, I can split things into separate commits. Question. Should changes to |
Thanks for your pull request 👍 A good amount of our CI suite is broken 😞 Changing so many things in a single commit is not a good idea. We got a couple of refactoring pull requests recently. Please use them as example: https://github.com/nextcloud/server/pulls?q=is%3Apr+sort%3Aupdated-desc+is%3Aclosed+refactor |
Sorry, I didn't intend to close the pull request right away. |
No worries, @kesselb. Since you recommend splitting this up, the PR should probably be closed, anyway. |
@summersab Thanks for the willingness to help to improve the code quality. Unfortunatly the way you did this now is also rather painful as well. You spamed 40+ PR and therefore blocked Drone CI from 3am until 4:30pm European time (that is when the first other PR received their results) with your refactorings (And since an hour ago when @solracsf approved the GitHub Actions run on most/all of them, GitHub Actions are mostly blocked for the rest of the day). Maybe you can focus on one PR after another, so rest of the Nextclouders is still able to work and get CI results during the same day. Most of your PRs also seem to be untested and you also mostlikely did not run unit tests locally as prooven by #40154 (comment) So maybe you can now work on one PR after another and get them in bit-by-bit instead of all being worked on in parallel always killing all the CI for everyone else for the rest of the day. Best is to also run some CI locally before pushing:
This way we can save a lot of CI time with things you can easily check manually locally.
|
@nickvergessen - oops. I definitely apologize. That wasn't my intention. I had some spare time and thought it would be helpful to do a little housekeeping and clean up some lint. I got into a rhythm and just kept going. I didn't realize that it would block your team from running GitHub Actions. I will definitely take note of your comments for CI and modifying apps. Also, I promise not to submit any more PRs for the rest of the week - heh . . . Would it help if I put the unreviewed PRs in draft? |
Summary
There are thousands of deprecated functions, constants, and classes in the NC core. Some of them are actually noted to be removed in previous releases, yet they still persist.
I am a strong believer in dogfooding your own code and APIs. Therefore, I took some time to clean up a good chunk of the deprecated code. Nothing in
3rdparty
orapps
has been changed.Since this is a HUGE commit (and I may find more instances to add - suggestions welcome), I am leaving it as a draft for the moment.
TODO
Checklist