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

Modularized Datatable code + merged latest master and fixed conflicts #12

Closed
wants to merge 175 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
81887b7
[Security Solution] JSON view for data is not displayed properly (#87…
angorayc Jan 5, 2021
c69eaf8
[Workplace Search] Move Personal Dashboard link to header (#87244)
scottybollinger Jan 5, 2021
24748bf
[Workplace Search] Add routes for settings (#87239)
scottybollinger Jan 5, 2021
0c41c2d
Update security docs (#87215)
jportner Jan 5, 2021
3fba476
[App Search] Minor var names follow-up (#87258)
constancecchen Jan 5, 2021
eabd708
Disabling connectors for invalid connector types (#86910)
ymao1 Jan 5, 2021
16ad4d6
[Uptime] only render ping status code badge when status code is avail…
dominiqueclarke Jan 5, 2021
a4bbf47
[Fleet] Do not display inactive enrollment token in the agent enrollm…
nchaulet Jan 5, 2021
51efc19
[Security Solutions][Detections] - Fix exception list table referenti…
yctercero Jan 5, 2021
b9a72fe
docs: APM 7.11 updates (#87072)
bmorelli25 Jan 5, 2021
9d12b1c
Flaky test fix for Actions and Triggers app alerts should delete all …
YulNaumenko Jan 5, 2021
bb3659c
[Security Solution][Resolver] - Maintain active node (#86682)
michaelolo24 Jan 5, 2021
76b8c49
[Alerting] Enforces typing of Alert's ActionGroups (#86761)
gmmorris Jan 5, 2021
7ed089c
[Data plugin] Wrong caching for Index pattern fields (#87116)
alexwizp Jan 5, 2021
051be28
Revert "[Alerting] Enforces typing of Alert's ActionGroups (#86761)"
jbudz Jan 5, 2021
dddd8e4
[Alerting UI] Alert and Connector flyouts Save and Save&Test buttons …
YulNaumenko Jan 5, 2021
437a201
Update code ownership file to include geo alerts and tag maps team (#…
Jan 5, 2021
38a7e2b
[Time to Visualize] Align Lens & Visualize Breadcrumbs (#86941)
ThomThomson Jan 5, 2021
e954306
[Security Solution][Detections] Re-enable skipped integration test (#…
rylnd Jan 5, 2021
b0ba4f4
[Security Solution] [Case] Fixes "Case connector cannot be updated wh…
stephmilovic Jan 5, 2021
3e3a809
[Enterprise Search] Add a helper for clearFlashMessages (#87383)
scottybollinger Jan 5, 2021
af4658f
Fix service name wrapping on mobile on inventory (#87390)
smith Jan 5, 2021
933c6a5
[SecuritySolution][Detections] Fix "Closing a signal silently fails w…
banderror Jan 5, 2021
a1f949b
[Security Solution][Detections] Fix severity and risk score overrides…
banderror Jan 5, 2021
31c667a
chore(NA): move es_ui_shared out of __tests__ folder (#87352)
mistic Jan 6, 2021
c0eeb86
Closes #87026 by ensuring the user also has save privileges for APM (…
ogupte Jan 6, 2021
327d0b5
[Security Solution][Detection Rules] Adds a catch-all display tag for…
dplumlee Jan 6, 2021
b4bbd93
[Security Solution] [Detections] Update search after to use one singl…
dhurley14 Jan 6, 2021
1238d55
[Reporting] Use fork of Puppeteer (#87415)
Jan 6, 2021
8c9c72a
[Security Solution][Detections Rules] Adds larger options for page si…
dplumlee Jan 6, 2021
e63e3d8
[APM] Remove top padding from Waterfall container (#87312)
formgeist Jan 6, 2021
34a3982
[Security Solution][Case] Fix comment content when pushing alerts to …
cnasikas Jan 6, 2021
8ead390
[Security Solution][Case] Attach/Sync alert to case: Fix toast messag…
cnasikas Jan 6, 2021
b99ca96
[Alerting] revert the revert of `Enforces typing of Alert's ActionGro…
gmmorris Jan 6, 2021
65acd6d
Use `management.getTitle` for import summary (#87285)
pgayvallet Jan 6, 2021
b0a66da
Remove support for setting server.host to '0' (breaking) (#87114)
watson Jan 6, 2021
74731ef
[Security Solution] Refactor Save Timeline modal to use useForm hook …
patrykkopycinski Jan 6, 2021
9b3e645
Split up plugin dev docs from team docs. Add some welcome landing pag…
stacey-gammon Jan 6, 2021
c012977
[ILM] Update doc links (#87216)
alisonelizabeth Jan 6, 2021
57afacf
[ILM] Delete index_codec option if disabled in UI (#87267)
alisonelizabeth Jan 6, 2021
e68d9f3
Fixes 500 error when using PKI authentication with an incomplete cert…
jportner Jan 6, 2021
450d297
Tweak timeout for failing cloud test (#86671)
chrisronline Jan 6, 2021
a9820a5
Closes #85549 by always rendering the datepicker regardless of data (…
ogupte Jan 6, 2021
7efcdb8
[DOCS] improving production documentation for task manager and alerti…
bmcconaghy Jan 6, 2021
086bc58
[Metrics UI] Responsive fixes for Legend Options / Bottom Drawer (#86…
katefarrar Jan 6, 2021
6c87222
Updated favicons (#87271)
ryankeairns Jan 6, 2021
8a0c8f3
[Maps] term join limit (#86491)
nreese Jan 6, 2021
392db8d
[Dashboard] Fix Missing Legacy Redirect (#87246)
ThomThomson Jan 6, 2021
316346a
skip flaky suite (#87425)
spalger Jan 6, 2021
14fde6d
chore(NA): move console out of __tests__ folder (#87368)
mistic Jan 6, 2021
4b4d6a6
[Uptime] fix multiple scrolls on waterfall view (#87281)
shahzad31 Jan 6, 2021
a95fdbd
[Actions] Exposes the typing for Actions Type Params (#87465)
gmmorris Jan 6, 2021
b4f3a15
[Enterprise Search] Kea mount test helper (#87247)
constancecchen Jan 6, 2021
93262ba
[i18n] Integrate 7.11.0 Translations (#87452)
Bamieh Jan 6, 2021
e0db4a3
[Task Manager] adds more granular polling results to monitoring stats…
gmmorris Jan 6, 2021
bd91c16
[Maps] show map saved objects in visualize listing page (#87165)
nreese Jan 6, 2021
8c74bb3
Also reset engineName and engineNotFound on clearEngine (#87259)
constancecchen Jan 6, 2021
48694bb
chore(NA): move elastic-datemath from mocha into jest (#87351)
mistic Jan 6, 2021
e50ad38
[Security Solution][Detections] Follow up cleanup after two bugfixes …
banderror Jan 6, 2021
72284ab
Bump the CI Node.js version from 14.15.3 to 14.15.4 (#87436)
watson Jan 6, 2021
c57efbb
skip flaky suite (#87541)
spalger Jan 6, 2021
2b5071f
Report audit logging feature usage (#87457)
thomheymann Jan 6, 2021
50bda81
[ML] API integration tests - stabilize saved objects endpoint tests (…
pheyos Jan 6, 2021
9a0c331
chore(NA): move uptime plugin tests out of __tests__ folder (#87416)
mistic Jan 6, 2021
ebc119d
[Security Solution] Fixes elastic/kibana#84757 Use basePath in getApp…
kqualters-elastic Jan 6, 2021
c29adfe
add support for xpack registry environment variable in Docker (#87445)
jalvz Jan 6, 2021
f09f19a
chore(NA): move beats_management plugin tests out of __tests__ folder…
mistic Jan 6, 2021
70c7087
Telemetry plugins esclient migration (#87356)
TinaHeiligers Jan 6, 2021
63f7105
Use doc links service for Dashboard and Discover help links (#87224)
lcawl Jan 6, 2021
ff2d0f4
[Alerting] Edit alert should show and update all actions with deleted…
ymao1 Jan 6, 2021
ab944b4
[dev/build] skip reporting unreliable metrics (#87531)
Jan 6, 2021
6df7498
[Metrics UI] Disable recovery action scheduling (#87061)
Zacqary Jan 6, 2021
3b602f8
[Fleet] Make the encryptedSavedObject plugin optionnal (#87470)
nchaulet Jan 6, 2021
693775c
chore(NA): move canvas plugin tests out of __tests__ folder (#87519)
mistic Jan 6, 2021
5d13535
[Reporting] set viewport to include clip area (#87253)
tsullivan Jan 6, 2021
e5cb55d
[Security Solution] [Cases] Fix flaky jest test (moment.js) (#87518)
stephmilovic Jan 6, 2021
1d49166
[Transform] Fix transform preview for the latest function (#87168)
darnautov Jan 6, 2021
69e2c38
Migrate App services plugins to TS projects (#87294)
mshustov Jan 7, 2021
ba20a74
added missing brace theme import (#87498)
jloleysens Jan 7, 2021
f597119
Expose SO import/export APIs from the service's contract instead of e…
pgayvallet Jan 7, 2021
2d564dd
[APM] Refactoring service and transaction links (#86986)
cauemarcondes Jan 7, 2021
b75cd4b
[DX] Home & SO tagging OSS to TS projects (#87610)
mshustov Jan 7, 2021
81f7108
[Logs UI] Fix alerts recovery (#87369)
Kerry350 Jan 7, 2021
3c7bd2f
[Lens]Test color syncing (#86906)
flash1293 Jan 7, 2021
f170ce2
[Logs UI] Fix the ability to switch to the ratio alert type (#87563)
weltenwort Jan 7, 2021
f4042dd
[ILM] Minor UX improvements (#87515)
alisonelizabeth Jan 7, 2021
794c6b3
[Alerting] Replaced single invalidateApiKey request with the bulk. (#…
YulNaumenko Jan 7, 2021
130a8e7
[Security Solution] [Case] Fix Jira connector test form (#87580)
stephmilovic Jan 7, 2021
91aed6f
[Search][Sessions] Rename Background Sessions to Search Sessions (#87…
lizozom Jan 7, 2021
b203eaf
[uptime] Fix tab focus issue for settings page (#87466)
shahzad31 Jan 7, 2021
14df31b
[SECURITY_SOLUTION][ENDPOINT] Trusted Apps List page Empty State when…
paul-tavares Jan 7, 2021
cdee859
[Time to Visualize] Align Lens & Visualize Top nav Buttons & Behaviou…
ThomThomson Jan 7, 2021
b906b10
[Dashboard] Fix ViewMode Updates from URL (#87405)
ThomThomson Jan 7, 2021
9a17446
Fix broken link to Lens documentation (#87392)
lcawl Jan 7, 2021
9d4ef37
chore(NA): move monitoring out of __tests__ folder (#87556)
mistic Jan 7, 2021
8cb6226
[Maps] fix multi-select query from Controls visualization not always …
nreese Jan 7, 2021
0ac6e62
[Maps] labels for polygons and lines (#86191)
nreese Jan 7, 2021
d681638
chore(NA): move apm plugin tests out of __tests__ folder (#87601)
mistic Jan 7, 2021
24db499
use less strict parser for JSON. tsconfig is in less restictive forma…
mshustov Jan 7, 2021
1b6f737
task_manager to ts project (#87646)
mshustov Jan 7, 2021
1968776
[Canvas] Remove recompose and convert to Typescript expression compon…
Jan 7, 2021
cf641f7
[Security Solution][Endpoint][Admin] malware custom notify user messa…
parkiino Jan 7, 2021
94b6087
[Security Solution][Resolver] Updated baselines to account for re-cen…
michaelolo24 Jan 7, 2021
a22f285
[ILM] Fix hot phase serialization (#87213)
alisonelizabeth Jan 7, 2021
021bb4e
Create runtime field plugin, runtime field editor plugin (#87387)
mattkime Jan 7, 2021
e5fe735
TS project references for apmOss plugin (#87676)
smith Jan 7, 2021
52e3371
[Lens] Transitions for reference-based operations (#83348)
Jan 7, 2021
1c30525
[Alerting UI] Make connector reducer as generic type. (#86857)
YulNaumenko Jan 7, 2021
fdfe655
[Canvas] Register addons async (#86977)
Jan 7, 2021
d03b20a
[Security Solution][Detections] - Exceptions table endpoint list bug …
yctercero Jan 7, 2021
6d6a805
[Index templates] Keep configuration of data stream when editing (#87…
sebelga Jan 7, 2021
354a79a
chore(NA): move watcher plugin tests out of __tests__ folder (#87599)
mistic Jan 7, 2021
b8d21b1
chore(NA): move kbn-es-archiver from mocha into jest (#87699)
mistic Jan 7, 2021
285809e
[Security Solution][Detections] Alert table status update bug (#87243)
dplumlee Jan 7, 2021
91d73cf
skip flaky suite (#87105)
tylersmalley Jan 7, 2021
4986bea
[Security Solution] Unskip cypress tests (#86653)
angorayc Jan 8, 2021
5c4e230
[Security Solution] Refactor Cypress scenarios to use internal contex…
patrykkopycinski Jan 8, 2021
e20817e
chore(NA): move grokdebugger plugin test fixtures out of __tests__ fo…
mistic Jan 8, 2021
db022a3
[ML] Fix earliest and latest texts for date fields (#87482)
qn895 Jan 8, 2021
0ff6965
[Uptime] Fix/details page tabs (#86296)
dominiqueclarke Jan 11, 2021
bfac16e
[Timelion] Fix tests flakiness on suggestion click (#87273)
stratoula Jan 11, 2021
66c8b2a
Remove src/plugins/vis_default_editor -> src/plugins/visualizations c…
alexwizp Jan 11, 2021
a0d33dc
Fix UI glitch on SOM delete confirmation modal (#87623)
pgayvallet Jan 11, 2021
c545b32
[APM] Define placement “Right” to offset tooltip (#87729)
formgeist Jan 11, 2021
55fe83d
[ML] API integration tests - fix sorting in saved object status test …
pheyos Jan 11, 2021
8a21b64
prettify json (#87612)
jloleysens Jan 11, 2021
0549f94
[DX] Management to TS projects (#87660)
TinaHeiligers Jan 11, 2021
dd85399
[Application Usage] Use `Promise.allSettled` during rollups (#87675)
afharo Jan 11, 2021
3eeec0f
[Search] Search Sessions Monitoring Task (#85253)
lizozom Jan 11, 2021
8d385a4
[Uptime] Fix kuery bar dark theme (#87827)
shahzad31 Jan 11, 2021
5c719e9
Document how Node.js should be upgraded (#87450)
watson Jan 11, 2021
a1931ac
[Security Solution][Case] Attach alerts to cases: Tests (#86305)
cnasikas Jan 11, 2021
132e851
[Lens] Add specific IP and Range/Interval sorting to datatable (#87006)
dej611 Jan 11, 2021
628dd17
[Inspector] Use "untitled" filename for panels with no title in dashb…
dej611 Jan 11, 2021
5a69310
[Application Usage] `TrackApplicationView` without `applicationUsageT…
afharo Jan 11, 2021
e5c812e
[Application Usage] Rollups: log.debug instead of log.warn (#87842)
afharo Jan 11, 2021
183cf56
chore(NA): move maps plugin test fixtures out of __tests__ folder (#8…
mistic Jan 11, 2021
e3455ce
[APM] latencyAggregationType is not persisted when navigation to Tran…
cauemarcondes Jan 11, 2021
61987df
[Fleet] use package storage when getting a package (#85337)
neptunian Jan 11, 2021
03ef089
Update dependency vega-tooltip to ^0.25.0 (#87472)
renovate[bot] Jan 11, 2021
f12228e
[Detection Rules] Add 7.11 rules (#87422)
brokensound77 Jan 11, 2021
c2a556b
[CI] Ensure checkout is cleaned up in packer cache script (#87762)
Jan 11, 2021
d4b3ea9
Ensure we use the right duration for messaging on this alert (#87579)
chrisronline Jan 11, 2021
f384c48
[Task Manager] adds additional polling stats to Task Manager monitori…
gmmorris Jan 11, 2021
379f9c9
[Security Solution] ensure that license is preserved when loading pol…
kevinlog Jan 11, 2021
2658855
Adds workaround for hapi h2o2 proxy issue for DELETE REST calls that …
FrankHassanabad Jan 11, 2021
89e7cd6
[maps] abort sync data if any data request fails (#87381)
nreese Jan 11, 2021
ff8d30b
[Monitoring] Stop using constructor.name for logstash pipelines (#87386)
chrisronline Jan 11, 2021
a979799
[ML] Use documentation link service in more ML pages (#87389)
lcawl Jan 11, 2021
1927556
Update reporting docs (#87651)
jportner Jan 11, 2021
b10be9e
[coverage] do not collect stats for mocha (#87859)
dmlemeshko Jan 11, 2021
f8b1cdd
Prevent kibana crashing when multiple processes start APM telemetry t…
rudolf Jan 11, 2021
3ef7bd3
Workaround https://github.com/elastic/elasticsearch/issues/67147 (#87…
rudolf Jan 11, 2021
666af32
[Alerting] Showing confirmation modal on Alert Add/Edit when flyout c…
ymao1 Jan 11, 2021
02f7956
[Uptime] Waterfall Chart - enable timings for local files by leveragi…
dominiqueclarke Jan 11, 2021
cf086b6
[App Search] Minor const cleanup (#87885)
constancecchen Jan 11, 2021
7cd1fa3
[APM] Cleanup: Remove `isValidCoordinateValue` and `getResponseTimeTo…
sorenlouv Jan 11, 2021
1e7c3f8
[Security Solution] Fix sorting on unmapped fields in Timeline Events…
patrykkopycinski Jan 11, 2021
ddf1b67
[Maps] move map embeddable display properties to map settings (#86395)
nreese Jan 11, 2021
f54f155
[Metrics UI] Add APM, uptime and create alert links to overlay (#87883)
phillipb Jan 12, 2021
ca31bd8
[Uptime] Tests/uptime testing utils (#87650)
dominiqueclarke Jan 12, 2021
e828566
chore(NA): move missing apm plugin tests out of __tests__ folder (#87…
mistic Jan 12, 2021
5dca937
chore(NA): move reporting plugin test fixtures out of __tests__ folde…
mistic Jan 12, 2021
46083c0
[Security Solution] Accessibility (a11y) fixes (#87783)
andrew-goldstein Jan 12, 2021
7451288
Remove src/plugins/visualizations -> src/plugins/visualize cyclic dep…
alexwizp Jan 12, 2021
94b02d9
[Lens] Implement deep linking and embedding (#84416)
flash1293 Jan 12, 2021
5598df9
Update dependency vega to ^5.18.0 (#87921)
renovate[bot] Jan 12, 2021
83e8fe8
[Transform] Show destination index mapping warning for the latest tra…
darnautov Jan 12, 2021
31e6697
Do not embedd credentials into ES URL and enable anonymous tests. (#8…
azasypkin Jan 12, 2021
02695ef
[Fleet] Show Count of Agent Policies on Integration Details (#86916)
paul-tavares Jan 12, 2021
d3303f2
[Search] Search Sessions with relative time range (#84405)
Dosant Jan 12, 2021
f298b4d
:truck: Refactor table codebase in modules
dej611 Jan 12, 2021
ffe5fd2
Merge remote-tracking branch 'upstream/master' into lens/eui-data-grid
dej611 Jan 12, 2021
c233e3b
:truck: Move table component tests to its own folder
dej611 Jan 12, 2021
9318950
:bug: Fix deep check for table column header
dej611 Jan 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[ML] Use documentation link service in more ML pages (elastic#87389)
  • Loading branch information
lcawl authored Jan 11, 2021
commit a9797999a1b85c2949770d4cb9e9f109c402965b

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,7 @@ class RuleEditorFlyoutUI extends Component {
};

render() {
const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = this.props.kibana.services.docLinks;
const docsUrl = `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/ml-rules.html`;
const docsUrl = this.props.kibana.services.docLinks.links.ml.customRules;
const {
isFlyoutVisible,
job,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ function prepareTest() {
kibana: {
services: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
DOC_LINK_VERSION: 'jest-metadata-mock-branch',
links: {
ml: {
customRules: 'jest-metadata-mock-url',
},
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ export class ValidateJobUI extends Component {
};

render() {
const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = getDocLinks();
const jobTipsUrl = `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/create-jobs.html#job-tips`;
const jobTipsUrl = getDocLinks().links.ml.anomalyDetectionJobTips;
// only set to false if really false and not another falsy value, so it defaults to true.
const fill = this.props.fill === false ? false : true;
// default to false if not explicitly set to true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ import { ValidateJob } from './validate_job_view';

jest.mock('../../util/dependency_cache', () => ({
getDocLinks: () => ({
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
DOC_LINK_VERSION: 'jest-metadata-mock-branch',
links: {
ml: {
anomalyDetectionJobTips: 'jest-metadata-mock-url',
},
},
}),
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ export const DetailsStepForm: FC<CreateAnalyticsStepProps> = ({
const {
services: { docLinks, notifications },
} = useMlKibana();
const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = docLinks;

const createIndexLink = docLinks.links.apis.createIndex;
const { setFormState } = actions;
const { form, cloneJob, hasSwitchedToEditor, isJobCreated } = state;
const {
Expand Down Expand Up @@ -240,10 +239,7 @@ export const DetailsStepForm: FC<CreateAnalyticsStepProps> = ({
}
)}
<br />
<EuiLink
href={`${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/indices-create-index.html#indices-create-index`}
target="_blank"
>
<EuiLink href={createIndexLink} target="_blank">
{i18n.translate(
'xpack.ml.dataframe.stepDetailsForm.destinationIndexInvalidErrorLink',
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ class OverridesUI extends Component {

const fieldOptions = getSortedFields(fields);
const timestampFormatErrorsList = [this.customTimestampFormatErrors, timestampFormatError];
const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = this.props.kibana.services.docLinks;
const docsUrl = `${ELASTIC_WEBSITE_URL}guide/en/elasticsearch/reference/${DOC_LINK_VERSION}/search-aggregations-bucket-daterange-aggregation.html#date-format-pattern`;
const docsUrl = this.props.kibana.services.docLinks.links.aggs.date_format_pattern;

const timestampFormatHelp = (
<EuiText size="xs">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ function getProps() {
kibana: {
services: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
DOC_LINK_VERSION: 'jest-metadata-mock-branch',
links: {
aggs: {
date_format_pattern: 'jest-metadata-mock-url',
},
},
},
},
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ const props = {
addDanger: () => {},
},
},
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
DOC_LINK_VERSION: 'jest-metadata-mock-branch',
},
},
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ import {
import { withKibana } from '../../../../../../../../src/plugins/kibana_react/public';

function CalendarsListHeaderUI({ totalCount, refreshCalendars, kibana }) {
const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = kibana.services.docLinks;

const docsUrl = `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/ml-calendars.html`;
const docsUrl = kibana.services.docLinks.links.ml.calendars;
return (
<React.Fragment>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="baseline">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ describe('CalendarListsHeader', () => {
kibana: {
services: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
DOC_LINK_VERSION: 'jest-metadata-mock-branch',
links: {
ml: {
calendars: 'jest-metadata-mock-url',
},
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ import {
import { withKibana } from '../../../../../../../../src/plugins/kibana_react/public';

function FilterListsHeaderUI({ totalCount, refreshFilterLists, kibana }) {
const { ELASTIC_WEBSITE_URL, DOC_LINK_VERSION } = kibana.services.docLinks;
const docsUrl = `${ELASTIC_WEBSITE_URL}guide/en/machine-learning/${DOC_LINK_VERSION}/ml-rules.html`;
const docsUrl = kibana.services.docLinks.links.ml.customRules;
return (
<React.Fragment>
<EuiFlexGroup justifyContent="spaceBetween" alignItems="baseline">
Expand Down