Skip to content

perf: Load entries lazily again in NavigationManager - #64109

Open
come-nc wants to merge 2 commits into
masterfrom
perf/navigation-manager
Open

perf: Load entries lazily again in NavigationManager#64109
come-nc wants to merge 2 commits into
masterfrom
perf/navigation-manager

Conversation

@come-nc

@come-nc come-nc commented Sep 7, 2026

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

Only trigger LoadAdditionalEntriesEvent if navigation entries are actually used.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@come-nc
come-nc requested a review from susnux September 7, 2026 16:11
@come-nc come-nc self-assigned this Sep 7, 2026
@come-nc come-nc added the 2. developing Work in progress label Sep 7, 2026
@come-nc
come-nc force-pushed the perf/navigation-manager branch 2 times, most recently from 6f79109 to 77ab4c2 Compare September 8, 2026 08:44
@come-nc come-nc changed the title perf: Cache isAdmin() and update default entries only once in NavigationManager perf: Load entries lazily again in NavigationManager Sep 8, 2026
@come-nc come-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Sep 8, 2026
@come-nc
come-nc force-pushed the perf/navigation-manager branch from 5853332 to dd063cc Compare September 8, 2026 15:55
@come-nc
come-nc marked this pull request as ready for review September 8, 2026 15:55
@come-nc
come-nc requested a review from a team as a code owner September 8, 2026 15:55
@come-nc
come-nc requested review from Altahrim, CarlSchwan, leftybournes and provokateurin and removed request for a team September 8, 2026 15:55
@come-nc come-nc added this to the Nextcloud 36 milestone Sep 8, 2026
@come-nc

come-nc commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

/backport to stable35

Comment thread lib/public/INavigationManager.php Outdated
* name: string,
* app?: string,
* default?: bool,
* default: bool,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure this makes sense to add this to all output types (e.g. action)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

reverted this type change, see last commit

Comment thread lib/private/NavigationManager.php Outdated
Comment thread lib/private/NavigationManager.php Outdated
There are still a few computed stuff but it should already be an
 improvement for code paths which are not using navigation.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@CarlSchwan
CarlSchwan force-pushed the perf/navigation-manager branch from dd063cc to 1ec746a Compare September 9, 2026 10:42
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants