-
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: use build version for docs links #25863
ui: use build version for docs links #25863
Conversation
Unfortunately a few rules triggered that weren't before, so this also includes a handful of fixes for those. Release note: None
Since the dataFromServer will hold more than just login state, move it out to a new file. Release note: None
Previously, the current version was hard-coded into the docs links, requiring manual effort to keep in sync with the released version of the binary. This change interpolates the `build.VersionPrefix()` instead, so that it's always correct. Fixes: cockroachdb#19024 Release note: None
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.
Nice! Good call to move DataFromServer
into its own file and give it its own type.
Any reason the update TSLint commit is in here?
The tslint update is here because otherwise this doesn't build... I'm not sure the details, when I was flailing around trying to figure it out I saw a suggestion somewhere on the internet to upgrade tslint, so... 🤷♂️ |
bors r+ |
Build failed |
seems to have been a flake, filed #25870 bors r+ |
25863: ui: use build version for docs links r=couchand a=couchand The first commit is reviewed separately here: #25823 #### ui: extract dataFromServer global from login file Since the dataFromServer will hold more than just login state, move it out to a new file. Release note: None #### ui: use build version for docs links Previously, the current version was hard-coded into the docs links, requiring manual effort to keep in sync with the released version of the binary. This change interpolates the `build.VersionPrefix()` instead, so that it's always correct. Fixes: #19024 Release note: None Co-authored-by: Andrew Couch <[email protected]>
Build succeeded |
The first commit is reviewed separately here: #25823
ui: extract dataFromServer global from login file
Since the dataFromServer will hold more than just login state, move it out to a
new file.
Release note: None
ui: use build version for docs links
Previously, the current version was hard-coded into the docs links,
requiring manual effort to keep in sync with the released version
of the binary. This change interpolates the
build.VersionPrefix()
instead, so that it's always correct.
Fixes: #19024
Release note: None