[DX] Upgrade prettier to v2.4.0 (#112359)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2021-09-19 22:34:30 -07:00 committed by GitHub
parent f1e9668aa2
commit 4681a80317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2937 changed files with 28631 additions and 30518 deletions

View file

@ -9,23 +9,25 @@ import { extractQueryParams } from '../../../shared_imports';
import { getRouter } from '../../services';
import { OPEN_DETAIL_PANEL, CLOSE_DETAIL_PANEL } from '../action_types';
export const openDetailPanel = ({ name }) => (dispatch) => {
const { history } = getRouter();
const search = history.location.search;
const { cluster: clusterName } = extractQueryParams(search);
export const openDetailPanel =
({ name }) =>
(dispatch) => {
const { history } = getRouter();
const search = history.location.search;
const { cluster: clusterName } = extractQueryParams(search);
if (clusterName !== name) {
// Allow the user to share a deep link to this job.
history.replace({
search: `?cluster=${name}`,
if (clusterName !== name) {
// Allow the user to share a deep link to this job.
history.replace({
search: `?cluster=${name}`,
});
}
dispatch({
type: OPEN_DETAIL_PANEL,
payload: { clusterName: name },
});
}
dispatch({
type: OPEN_DETAIL_PANEL,
payload: { clusterName: name },
});
};
};
export const closeDetailPanel = () => (dispatch) => {
dispatch({

View file

@ -97,14 +97,16 @@ export const editCluster = (cluster) => async (dispatch) => {
}
};
export const startEditingCluster = ({ clusterName }) => (dispatch) => {
dispatch(loadClusters());
export const startEditingCluster =
({ clusterName }) =>
(dispatch) => {
dispatch(loadClusters());
dispatch({
type: EDIT_CLUSTER_START,
payload: { clusterName },
});
};
dispatch({
type: EDIT_CLUSTER_START,
payload: { clusterName },
});
};
export const stopEditingCluster = () => (dispatch) => {
// Load the clusters to refresh the one we just edited.

View file

@ -22,7 +22,8 @@ export interface RemoteClustersPluginSetup {
}
export class RemoteClustersUIPlugin
implements Plugin<RemoteClustersPluginSetup, void, Dependencies, any> {
implements Plugin<RemoteClustersPluginSetup, void, Dependencies, any>
{
constructor(private readonly initializerContext: PluginInitializerContext) {}
setup(

View file

@ -26,7 +26,8 @@ export interface RemoteClustersPluginSetup {
}
export class RemoteClustersServerPlugin
implements Plugin<RemoteClustersPluginSetup, void, any, any> {
implements Plugin<RemoteClustersPluginSetup, void, any, any>
{
licenseStatus: LicenseStatus;
log: Logger;
config: ConfigType;

View file

@ -74,11 +74,10 @@ export const register = (deps: RouteDependencies): void => {
try {
const body = serializeCluster({ name, hasDeprecatedProxySetting });
const {
body: updateClusterResponse,
} = await clusterClient.asCurrentUser.cluster.putSettings({
body,
});
const { body: updateClusterResponse } =
await clusterClient.asCurrentUser.cluster.putSettings({
body,
});
const acknowledged = get(updateClusterResponse, 'acknowledged');
const cluster = get(updateClusterResponse, `persistent.cluster.remote.${name}`);