Skip to content

ui: upgrade tslint#25823

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
couchand:chore/upgrade-tslint
May 23, 2018
Merged

ui: upgrade tslint#25823
craig[bot] merged 1 commit intocockroachdb:masterfrom
couchand:chore/upgrade-tslint

Conversation

@couchand
Copy link
Copy Markdown
Contributor

Unfortunately a few rules triggered that weren't before, so this also
includes a handful of fixes for those.

Release note: None

@couchand couchand requested review from a team May 22, 2018 21:03
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@couchand
Copy link
Copy Markdown
Contributor Author

This came up in the course of some other development. I was running into a typings problem, and upgrading will fix it.

Copy link
Copy Markdown
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.

Don't see an upgrade in package.json.

ui-lint: $(YARN_INSTALLED_TARGET) $(UI_PROTOS)
$(NODE_RUN) -C $(UI_ROOT) $(STYLINT) -c .stylintrc styl
$(NODE_RUN) -C $(UI_ROOT) $(TSLINT) -c tslint.json -p tsconfig.json --type-check
$(NODE_RUN) -C $(UI_ROOT) $(TSLINT) -c tslint.json -p tsconfig.json
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is the --type-check flag not needed anymore?

@couchand couchand force-pushed the chore/upgrade-tslint branch from 027223e to e490941 Compare May 23, 2018 15:25
@couchand
Copy link
Copy Markdown
Contributor Author

Don't see an upgrade in package.json.

Indeed. Done.

is the --type-check flag not needed anymore?

Indeed not. If you provide a tsconfig.json to it, now tslint automatically typechecks the code if any rules require it.

Unfortunately a few rules triggered that weren't before, so this also
includes a handful of fixes for those.

Release note: None
Copy link
Copy Markdown
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.

Seems legit.

@couchand
Copy link
Copy Markdown
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request May 23, 2018
25823: ui: upgrade tslint r=couchand a=couchand

Unfortunately a few rules triggered that weren't before, so this also
includes a handful of fixes for those.

Release note: None

Co-authored-by: Andrew Couch <andrew@cockroachlabs.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 23, 2018

Build succeeded

@craig craig bot merged commit ea53221 into cockroachdb:master May 23, 2018
@couchand couchand deleted the chore/upgrade-tslint branch May 23, 2018 18:25
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 <andrew@cockroachlabs.com>
couchand added a commit to couchand/cockroach that referenced this pull request May 23, 2018
In that PR, I mechanically replaced identifiers when there were new
warnings about shadowing, but in two places I accidentally changed
semantics due to the shorthand form of object literals.  🤦‍♂️

Release note: None
craig bot pushed a commit that referenced this pull request May 23, 2018
25868: sql: Log event for TRUNCATE TABLE r=a-robinson a=a-robinson

Fixes #25867

Release note (sql change): TRUNCATE TABLE commands are now logged in the
event log.

25871: ui: unbreak `make watch` r=vilterp a=vilterp

By telling Webpack to proxy the path `/` through to the Cockroach process.
Webpack used to serve `/` itself from a static file, but as of #25195 we
generate `/` dynamically in Go, so we can use it to pass login state to
the UI.

Fixes #25858

Release note: None

25875: ui: fix action names broken by #25823 r=couchand a=couchand

In that PR, I mechanically replaced identifiers when there were new
warnings about shadowing, but in two places I accidentally changed
semantics due to the shorthand form of object literals.  🤦‍♂️

Release note: None

Co-authored-by: Alex Robinson <alexdwanerobinson@gmail.com>
Co-authored-by: Pete Vilter <vilterp@cockroachlabs.com>
Co-authored-by: Andrew Couch <andrew@cockroachlabs.com>
couchand added a commit to couchand/cockroach that referenced this pull request May 30, 2018
In the course of the upgrade for cockroachdb#25823, I accidentally disabled all
typechecking on our project.  This restores it, by explicitly invoking
the TypeScript compiler as part of the ui-lint task.

Also included are the fixes for the type problems that snuck in while
typechecking was off.

Fixes: cockroachdb#26255
Release note: None
craig bot pushed a commit that referenced this pull request May 30, 2018
26258: ui: start running typescript compiler r=vilterp a=couchand

In the course of the upgrade for #25823, I accidentally disabled all
typechecking on our project.  This restores it, by explicitly invoking
the TypeScript compiler as part of the ui-lint task.

Also included are the fixes for the type problems that snuck in while
typechecking was off.

Fixes: #26255
Release note: None

Co-authored-by: Andrew Couch <andrew@cockroachlabs.com>
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.

3 participants