Skip to content

Conversation

@salmart-dev
Copy link
Contributor

@salmart-dev salmart-dev commented Feb 12, 2026

Summary

Change that avoids the mount manager rebuilding the list of mounts per provider on every set up call where mounts need to be refreshed.

Before
Screenshot_20260211_181619-1 (Edit)

After
Screenshot_20260211_181957-1

Checklist

@salmart-dev salmart-dev requested a review from a team as a code owner February 12, 2026 09:18
@salmart-dev salmart-dev added the 3. to review Waiting for reviews label Feb 12, 2026
@salmart-dev salmart-dev requested review from come-nc, icewind1991, leftybournes and provokateurin and removed request for a team February 12, 2026 09:18
@salmart-dev salmart-dev marked this pull request as draft February 12, 2026 09:18
@salmart-dev salmart-dev force-pushed the fix/mount-manager-improve-get-by-provider branch from 841b83e to f4d5576 Compare February 12, 2026 13:03
@salmart-dev salmart-dev self-assigned this Feb 12, 2026
@salmart-dev salmart-dev force-pushed the fix/mount-manager-improve-get-by-provider branch from f4d5576 to 4987175 Compare February 12, 2026 13:04
@salmart-dev salmart-dev marked this pull request as ready for review February 12, 2026 13:05

$mounts = [];
foreach ($mountProviders as $mountProvider) {
$mounts[] = $this->mountsByProvider[$mountProvider];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$mounts[] = $this->mountsByProvider[$mountProvider];
$mounts[] = $this->mountsByProvider[$mountProvider] ?? [];

Maybe just in case the provider has no mounts? Not sure if that could happen here, so your judgement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants