Skip to content

Async external storage status checking - #13515

Closed
RobinMcCorkell wants to merge 1 commit into
masterfrom
files-external-ajax
Closed

RobinMcCorkell wants to merge 1 commit into
masterfrom
files-external-ajax

Conversation

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

When loading the settings when external storages are configured, the storage status check now happens via AJAX calls rather than synchronous while the page is loading. This makes the settings nice and fast, even if some storages are down and timeout (slowly).

Fixes #11833

cc @LukasReschke @icewind1991 @PVince81

When loading the settings when external storages are configured, the storage
status check now happens via AJAX calls rather than synchronous while the page
is loading. This makes the settings nice and fast, even if some storages are
down and timeout (slowly).

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.

Close the session

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 4 new issues, 1 updated code elements

@ghost

ghost commented Jan 20, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/7434/
🚀 Test PASSed. 🚀

@PVince81

Copy link
Copy Markdown
Contributor

@Xenopathic the related PR was merged, you might want to continue ?

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.

GET would be more appropriate ?

I guess you also want to use the new AjaxController for that ?

@PVince81

Copy link
Copy Markdown
Contributor

The non-ajax code changes looks good. 😄

@RobinMcCorkell

Copy link
Copy Markdown
Contributor Author

Indeed, this needs a complete refactor to transition to the App Framework.

@PVince81

Copy link
Copy Markdown
Contributor

You might want to stay light on your client-side changes, because of #11884
By the way, I will this your PR here for #11884 because I'm getting rid of "backendStatus" there too 😄

@PVince81

Copy link
Copy Markdown
Contributor

I just realized that it might be painful in the ajax call to resend the whole config to check the backend status. Also, this will be replaced by a hopefully real id here: #11884

For simplicity, you might want to adapt your changes and push them directly in this PR #11884 where you can use the id (no config juggling needed). Might be easier than doing a detour here and adapt later.

@RobinMcCorkell

Copy link
Copy Markdown
Contributor Author

@PVince81 Good idea, this would require a rewrite to work with the AppController anyway, so might as well save the effort and merge it into your PR.

@RobinMcCorkell
RobinMcCorkell deleted the files-external-ajax branch April 22, 2015 08:03
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page is blocked when using files_external and remote host is down

5 participants