-
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
Fix links to the numeral formatting #94858
Conversation
describe('NumberFormatEditor', () => { | ||
beforeAll(() => { | ||
// @see https://github.com/airbnb/enzyme/issues/1553 |
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'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">' + |
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.
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.
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.
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.
💚 Build SucceededMetrics [docs]Page load bundle
History
To update your PR or re-run it, just comment with: |
@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? |
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.
looks good and works well!
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.
Core Changes LGTM
* 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
* 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
* 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
* 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
* 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
Summary
Resolves #84167.
Checklist