Skip to content

Commit

Permalink
Merge branch 'master' into eui-upgrade-38.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine committed Oct 11, 2021
2 parents dd4ccbb + 804da09 commit d13120a
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 6 deletions.
10 changes: 10 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@
labels: ['Team:Operations', 'release_note:skip'],
enabled: true,
},
{
groupName: 'polyfills',
packageNames: ['core-js'],
matchPackagePatterns: ["polyfill"],
excludePackageNames: ['@loaders.gl/polyfills'],
reviewers: ['team:kibana-operations'],
matchBaseBranches: ['master'],
labels: ['Team:Operations', 'release_note:skip'],
enabled: true,
},
{
groupName: 'vega related modules',
packageNames: ['vega', 'vega-lite', 'vega-schema-url-parser', 'vega-tooltip'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useState, useCallback } from 'react';
import { EuiTableSortingType } from '@elastic/eui';
import { euiTableStorageGetter, euiTableStorageSetter } from '../../components/table';
import { Storage } from '../../../../../../src/plugins/kibana_utils/public';
import { EUI_SORT_ASCENDING } from '../../../common/constants';

interface Pagination {
pageSize: number;
Expand Down Expand Up @@ -77,7 +78,9 @@ export function useTable(storageKey: string) {
);

// get initial state from localStorage
const [sorting, setSorting] = useState<Sorting>(storageData.sort || { sort: {} });
const [sorting, setSorting] = useState<Sorting>(
storageData.sort || { sort: { field: 'name', direction: EUI_SORT_ASCENDING } }
);

const [query, setQuery] = useState('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const ItemTemplate: React.FC<ItemTemplateProps> = (props) => {
},
{
id: 'advanced',
testSubj: 'esItemDetailAdvancedLink',
label: i18n.translate('xpack.monitoring.esItemNavigation.advancedLinkText', {
defaultMessage: 'Advanced',
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ <h1 class="euiTitle euiTitle--xsmall">{{pageTitle || monitoringMain.instance}}</
</a>
<a
ng-if="monitoringMain.instance && (monitoringMain.name === 'nodes' || monitoringMain.name === 'indices')"
data-test-subj="esNodeDetailAdvancedLink"
data-test-subj="esItemDetailAdvancedLink"
kbn-href="#/elasticsearch/{{ monitoringMain.name }}/{{ monitoringMain.resolver }}/advanced"
class="euiTab"
ng-class="{'euiTab-isSelected': monitoringMain.page === 'advanced'}"
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/uptime/public/hooks/use_url_params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { useCallback, useEffect, useMemo } from 'react';
import { useCallback, useEffect } from 'react';
import { parse, stringify } from 'query-string';
import { useLocation, useHistory } from 'react-router-dom';
import { useDispatch, useSelector } from 'react-redux';
Expand All @@ -28,7 +28,7 @@ const getParsedParams = (search: string) => {
export const useGetUrlParams: GetUrlParams = () => {
const { search } = useLocation();

return useMemo(() => getSupportedUrlParams(getParsedParams(search)), [search]);
return getSupportedUrlParams(getParsedParams(search));
};

const getMapFromFilters = (value: any): Map<string, any> | undefined => {
Expand Down
5 changes: 4 additions & 1 deletion x-pack/test/accessibility/apps/index_lifecycle_management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
throw new Error(`Could not find ${policyName} in policy table`);
};

describe('Index Lifecycle Management', async () => {
// FLAKY
// https://github.com/elastic/kibana/issues/114541
// https://github.com/elastic/kibana/issues/114542
describe.skip('Index Lifecycle Management', async () => {
before(async () => {
await esClient.ilm.putLifecycle({ policy: POLICY_NAME, body: POLICY_ALL_PHASES });
await esClient.indices.putIndexTemplate({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function MonitoringElasticsearchNodeDetailProvider({ getService }) {

return new (class ElasticsearchNodeDetail {
async clickAdvanced() {
return testSubjects.click('esNodeDetailAdvancedLink');
return testSubjects.click('esItemDetailAdvancedLink');
}

async getSummary() {
Expand Down

0 comments on commit d13120a

Please sign in to comment.