Skip to content

[ts] upgrade to 3.5.3#40228

Merged
spalger merged 38 commits intoelastic:masterfrom
spalger:upgrade/ts
Jul 10, 2019
Merged

[ts] upgrade to 3.5.3#40228
spalger merged 38 commits intoelastic:masterfrom
spalger:upgrade/ts

Conversation

@spalger
Copy link
Contributor

@spalger spalger commented Jul 3, 2019

This PR upgrades us to TS 3.5.2. All issues should be resolved. The main differences between these versions include the new readonly support for array types, and slightly stricter handling of index-signatures for unknown values.

@spalger spalger added Team:Operations Kibana-Operations Team v8.0.0 v7.3.0 labels Jul 3, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations

@spalger

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@timroes
Copy link
Contributor

timroes commented Jul 3, 2019

Solved that EditorConfigProvider issue via #40250

@spalger spalger added the v7.4.0 label Jul 3, 2019
@spalger spalger force-pushed the upgrade/ts branch 2 times, most recently from f4ff49d to 9c75ee6 Compare July 5, 2019 14:35
transactionId: transaction.transaction.id,
traceId: transaction.trace.id,
banana: 'ok'
traceId: transaction.trace.id
Copy link
Member

@sorenlouv sorenlouv Jul 9, 2019

Choose a reason for hiding this comment

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

Wat? Thanks for fixing this... 🍌not 🆗

Copy link
Member

Choose a reason for hiding this comment

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

👋

Copy link
Contributor

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

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

Looks good.

@spalger spalger changed the title [ts] upgrade to 3.5.2 [ts] upgrade to 3.5.3 Jul 10, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@spalger
Copy link
Contributor Author

spalger commented Jul 10, 2019

retest

Copy link
Contributor

@cqliu1 cqliu1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@spalger
Copy link
Contributor Author

spalger commented Jul 10, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@spalger spalger merged commit 415e3bc into elastic:master Jul 10, 2019
spalger pushed a commit to spalger/kibana that referenced this pull request Jul 10, 2019
* [ts] upgrade to 3.5.2

* [ts] run from cwd so that relative paths are correct

* move eslint-disable-line comment into jsx attribute

* autofix eslint violations

* avoid generic type, it's not necessary and problematic

* make elasticsearch.cluster optional, many instances don't have them

* remove invalid prop

* expand AllowUnknownProperties to cleanly handle arrays

* esfilter values can sometimes be an array of strings

* allow exception objects to have unknown properties

* define accumulator as a boolean

* fix return type

* return a 404 if beat isn't found after update

* use Object.values for better types

* define return type of get() call

* define value type for Set

* define return value of get()

* define State property type

* use less get(), so ts can infer types

* define Set item type

* map state type

* make default_operator optional, since it's not always defined

* remove seemingly unused prop

* define return type of get() fn

* define inner type for state

* don't define base types are objects with index signatues

* regenerate public api docs

* make indices privileges optional too

* remove unnecessary index-signature from Exception interface

* use variadic _arg instead

* [core/plugin] use Record<string, any> rather than {}

* replace a couple more instances of {}

* revert some unnecessary changes

* remove unused types

* [reporting] output, payload, and meta are required properties

* bump to latest patch version

# Conflicts:
#	x-pack/legacy/plugins/canvas/server/usage/custom_element_collector.ts
#	x-pack/legacy/plugins/canvas/server/usage/workpad_collector.ts
spalger pushed a commit that referenced this pull request Jul 10, 2019
* [ts] upgrade to 3.5.3 (#40228)

* [ts] upgrade to 3.5.2

* [ts] run from cwd so that relative paths are correct

* move eslint-disable-line comment into jsx attribute

* autofix eslint violations

* avoid generic type, it's not necessary and problematic

* make elasticsearch.cluster optional, many instances don't have them

* remove invalid prop

* expand AllowUnknownProperties to cleanly handle arrays

* esfilter values can sometimes be an array of strings

* allow exception objects to have unknown properties

* define accumulator as a boolean

* fix return type

* return a 404 if beat isn't found after update

* use Object.values for better types

* define return type of get() call

* define value type for Set

* define return value of get()

* define State property type

* use less get(), so ts can infer types

* define Set item type

* map state type

* make default_operator optional, since it's not always defined

* remove seemingly unused prop

* define return type of get() fn

* define inner type for state

* don't define base types are objects with index signatues

* regenerate public api docs

* make indices privileges optional too

* remove unnecessary index-signature from Exception interface

* use variadic _arg instead

* [core/plugin] use Record<string, any> rather than {}

* replace a couple more instances of {}

* revert some unnecessary changes

* remove unused types

* [reporting] output, payload, and meta are required properties

* bump to latest patch version

# Conflicts:
#	x-pack/legacy/plugins/canvas/server/usage/custom_element_collector.ts
#	x-pack/legacy/plugins/canvas/server/usage/workpad_collector.ts

* define inner type for Set

* default `config.get()` to any instead of unknown
@spalger
Copy link
Contributor Author

spalger commented Jul 10, 2019

7.x/7.4: 1591c25

@spalger spalger deleted the upgrade/ts branch July 10, 2019 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes Team:Operations Kibana-Operations Team v7.3.0 v7.4.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.