Skip to content
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

Merged
merged 4 commits into from
Mar 25, 2023

Conversation

blizzz
Copy link
Contributor

@blizzz blizzz commented Mar 22, 2023

fixes #1050

Ships lib/public/AppFramework/Db/Mapper.php from Nextcloud 25 with adjusted namespace. Upon app init, an alias is created to OCA\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.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Copy link

@a3linux a3linux left a 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.

@a3linux
Copy link

a3linux commented Mar 23, 2023

Tested such functions on Nextcloud 26.0

  1. Basic music files import and management
  2. Playlist created and play
  3. App password generation
    As the HTTPS self signed certificate issue for my local dev installation, DID NOT TEST client side.

@paulijar
Copy link
Collaborator

Great, thanks! I'll try to look into this within the next few days.

@blizzz
Copy link
Contributor Author

blizzz commented Mar 23, 2023

Also upgraded my instance today and patched music with this. My key use case, subsonic via DSub, is working :)

@jjasoncool
Copy link

jjasoncool commented Mar 24, 2023

Thank you, nice job.

@john-2000
Copy link

Nice job working

@shakeme
Copy link

shakeme commented Mar 25, 2023

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.
@scrutinizer-notifier
Copy link

The inspection completed: 123 new issues, 14 updated code elements

@paulijar
Copy link
Collaborator

Seems to work fine on various versions of ownCloud, too. I made a few cosmetic changes to make it ready for merging.

@paulijar paulijar merged commit 6814cf6 into owncloud:master Mar 25, 2023
@blizzz
Copy link
Contributor Author

blizzz commented Mar 25, 2023

Thank you @paulijar!

@blizzz blizzz deleted the nc26compat branch March 25, 2023 21:14
@amiga23 amiga23 mentioned this pull request Mar 27, 2023
@Ana-Khouri
Copy link

Thank you @blizzz @paulijar
Glad the pull request has been merged. @paulijar May I ask when v1.8.2 will be released? :)

@paulijar
Copy link
Collaborator

@Ana-Khouri No promises, but I hope that I get the release done this week.

@paulijar
Copy link
Collaborator

paulijar commented Apr 1, 2023

The release v1.8.2 with this support for NC26 is now out!

@AubinF
Copy link

AubinF commented Apr 2, 2023

🔥 Thanks ! @paulijar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nextcloud Realease 26 beta4 not supported
9 participants