Skip to content

Conversation

@JammingBen
Copy link
Contributor

@JammingBen JammingBen commented Nov 5, 2025

This issue was introduced by the authenticated config loading because it delayed the space loading. This change makes sure both things happen in parallel. I only needed to extract spacesInitialized so it can be set outside of loadSpaces.

Additionally, changes the getResourceContext method to a task so it gets cancelled on unmount, reducing the likelihood of such an endless loop even more.

fixes #1512

@JammingBen JammingBen self-assigned this Nov 5, 2025
Copilot AI review requested due to automatic review settings November 5, 2025 13:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR optimizes the application bootstrap process by parallelizing independent API calls and adds cancellation support to resource context operations using vue-concurrency.

  • Parallelize loading of role definitions, spaces, and configuration during bootstrap
  • Convert getResourceContext to a cancellable task using vue-concurrency
  • Thread abort signals through resource loading operations for better cancellation support

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/web-runtime/src/index.ts Parallelizes three independent async operations (role definitions, spaces, configuration) and adds import for UnifiedRoleDefinition type
packages/web-pkg/src/composables/resources/useGetResourceContext.ts Converts async function to vue-concurrency task with abort signal support for cancellable resource context loading

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JammingBen JammingBen force-pushed the fix/endless-propfind-requests branch 4 times, most recently from 626e775 to 5b0c7fe Compare November 5, 2025 14:43
This issue was introduced by the authenticated config loading because it delayed the space loading. This change makes sure both things happen in parallel.

Additionally, changes the `getResourceContext` method to a task so it gets cancelled on unmount, reducing the likelihood of such an endless loop even more.
@JammingBen JammingBen force-pushed the fix/endless-propfind-requests branch from 5b0c7fe to 62ae861 Compare November 5, 2025 15:06
@kulmann kulmann merged commit f7fcacb into main Nov 10, 2025
28 checks passed
@kulmann kulmann deleted the fix/endless-propfind-requests branch November 10, 2025 14:15
openclouders pushed a commit that referenced this pull request Nov 10, 2025
fix: endless propfind requests when opening public links authenticated
@openclouders openclouders mentioned this pull request Nov 10, 2025
1 task
@JammingBen
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
stable-4.2

Questions ?

Please refer to the Backport tool documentation

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opening a public link authenticated results in endless requests

3 participants