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

improve messaging when POST /api/v1/setup fails #7245

Closed
roperzh opened this issue Aug 16, 2022 · 11 comments
Closed

improve messaging when POST /api/v1/setup fails #7245

roperzh opened this issue Aug 16, 2022 · 11 comments
Assignees
Labels
bug Something isn't working as documented ~frontend Frontend-related issue. ~legacy-interface-product-group Associated with the legacy "interface" product group. (No longer exists)
Milestone

Comments

@roperzh
Copy link
Contributor

roperzh commented Aug 16, 2022

Fleet version: 4.18.0

πŸ§‘β€πŸ’» Β Expected behavior

If something goes wrong during the Fleet setup, I get a helpful message.

πŸ’₯ Β Actual behavior

The setup wizard silently goes back to the first step if POST /api/v1/setup fails for any reason.

This might happen in environments where there's a proxy between the UI and the server API, but the easiest way to reproduce is to block the URL from devtools.

Here's a video demonstrating the problem:

Screen.Recording.2022-08-19.at.16.58.59.mov
@roperzh roperzh added bug Something isn't working as documented :reproduce Involves documenting reproduction steps in the issue ~frontend Frontend-related issue. labels Aug 16, 2022
@mikermcneil mikermcneil moved this to πŸ₯š Ready in πŸš€ Release Aug 16, 2022
@mikermcneil mikermcneil added the ~legacy-interface-product-group Associated with the legacy "interface" product group. (No longer exists) label Aug 16, 2022
@mikermcneil mikermcneil removed the ~legacy-interface-product-group Associated with the legacy "interface" product group. (No longer exists) label Aug 16, 2022
@xpkoala
Copy link
Contributor

xpkoala commented Aug 19, 2022

@roperzh Do you have any more information on this one? Do you have steps for reproducing?

@roperzh
Copy link
Contributor Author

roperzh commented Aug 19, 2022

I have updated the issue description with more context and a video demonstrating the issue.

@xpkoala
Copy link
Contributor

xpkoala commented Aug 21, 2022

@roperzh Thanks!
@lukeheath Makes sense to surface an error in this situation?

@xpkoala xpkoala added ~legacy-interface-product-group Associated with the legacy "interface" product group. (No longer exists) and removed :reproduce Involves documenting reproduction steps in the issue labels Aug 21, 2022
@xpkoala xpkoala moved this to πŸ₯š Ready in πŸš€ Release Aug 21, 2022
@lukeheath
Copy link
Member

lukeheath commented Aug 22, 2022

Yep, there is a TODO in the code for this.

We should be making a call to renderFlash like:

renderFlash("error", `We were unable to configure your Fleet instance. Please notify your system administrator.`);

@noahtalerman ^ Thoughts on error message?

@lukeheath lukeheath assigned ghernandez345 and unassigned lukeheath Aug 22, 2022
@ghernandez345 ghernandez345 moved this from πŸ₯š Ready to 🐣 In progress in πŸš€ Release Aug 24, 2022
@ghernandez345
Copy link
Contributor

ghernandez345 commented Aug 25, 2022

@noahtalerman @mike-j-thomas i've put together a quick error message implementation. how do we feel about this?

Image

@lukeheath lukeheath moved this from 🐣 In progress to ✨ β€Ž β€ŽIn review in πŸš€ Release Aug 25, 2022
@roperzh
Copy link
Contributor Author

roperzh commented Aug 25, 2022

I have no data to back this up, but I believe that more often than not the user doing the setup will actually be the administrator? maybe something on the lines of "please ensure the Fleet server can be reached" with a link to either the FAQ or the debugging guide?

@noahtalerman
Copy link
Member

I agree that we can improve the β€œPlease notify your system administrator” instruction.

please ensure the Fleet server can be reached

@roperzh I think we're on the right track here. I think we can clarify "Fleet server can be reached." What does this mean?

@roperzh
Copy link
Contributor Author

roperzh commented Aug 29, 2022

I think we're on the right track here. I think we can clarify "Fleet server can be reached." What does this mean?

@noahtalerman Sorry for the lack of clarity here! it means that the API endpoints can be accessed by the UI, eg: if you have a firewall or a proxy between the Fleet server and the UI, you might not be able to "reach" the server (which we have seen a couple of times.)

does that help clarify things?

@ghernandez345
Copy link
Contributor

πŸ‘πŸ½ updated the copy

@ghernandez345 ghernandez345 moved this from ✨ β€Ž β€ŽIn review to βœ”οΈ β€Ž β€Žβ€Žβ€ŽAwaiting QA in πŸš€ Release Sep 1, 2022
@xpkoala
Copy link
Contributor

xpkoala commented Sep 8, 2022

I'm not entirely sure if the error modal is out of place, but it does look like there is less space between the icon flow at the top and the registration fields that a user interacts with. Do you have any thoughts on this one @ghernandez345 ?

Would that have been touched with this fix?

Screenshot 2022-09-08 at 6 34 17 AM

@xpkoala xpkoala moved this from βœ”οΈ β€Ž β€Žβ€Žβ€ŽAwaiting QA to πŸ₯š Ready in πŸš€ Release Sep 8, 2022
@ghernandez345
Copy link
Contributor

ghernandez345 commented Sep 8, 2022

@xpkoala looked at the code and for some reason the logo was made smaller. That was the only change though on the styles of this page. I'll make the logo larger again

The spacing between the breadcrumbs and the form was not changes and the way it works is that the spacing grows and shrink with the height of the browser viewport. So it will not always look the same depending on how high your browser window is.

@ghernandez345 ghernandez345 moved this from πŸ₯š Ready to βœ”οΈ β€Ž β€Žβ€Žβ€ŽAwaiting QA in πŸš€ Release Sep 8, 2022
@xpkoala xpkoala moved this from βœ”οΈ β€Ž β€Žβ€Žβ€ŽAwaiting QA to βœ… Ready for release in πŸš€ Release Sep 8, 2022
@lukeheath lukeheath added this to the 4.20.0 milestone Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as documented ~frontend Frontend-related issue. ~legacy-interface-product-group Associated with the legacy "interface" product group. (No longer exists)
Development

No branches or pull requests

6 participants