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

Fix links to the numeral formatting #94858

Merged
merged 2 commits into from
Mar 18, 2021
Merged

Conversation

dokmic
Copy link
Contributor

@dokmic dokmic commented Mar 17, 2021

Summary

  • Fix a link to the numeral formatting in the index pattern field settings.
  • Fix links to the numeral formatting in the advanced settings.

Resolves #84167.

Checklist

@dokmic dokmic requested review from a team as code owners March 17, 2021 20:28
@dokmic dokmic added release_note:fix Feature:FieldFormatters Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages v7.13.0 v8.0.0 review labels Mar 17, 2021
describe('NumberFormatEditor', () => {
beforeAll(() => {
// @see https://github.com/airbnb/enzyme/issues/1553
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure what this is specifically referencing. Otherwise the code changes look good.

@@ -417,7 +417,7 @@ export function getUiSettings(): Record<string, UiSettingsParams<unknown>> {
'data.advancedSettings.format.numberFormat.numeralFormatLinkText',
values: {
numeralFormatLink:
'<a href="http://numeraljs.com/" target="_blank" rel="noopener noreferrer">' +
'<a href="https://www.elastic.co/guide/en/kibana/current/numeral.html" target="_blank" rel="noopener">' +
Copy link
Contributor

@mattkime mattkime Mar 17, 2021

Choose a reason for hiding this comment

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

We should check to see if we can use the docLinks service for this but there's no reason to block this PR.


I spoke to the kibana core team and they're open to doing this - we should create an issue for this. I'll leave this in your hands and help out as needed.

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

Left a couple of comments, just need to resolve the ambiguous comment. I think it would be good to backport this to 7.12 and 7.11 if its not too much trouble.

@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
core 433.4KB 433.4KB +95.0B
indexPatternFieldEditor 82.6KB 82.8KB +286.0B
total +381.0B

History

  • 💔 Build #113806 failed 286cb84930e5e46df9dce0f40a1b140c8c6b8f2d

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

@dokmic
Copy link
Contributor Author

dokmic commented Mar 18, 2021

@mattkime I've updated the comment to clarify the workaround. There were some failed tests, so I pushed other changes. Could you please take another look?

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

looks good and works well!

Copy link
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

Core Changes LGTM

@dokmic dokmic merged commit e9568ce into elastic:master Mar 18, 2021
dokmic added a commit to dokmic/kibana that referenced this pull request Mar 18, 2021
* Fix links to the numeral formatting in the advanced settings (elastic#84167)
* Fix a link to the numeral formatting in the index pattern field settings (elastic#84167)
# Conflicts:
#	docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
dokmic added a commit to dokmic/kibana that referenced this pull request Mar 18, 2021
* Fix links to the numeral formatting in the advanced settings (elastic#84167)
* Fix a link to the numeral formatting in the index pattern field settings (elastic#84167)
# Conflicts:
#	docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
#	src/core/public/doc_links/doc_links_service.ts
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/number.tsx
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx
dokmic added a commit to dokmic/kibana that referenced this pull request Mar 18, 2021
* Fix links to the numeral formatting in the advanced settings (elastic#84167)
* Fix a link to the numeral formatting in the index pattern field settings (elastic#84167)
# Conflicts:
#	docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
#	src/core/public/doc_links/doc_links_service.ts
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/number.tsx
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx
dokmic added a commit that referenced this pull request Mar 18, 2021
* Fix links to the numeral formatting in the advanced settings (#84167)
* Fix a link to the numeral formatting in the index pattern field settings (#84167)
# Conflicts:
#	docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
dokmic added a commit that referenced this pull request Mar 18, 2021
* Fix links to the numeral formatting in the advanced settings (#84167)
* Fix a link to the numeral formatting in the index pattern field settings (#84167)
# Conflicts:
#	docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
#	src/core/public/doc_links/doc_links_service.ts
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/number.tsx
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx
dokmic added a commit that referenced this pull request Mar 18, 2021
* Fix links to the numeral formatting in the advanced settings (#84167)
* Fix a link to the numeral formatting in the index pattern field settings (#84167)
# Conflicts:
#	docs/development/core/public/kibana-plugin-core-public.doclinksstart.md
#	src/core/public/doc_links/doc_links_service.ts
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/bytes/__snapshots__/bytes.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/__snapshots__/number.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/number/number.tsx
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/__snapshots__/percent.test.tsx.snap
#	src/plugins/index_pattern_field_editor/public/components/field_format_editor/editors/percent/percent.test.tsx
@dokmic dokmic deleted the bugfix/84167 branch March 22, 2021 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:FieldFormatters Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages release_note:fix review v7.11.3 v7.12.1 v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Doc] Replace wrong links to external numeral docs, instead use Kibana docs
4 participants