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

Remove isDeprecated flag on visType #78820

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

timroes
Copy link
Contributor

@timroes timroes commented Sep 29, 2020

Summary

This is a follow up cleanup from #77683 and removes the introduced isDeprecated flag again.

The isDeprecated and getDeprecationMessage were titly coupled (so you always need to set both or neither), why we don't really need that flag and can just check on the getDeprecationMessage being set or not.

This PR also cleans up some unnice usage of any (we know exactly that we're not passing in any props to that component, so we can use an empty object). Also by shortening the implementation in the visualize_common_editor.tsx, the @ts-expect-error is actually not needed anymore (though don't ask me why 🤷).

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@timroes timroes added chore Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Sep 29, 2020
@timroes timroes requested a review from stratoula September 29, 2020 17:00
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id value diff baseline
visualize 271.7KB -246.0B 271.9KB

page load bundle size

id value diff baseline
regionMap 49.9KB -18.0B 49.9KB
tileMap 49.1KB -18.0B 49.1KB
visualizations 272.6KB -87.0B 272.7KB
total -123.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@timroes timroes requested a review from nreese September 29, 2020 19:24
@timroes timroes marked this pull request as ready for review September 29, 2020 19:24
@timroes timroes requested a review from a team September 29, 2020 19:24
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

LGTM code review

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

LGTM 🤘

@timroes timroes merged commit 14c7a5e into elastic:master Sep 30, 2020
@timroes timroes deleted the cleanup-deprecation-code branch September 30, 2020 08:46
timroes pushed a commit to timroes/kibana that referenced this pull request Sep 30, 2020
phillipb added a commit to phillipb/kibana that referenced this pull request Sep 30, 2020
…aly-detection-partition-field

* 'master' of github.com:elastic/kibana: (37 commits)
  [UiActions] Don't throw an error if there are no compatible actions to execute (elastic#78917)
  [Observability] Kibana nav when docked overlaps the content of the pages. (elastic#78593)
  Invalid `searchSourceJSON` causes saved object migration to fail (elastic#78535)
  update vega version (elastic#78390)
  Fix warning text doesn't get displayed on filters with custom filter name (elastic#78617)
  [ILM] Data tier notices should reflect tier preferences (elastic#78398)
  [APM] Service Map: `Not Defined` option doesn't work properly (elastic#77757)
  Improve invalid field error message at search.aggs.param_types.field (elastic#78587)
  Remove isDeprecated flag on visType (elastic#78820)
  Remove unused elasticsearch.preserverHost setting (elastic#78608)
  Fix condition and adjust tests (elastic#78898)
  [UX] Add percentile selector (elastic#78562)
  [ML] Replace use of rest_total_hits_as_int with track_total_hits (elastic#78423)
  expression service docs (elastic#78774)
  [Functional] Wait for the page to load and then click the new vis button (elastic#78725)
  [TSVB] No data in visualizations with annotations (elastic#78794)
  [kbn/ui-shared-deps] track asset sizes (elastic#78718)
  delete target before building (elastic#78665)
  Move indexPattern.popularizeField into discover (elastic#77668)
  [Security Solution][Resolver]Add backdrop to pills (elastic#78625)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants