-
Notifications
You must be signed in to change notification settings - Fork 199
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
ship old Nextcloud Mapper to support NC 26+ #1055
Conversation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
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.
Quickly verify on my test Nextcloud 26 installation.
Works fine.
Will test more.
Tested such functions on Nextcloud 26.0
|
Great, thanks! I'll try to look into this within the next few days. |
Also upgraded my instance today and patched music with this. My key use case, subsonic via DSub, is working :) |
Thank you, nice job. |
Nice job working |
Would be nice to see this merged. |
PHPStan cannot pick up any class_alias definitions from the code to be analyzed and was producing a lot of errors. Giving the alias in a specific bootstrap file configured for PHPStan solves the issue. Also, PHPStan was complaining about an unnecessary sanity check in OldNextcloudMapper. This was set to be ignored because the check was pointless only if you believe that the type hints given as PHPDoc can never be broken.
The inspection completed: 123 new issues, 14 updated code elements |
Seems to work fine on various versions of ownCloud, too. I made a few cosmetic changes to make it ready for merging. |
Thank you @paulijar! |
@Ana-Khouri No promises, but I hope that I get the release done this week. |
The release v1.8.2 with this support for NC26 is now out! |
🔥 Thanks ! @paulijar |
fixes #1050
Ships
lib/public/AppFramework/Db/Mapper.php
from Nextcloud 25 with adjusted namespace. Upon app init, an alias is created toOCA\Music\Db\CompatibleMapper
which is used later on, instead of directly referencing\OCP\AppFramework\Db\Mapper
.Tested successfully on both my dev setups of NC 25 and NC 26.