Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fail more softly on homeserver liveliness errors #3067

Merged
merged 7 commits into from
Jun 7, 2019

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Jun 5, 2019

Fixes element-hq/element-web#9828
Requires matrix-org/matrix-js-sdk#938
Requires element-hq/element-web#9960

This performs liveliness checks on the auth pages to try and show a friendlier error. Earlier checks in the app startup are expected to not block the app from loading on such failures.

image
image

This performs liveliness checks on the auth pages to try and show a friendlier error. Earlier checks in the app startup are expected to not block the app from loading on such failures.

See element-hq/element-web#9828
@turt2live
Copy link
Member Author

This and the partner PRs are blocked on a proper design for the error.

@turt2live turt2live removed the notready label Jun 5, 2019
@turt2live turt2live requested a review from a team June 5, 2019 18:16
src/components/structures/auth/ForgotPassword.js Outdated Show resolved Hide resolved
src/components/structures/auth/Login.js Outdated Show resolved Hide resolved
src/components/structures/auth/Login.js Outdated Show resolved Hide resolved
src/utils/AutoDiscoveryUtils.js Outdated Show resolved Hide resolved
@turt2live turt2live requested a review from dbkr June 6, 2019 18:20
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

otherwise I think this is basically there now

src/components/structures/auth/ForgotPassword.js Outdated Show resolved Hide resolved
@@ -447,6 +467,7 @@ module.exports = React.createClass({
onEditServerDetailsClick={onEditServerDetailsClick}
flows={this.state.flows}
serverConfig={this.props.serverConfig}
canSubmit={this.state.serverIsAlive}
Copy link
Member

Choose a reason for hiding this comment

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

same here for not preventing form submission without an obvious way to re-check (for registration I guess you could toggle server-type but the user wouldn't know to do that).

Copy link
Member Author

Choose a reason for hiding this comment

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

Registration has a different phases cycle from the other 3, so I'm not convinced I need to fix the form here. There is no button to click if the server is down, regardless of liveliness checks: it's just a spinner.

@turt2live turt2live requested a review from dbkr June 7, 2019 13:27
But still check so we can clear any errors, maybe
@turt2live turt2live merged commit 795a273 into develop Jun 7, 2019
@turt2live turt2live deleted the travis/fail-fast-but-not-too-fast branch June 7, 2019 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
X-Release-Blocker This affects the current release cycle and must be solved for a release to happen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail-fast behavior on blocked matrix.org/vector.im connections
2 participants