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

[maps] remove xpack.maps.showMapVisualizationTypes #105979

Merged
merged 9 commits into from
Aug 24, 2021

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jul 16, 2021

Remove xpack.maps.showMapVisualizationTypes kibana.yml settings. With removal of tile_map and region_map plugins, this setting no longer has any use.

Telemetry checker updates:

This PR adds a couple of previously unsupported features in the telemetry_check parser.

@Bamieh pushed fixes needed by telemtry to support enums in type interface collector. These changes were required to resolve telemetry build failures between the schema and the usage ts Type matches.

Added in the same PR rather than a separate one to help unblock this PR faster.

Add support for computed terms:

Usage type

const COMPUTED_TERM = 'computed_term';
interface CONSTANT_TERM_INTERFACE {
  [COMPUTED_TERM]?: number;
}
interface Usage {
   computed_interface: CONSTANT_TERM_INTERFACE
}

Schema

{
   computed_interface: {
      computed_term: { type: 'float' }
   }
}

Add support for enums

Usage type

enum TELEMETRY_LAYER_TYPE {
  ES_DOCS = 'es_docs',
  ES_TOP_HITS = 'es_top_hits',
}

interface ClusterCountStats {
  min: number;
  max: number;
  total: number;
  avg: number;
}

type TELEMETRY_LAYER_TYPE_COUNTS_PER_CLUSTER = {
  [key in TELEMETRY_LAYER_TYPE]?: ClusterCountStats;
};

interface Usage {
  layerTypes: TELEMETRY_LAYER_TYPE_COUNTS_PER_CLUSTER;
}

Schema

{
  layerTypes: {
    es_top_hits: {
      min: { type: 'long', _meta: { description: 'min number of es top hits layers per map' } },
      max: { type: 'long', _meta: { description: 'max number of es top hits layers per map' } },
      avg: {
        type: 'float',
        _meta: { description: 'avg number of es top hits layers per map' },
      },
      total: {
        type: 'long',
        _meta: { description: 'total number of es top hits layers in cluster' },
      },
    },
  }
}

@nreese nreese added release_note:breaking [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v8.0.0 labels Jul 16, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@nreese nreese requested review from a team as code owners July 16, 2021 22:10
@joshdover
Copy link
Contributor

Was this configuration already deprecated on the 7.x branch? I'm not finding a deprecation notice in the source tree.

@thomasneirynck
Copy link
Contributor

thomasneirynck commented Jul 20, 2021

@joshdover What do you mean exactly with "deprecated". ie. logging a warning message on startup? fyi #105981

@nreese
Copy link
Contributor Author

nreese commented Aug 18, 2021

@elasticmachine merge upstream

@kibanamachine kibanamachine requested a review from a team as a code owner August 18, 2021 20:08
@Bamieh Bamieh requested a review from afharo August 23, 2021 14:25
@nreese
Copy link
Contributor Author

nreese commented Aug 23, 2021

@elasticmachine merge upstream

Copy link
Member

@afharo afharo left a comment

Choose a reason for hiding this comment

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

LGTM! Just added 1 NIT. Thanks for extending our @kbn/telemetry-tools

packages/kbn-telemetry-tools/src/tools/serializer.ts Outdated Show resolved Hide resolved
@nreese nreese requested a review from a team as a code owner August 23, 2021 16:33
Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

Operations: LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
maps 79.3KB 79.2KB -86.0B

History

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

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

thx, tested and works. Super nice to see this come together.

fwiw - only looked at maps-changes, not the telemetry ones.

We will also need to remove the corresponding configuration from Cloud.

https://github.com/elastic/cloud/search?q=xpack.maps.showMapVisualizationTypes

Could you open a corresponding issue in the Cloud repo? I think these types of changes are handled in batch on the cloud-side. Thx.

@nreese
Copy link
Contributor Author

nreese commented Aug 24, 2021

Could you open a corresponding issue in the Cloud repo? I think these types of changes are handled in batch on the cloud-side. Thx.

Created https://github.com/elastic/cloud/issues/87294 to track removal of xpack.maps.showMapVisualizationTypes in cloud

@nreese nreese merged commit 84be1c5 into elastic:master Aug 24, 2021
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Aug 26, 2021
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 105979 or prevent reminders by adding the backport:skip label.

@nreese nreese added backport:skip This commit does not require backporting and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Aug 26, 2021
@nreese
Copy link
Contributor Author

nreese commented Aug 26, 2021

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 105979 or prevent reminders by adding the backport:skip label.

Added backport:skip label. This change is 8.0 only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation release_note:breaking v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants