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

[App Search] Role mappings migration part 2 #94461

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { EngineTypes } from '../components/engine/types';

export const defaultEngine = {
id: 'e1',
name: 'engine1',
type: EngineTypes.default,
language: null,
result_fields: {},
};

export const indexedEngine = {
id: 'e2',
name: 'engine2',
type: EngineTypes.indexed,
language: null,
result_fields: {},
};

export const engines = [defaultEngine, indexedEngine];
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ConfiguredLimits, Account, Role } from './types';

import { getRoleAbilities } from './utils/role';

interface AppValues {
export interface AppValues {
scottybollinger marked this conversation as resolved.
Show resolved Hide resolved
ilmEnabled: boolean;
configuredLimits: ConfiguredLimits;
account: Account;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ export const ROLE_MAPPINGS_TITLE = i18n.translate(
'xpack.enterpriseSearch.appSearch.roleMappings.title',
{ defaultMessage: 'Role Mappings' }
);

export const DELETE_ROLE_MAPPINGS_MESSAGE = i18n.translate(
'xpack.enterpriseSearch.appSearch.deleteRoleMappingMessage',
{
defaultMessage:
'Are you sure you want to permanently delete this mapping? This action is not reversible and some users might lose access.',
}
);
Loading