Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MM-53294] Fix bad user feedback on server URL validation when plugins are disabled #2772

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

devinbinnie
Copy link
Member

Summary

When a user tries to enter a server URL that has plugins disabled, the app will tell the user that their server isn't valid, even though it is.

This PR changes the logic to not require the user of the plugins API to get the server status.

Ticket Link

https://mattermost.atlassian.net/browse/MM-53294
Closes #2766

Fix bad user feedback on server URL validation when plugins are disabled

@devinbinnie devinbinnie added the 2: Dev Review Requires review by a core committer label Jun 22, 2023
@devinbinnie devinbinnie added this to the v5.5.0 milestone Jun 22, 2023
Copy link
Contributor

@larkox larkox left a comment

Choose a reason for hiding this comment

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

Only one nit. Approving to not block it.

@@ -343,7 +343,7 @@ export class ServerViewState {
const server = new MattermostServer({name: 'temp', url: parsedURL.toString()}, false);
const serverInfo = new ServerInfo(server);
try {
const remoteInfo = await serverInfo.fetchRemoteInfo();
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: this variable is no longer storing remoteInfo, but configData, so it should be renamed.

Similar in the many other places this function is called on this file.

Copy link
Member Author

Choose a reason for hiding this comment

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

It actually is still storing the RemoteInfo type, it's just not necessarily complete at this point. So I think the naming is okay.

@devinbinnie devinbinnie added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Jun 23, 2023
@devinbinnie devinbinnie merged commit f51a7d3 into mattermost:master Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Mattermost not detected in login screen, when server has plugins disabled
4 participants