Skip to content

refactor: consolidate app loading logic in bootstrap process - #61560

Merged
provokateurin merged 1 commit into
masterfrom
refactor/oc
Jun 24, 2026
Merged

refactor: consolidate app loading logic in bootstrap process#61560
provokateurin merged 1 commit into
masterfrom
refactor/oc

Conversation

@susnux

@susnux susnux commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove duplicated calls to loadApps by consolidating the logic.

  • First we keep loading authentication apps
  • Then we try to login the user if needed
  • Then load filesystem and logging
  • Then - if not CLI - load everything else (if possible)

The flow is not really changed, but tried to make it more clear at what step which apps are loaded.
This also allows to have a specifc point in the execution flow where all app loading is done so we can emit an event for this in the future.

Checklist

AI (if applicable)

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

@susnux susnux added the ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) label Jun 23, 2026
@susnux susnux added this to the Nextcloud 35 milestone Jun 23, 2026
@susnux
susnux marked this pull request as ready for review June 24, 2026 09:59
@susnux
susnux requested a review from a team as a code owner June 24, 2026 09:59
@susnux
susnux requested review from ArtificialOwl, come-nc, icewind1991 and leftybournes and removed request for a team June 24, 2026 09:59
@susnux susnux added the 3. to review Waiting for reviews label Jun 24, 2026

@provokateurin provokateurin left a comment

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.

Makes sense 👍

Comment thread lib/OC.php Outdated
Comment thread lib/OC.php Outdated
Comment thread lib/OC.php Outdated
@susnux
susnux requested a review from provokateurin June 24, 2026 11:23
Remove duplicated calls to `loadApps` by consolidating the logic.
- First we keep loading authentication apps
- Then we try to login the user if needed
- Then load filesystem and logging
- Then - if not CLI - load everything else (if possible)

The flow is not really changed, but tried to make it more clear at what
step which apps are loaded.
This also allows to have a specifc point in the execution flow where all
app loading is done so we can emit an event for this in the future.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>

@provokateurin provokateurin left a comment

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.

Let's see 💥

@provokateurin
provokateurin merged commit 2da90a9 into master Jun 24, 2026
196 checks passed
@provokateurin
provokateurin deleted the refactor/oc branch June 24, 2026 14:32
@nextcloud-bot nextcloud-bot mentioned this pull request Aug 11, 2026
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 ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants