-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
UI: bugfixes: footer alignment and bad server responses #5703
Conversation
I'm not sure we need to slip this in ASAP. Yes, the footer's position in master isn't ideal. However, this PR still has a bug in the footer positioning. Specifically, with a fresh new cluster, when the "opt in" banner is showing, the footer is hidden just below the bottom edge of the window: The footer reappears when I close the banner: @petermattis: any thoughts here? |
e23505d
to
527c411
Compare
I'll take another look, but this is a big visual improvement. |
OK, let's get this in the next build, and also get a fix for the case where the banner is visible later. Comments from the review on Reviewable.io |
527c411
to
c3da613
Compare
Added a fix for bad responses from external requests. |
@@ -128,6 +128,7 @@ module Models { | |||
m.request<VersionList>({ | |||
url: `${COCKROACHLABS_ADDR}/api/clusters/updates?uuid=${this.clusterID}&version=${nodeStatuses[0].build_info.tag}`, | |||
config: Utils.Http.XHRConfig, | |||
background: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you also need this on the other methods like unregister
? It's still hanging on those.
ui/ts/util/http.ts, line 6 [r3] (raw file):
Comments from the review on Reviewable.io
|
ui/ts/util/http.ts, line 6 [r3] (raw file):
Comments from the review on Reviewable.io |
This is expected - it's actually the error we're getting back from the Cockroach Labs server. We have an error parsing it because it's not JSON, but now we just log and continue, whereas before this error was bubbled up. |
02e341b
to
bbf72a8
Compare
bbf72a8
to
d20fe13
Compare
for commit #2 tested on a hacked up version of reg server that sleeps for 10 seconds on all HTTP requests Review status: 0 of 5 files reviewed at latest revision, 2 unresolved discussions. Comments from the review on Reviewable.io |
A bug caused the footer to be misaligned on certain pages.
Before:
After:
This change is