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

[Discover] Rename Index pattern to Data view #110402

Conversation

DianaDerevyankina
Copy link
Contributor

@DianaDerevyankina DianaDerevyankina commented Aug 27, 2021

Part of #114083

Summary

Renamed index patterns to data views in Discover UI.

image

image

image

image

Checklist

For maintainers

@DianaDerevyankina DianaDerevyankina added Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.16.0 labels Aug 27, 2021
@DianaDerevyankina DianaDerevyankina self-assigned this Aug 27, 2021
@timroes timroes added Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Aug 31, 2021
@DianaDerevyankina DianaDerevyankina added backport:skip This commit does not require backporting and removed v7.16.0 labels Sep 29, 2021
# Conflicts:
#	src/plugins/discover/public/application/components/doc/doc.tsx
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
@DianaDerevyankina
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@VladLasitsa VladLasitsa left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -98,7 +98,7 @@ export function Doc(props: DocProps) {
<EuiLink href={indexExistsLink} target="_blank">
<FormattedMessage
id="discover.doc.somethingWentWrongDescriptionAddon"
defaultMessage="Please ensure the index exists."
defaultMessage="Please ensure the data view exists."
Copy link
Contributor

Choose a reason for hiding this comment

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

This is referring to ES index and should not be renamed.

@@ -107,8 +107,8 @@ export function resolveIndexPattern(
}

if (stateVal && !stateValFound) {
const warningTitle = i18n.translate('discover.valueIsNotConfiguredIndexPatternIDWarningTitle', {
defaultMessage: '{stateVal} is not a configured index pattern ID',
const warningTitle = i18n.translate('discover.valueIsNotConfiguredDataViewIDWarningTitle', {
Copy link
Contributor

@majagrubic majagrubic Oct 5, 2021

Choose a reason for hiding this comment

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

I don't think we should be changing the keys just yet. I would leave this for a code-cleanup phase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess it's fine as in other renaming PRs keys were updated too

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with Dziana here, let's keep it as it

@stratoula stratoula marked this pull request as ready for review October 6, 2021 10:53
@stratoula stratoula requested a review from a team as a code owner October 6, 2021 10:53
@elasticmachine
Copy link
Contributor

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

@DianaDerevyankina
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

LGTM

@DianaDerevyankina DianaDerevyankina changed the base branch from master to index_patterns_to_data_views_user_content_feature_branch October 7, 2021 13:24
@DianaDerevyankina DianaDerevyankina requested review from a team as code owners October 7, 2021 13:24
@DianaDerevyankina DianaDerevyankina requested review from pzl and paul-tavares and removed request for a team October 7, 2021 13:24
@DianaDerevyankina DianaDerevyankina force-pushed the discover-index-pattern-to-data-view branch from 43a1f38 to f22e5f9 Compare October 7, 2021 14:10
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

cc @dziyanadzeraviankina

@DianaDerevyankina DianaDerevyankina merged commit d393aeb into elastic:index_patterns_to_data_views_user_content_feature_branch Oct 8, 2021
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 Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants