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

ui: use build version for docs links #25863

Merged
merged 3 commits into from
May 23, 2018

Conversation

couchand
Copy link
Contributor

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

couchand added 3 commits May 23, 2018 13:29
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
@couchand couchand requested review from a team May 23, 2018 17:46
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@vilterp vilterp left a 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?

@couchand
Copy link
Contributor Author

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... 🤷‍♂️

@couchand
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented May 23, 2018

Build failed

@couchand
Copy link
Contributor Author

seems to have been a flake, filed #25870

bors r+

craig bot pushed a commit that referenced this pull request May 23, 2018
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]>
@craig
Copy link
Contributor

craig bot commented May 23, 2018

Build succeeded

@craig craig bot merged commit 2224056 into cockroachdb:master May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: current version in docs links is hardcoded
3 participants