Skip to content

remove duplicative types from search_source types#166760

Merged
nreese merged 8 commits intoelastic:mainfrom
nreese:search_source_types
Oct 2, 2023
Merged

remove duplicative types from search_source types#166760
nreese merged 8 commits intoelastic:mainfrom
nreese:search_source_types

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Sep 19, 2023

Found duplicated type ShardFailure in data plugin. Same type removed from src/plugins/data/public/shard_failure_modal/shard_failure_types.ts in #165512.

This PR removes some unneeded types from src/plugins/data/common/search/search_source/types.ts.

@nreese nreese marked this pull request as ready for review September 19, 2023 22:12
@nreese nreese requested review from a team as code owners September 19, 2023 22:12
@nreese nreese added release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v8.11.0 labels Sep 19, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
Contributor

@lukasolson lukasolson 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 the cleanup!

it('should append default sort options', function () {
const defaultSortOptions = {
unmapped_type: 'boolean',
unmapped_type: 'boolean' as 'boolean',
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Export type FieldSortOptions and use it here to avoid casting:

    const defaultSortOptions: FieldSortOptions = {
      unmapped_type: 'boolean',
    };

Copy link
Contributor

@ppisljar ppisljar 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!

@nreese
Copy link
Contributor Author

nreese commented Sep 25, 2023

I am going to hold off merging this one until all Kibana TS problems have been sorted out.

@nreese
Copy link
Contributor Author

nreese commented Oct 2, 2023

@elasticmachine merge upstream

@kibana-ci
Copy link

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #36 / core plugins rendering service exposes plugin config settings to unauthenticated users
  • [job] [logs] FTR Configs #20 / EPM Endpoints When installing system integration in multiple spaces should install kibana assets

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
data 2577 2553 -24
Unknown metric groups

API count

id before after diff
data 3311 3287 -24

References to deprecated APIs

id before after diff
discover 19 15 -4

History

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

@nreese nreese merged commit 40303a8 into elastic:main Oct 2, 2023
@kibanamachine kibanamachine added the backport:skip This PR does not require backporting label Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v8.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants