-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Enterprise Search] Minor Elastic Cloud setup guide instructions fixes #89620
Conversation
{i18n.translate( | ||
'xpack.enterpriseSearch.setupGuide.cloud.step1.instruction1LinkText', | ||
{ defaultMessage: 'edit your deployment' } | ||
)} | ||
</EuiLink> | ||
) : ( | ||
'Visit the Elastic Cloud console' | ||
i18n.translate( | ||
'xpack.enterpriseSearch.setupGuide.cloud.step1.instruction1LinkText', | ||
{ defaultMessage: 'edit your deployment' } | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about DRYing this out but was lazy about it, would prefer to address later if possible since there's some time considerations in getting this fix in
@@ -34,10 +34,16 @@ export const CloudSetupInstructions: React.FC<Props> = ({ productName, cloudDepl | |||
values={{ | |||
editDeploymentLink: cloudDeploymentLink ? ( | |||
<EuiLink href={cloudDeploymentLink + '/edit'} target="_blank"> | |||
edit your deployment | |||
{i18n.translate( | |||
'xpack.enterpriseSearch.setupGuide.cloud.step1.instruction1LinkText', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the 1 in instruction1LinkText
intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, they are all intentional in that they match the parent i18n ID, e.g.:
xpack.enterpriseSearch.setupGuide.cloud.step1.instruction1
xpack.enterpriseSearch.setupGuide.cloud.step3.instruction1
xpack.enterpriseSearch.setupGuide.cloud.step5.instruction1
I numbered them in case we ever update instruction copy to have multiple paragraphs, then we can just do instruction1, instruction2, etc. Not 100% sure if that's correct as a best practice, but it's the way it currently is already
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
elastic#89620) * Fix Cloud instructions copy when cloudDeploymentLink is missing * Fix missing i18n translations on copy nested within links Co-authored-by: Kibana Machine <[email protected]>
#89620) (#89761) * Fix Cloud instructions copy when cloudDeploymentLink is missing * Fix missing i18n translations on copy nested within links Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
#89620) (#89760) * Fix Cloud instructions copy when cloudDeploymentLink is missing * Fix missing i18n translations on copy nested within links Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Summary
Matt found a bug with our Cloud instructions slated to ship in 7.11: If
cloudDeploymentLink
is empty/not passed in, the resulting message isbut should be
Checklist