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

[Data] Align deprecation messages #107175

Merged
merged 24 commits into from
Aug 3, 2021

Conversation

lizozom
Copy link
Contributor

@lizozom lizozom commented Jul 29, 2021

Summary

Depends on #107169

Align deprecation messages with #106973

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@lizozom lizozom added v8.0.0 Team:AppServices release_note:skip Skip the PR/issue when compiling release notes docs auto-backport Deprecated - use backport:version if exact versions are needed v7.15.0 labels Jul 29, 2021
@lizozom lizozom self-assigned this Jul 29, 2021
@lizozom lizozom requested a review from a team as a code owner July 29, 2021 14:54
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

LGTM. thanks for aligning!

@@ -9,8 +9,8 @@ import { IndexPatternFieldBase } from '@kbn/es-query';
import { FieldSpec, IndexPattern } from '../..';

/**
* @deprecated
* Use IndexPatternField or FieldSpec instead
* @deprecated Use `IndexPatternField` or `FieldSpec` instead
Copy link
Contributor

Choose a reason for hiding this comment

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

I think if to use {@link IndexPatternField} in such cases, then it will nicely popup as a link in docs

@lizozom lizozom requested a review from a team as a code owner August 1, 2021 13:06
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

API count

id before after diff
data 3944 3978 +34

API count missing comments

id before after diff
data 3396 3425 +29

History

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

cc @lizozom

@lizozom lizozom merged commit 7af1ec2 into elastic:master Aug 3, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 107175

lizozom added a commit to lizozom/kibana that referenced this pull request Aug 3, 2021
* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* Align deprecation messages

* fixes

* casting

* Code review

* Update meta_filter.ts

* Update types.ts

* Deprecate by 8.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md
#	src/plugins/data/server/server.api.md
lizozom added a commit that referenced this pull request Aug 3, 2021
* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* Align deprecation messages

* fixes

* casting

* Code review

* Update meta_filter.ts

* Update types.ts

* Deprecate by 8.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.buildqueryfromfilters.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.esqueryconfig.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.filter.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.ifieldsubtype.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.kuerynode.md
#	src/plugins/data/server/server.api.md
streamich pushed a commit to vadimkibana/kibana that referenced this pull request Aug 8, 2021
* Move more utils to package and cleanup API

* docs and imports

* better imports

* change comment

* Better docs

* typos

* typo

* Align deprecation messages

* fixes

* casting

* Code review

* Update meta_filter.ts

* Update types.ts

* Deprecate by 8.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
*/
const convertRangeFilterToTimeRangeString = oldConvertRangeFilterToTimeRangeString;

/**
* Filter helpers namespace:
* @deprecated Please import helpers from the package kbn/es-query directly. This import will be removed in v8.0.0.
* @deprecated Import helpers from the "@kbn/es-query" package directly instead.
* @removeBy 8.1
*/
export const esFilters = {
Copy link
Contributor

Choose a reason for hiding this comment

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

@lizozom I'm getting this deprecation warning in a WIP branch, but this constant does not exist in @kbn/es-query... is this known/forthcoming?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed docs release_note:skip Skip the PR/issue when compiling release notes v7.15.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants