Skip to content

Commit

Permalink
Merge branch 'master' into alerting/use-resolve-in-rule-details
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Aug 18, 2021
2 parents dbb8ad5 + 8f7e10a commit 56d320c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import React, { useState } from 'react';
import React, { useState, useEffect } from 'react';

import { EuiIconTip, EuiInMemoryTable, EuiBasicTableColumn, EuiLink } from '@elastic/eui';
import type { EuiSearchBarOnChangeArgs } from '@elastic/eui';
Expand Down Expand Up @@ -71,7 +71,11 @@ export const RoleMappingsTable: React.FC<Props> = ({
return _rm;
}) as SharedRoleMapping[];

const [items, setItems] = useState(standardizedRoleMappings);
const [items, setItems] = useState([] as SharedRoleMapping[]);

useEffect(() => {
setItems(standardizedRoleMappings);
}, [roleMappings]);

const attributeNameCol: EuiBasicTableColumn<SharedRoleMapping> = {
field: 'attribute',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ export const createJobFnFactory: CreateJobFnFactory<
validateUrls([jobParams.relativeUrl]);

return {
isDeprecated: true,
...jobParams,
headers: serializedEncryptedHeaders,
spaceId: reporting.getSpaceId(req, logger),
forceNow: new Date().toISOString(),
...jobParams,
};
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const createJobFnFactory: CreateJobFnFactory<
// return the payload
return {
...jobParams,
isDeprecated: true,
headers: serializedEncryptedHeaders,
spaceId: reporting.getSpaceId(req, logger),
forceNow: new Date().toISOString(),
Expand Down
8 changes: 5 additions & 3 deletions x-pack/test/functional/apps/lens/drag_and_drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['visualize', 'lens', 'common', 'header']);
const retry = getService('retry');

describe('lens drag and drop tests', () => {
// FLAKY: https://github.com/elastic/kibana/issues/108352
describe.skip('basic drag and drop', () => {
describe('basic drag and drop', () => {
it('should construct the basic split xy chart', async () => {
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickVisType('lens');
await PageObjects.lens.goToTimeRange();
await PageObjects.header.waitUntilLoadingHasFinished();
await PageObjects.lens.dragFieldToWorkspace('@timestamp');
await retry.try(async () => {
await PageObjects.lens.dragFieldToWorkspace('@timestamp');
});

expect(await PageObjects.lens.getDimensionTriggerText('lnsXY_xDimensionPanel')).to.eql(
'@timestamp'
Expand Down

0 comments on commit 56d320c

Please sign in to comment.