diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2024-08-06 22:52:43 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2024-08-06 22:52:43 -0100 |
commit | 825be0af803c78bf81617986f51a530c0cce4305 (patch) | |
tree | 6766fa8fc7931a0563d6e8b78af5b62397063772 /lib/private | |
parent | e227d5afa1e9c71062133a13bec8ac051a9ec5b7 (diff) | |
download | nextcloud-server-825be0af803c78bf81617986f51a530c0cce4305.tar.gz nextcloud-server-825be0af803c78bf81617986f51a530c0cce4305.zip |
fix(migration-preview): display a message if no attributes set
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Migration/MetadataManager.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/private/Migration/MetadataManager.php b/lib/private/Migration/MetadataManager.php index cf569755ecd..3110ee18606 100644 --- a/lib/private/Migration/MetadataManager.php +++ b/lib/private/Migration/MetadataManager.php @@ -60,6 +60,18 @@ class MetadataManager { } /** + * returns list of installed apps that does not support migrations metadata (yet) + * + * @param array<array-key, array<array-key, array>> $metadata + * + * @return string[] + * @since 30.0.0 + */ + public function getUnsupportedApps(array $metadata): array { + return array_values(array_diff($this->appManager->getInstalledApps(), array_keys($metadata['apps']))); + } + + /** * convert raw data to a list of MigrationAttribute * * @param array $migrations |