Skip to content

Commit f2750b8

Browse files
committed
address comments
1 parent f389948 commit f2750b8

File tree

15 files changed

+34
-34
lines changed

15 files changed

+34
-34
lines changed

x-pack/plugins/apm/server/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ import { createApmApi } from './routes/create_apm_api';
4141
import { apmIndices, apmTelemetry } from './saved_objects';
4242
import { createElasticCloudInstructions } from './tutorial/elastic_cloud';
4343
import { uiSettings } from './ui_settings';
44-
import type { AplPluginRequestHandlerContext } from './routes/typings';
44+
import type { ApmPluginRequestHandlerContext } from './routes/typings';
4545

4646
export interface APMPluginSetup {
4747
config$: Observable<APMConfig>;
4848
getApmIndices: () => ReturnType<typeof getApmIndices>;
4949
createApmEventClient: (params: {
5050
debug?: boolean;
5151
request: KibanaRequest;
52-
context: AplPluginRequestHandlerContext;
52+
context: ApmPluginRequestHandlerContext;
5353
}) => Promise<ReturnType<typeof createApmEventClient>>;
5454
}
5555

@@ -166,7 +166,7 @@ export class APMPlugin implements Plugin<APMPluginSetup> {
166166
}: {
167167
debug?: boolean;
168168
request: KibanaRequest;
169-
context: AplPluginRequestHandlerContext;
169+
context: ApmPluginRequestHandlerContext;
170170
}) => {
171171
const [indices, includeFrozen] = await Promise.all([
172172
boundGetApmIndices(),

x-pack/plugins/apm/server/routes/create_api/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { strictKeysRt } from '../../../common/runtime_types/strict_keys_rt';
1515
import { APMConfig } from '../..';
1616
import { ServerAPI } from '../typings';
1717
import { jsonRt } from '../../../common/runtime_types/json_rt';
18-
import type { AplPluginRequestHandlerContext } from '../typings';
18+
import type { ApmPluginRequestHandlerContext } from '../typings';
1919

2020
const debugRt = t.exact(
2121
t.partial({
@@ -76,7 +76,7 @@ export function createApi() {
7676

7777
(router[typedRouterMethod] as RouteRegistrar<
7878
typeof typedRouterMethod,
79-
AplPluginRequestHandlerContext
79+
ApmPluginRequestHandlerContext
8080
>)(
8181
{
8282
path,

x-pack/plugins/apm/server/routes/typings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ export interface Route<
6868
/**
6969
* @internal
7070
*/
71-
export interface AplPluginRequestHandlerContext extends RequestHandlerContext {
71+
export interface ApmPluginRequestHandlerContext extends RequestHandlerContext {
7272
licensing: LicensingApiRequestHandlerContext;
7373
}
7474

7575
export type APMRequestHandlerContext<
7676
TRouteParams = {}
77-
> = AplPluginRequestHandlerContext & {
77+
> = ApmPluginRequestHandlerContext & {
7878
params: TRouteParams & { query: { _debug: boolean } };
7979
config: APMConfig;
8080
logger: Logger;

x-pack/plugins/cross_cluster_replication/server/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ export interface CcrRequestHandlerContext extends RequestHandlerContext {
4141
/**
4242
* @internal
4343
*/
44-
export type CcrPluginRouter = IRouter<CcrRequestHandlerContext>;
44+
type CcrPluginRouter = IRouter<CcrRequestHandlerContext>;

x-pack/plugins/security/server/routes/authentication/common.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ import {
2020
SAMLLogin,
2121
} from '../../authentication';
2222
import { defineCommonRoutes } from './common';
23-
import type { SecurityRequestHandlerContext, SecurityPluginRouter } from '../../types';
23+
import type { SecurityRequestHandlerContext, SecurityRouter } from '../../types';
2424

2525
import { httpServerMock } from '../../../../../../src/core/server/mocks';
2626
import { mockAuthenticatedUser } from '../../../common/model/authenticated_user.mock';
2727
import { routeDefinitionParamsMock } from '../index.mock';
2828
import { authenticationServiceMock } from '../../authentication/authentication_service.mock';
2929

3030
describe('Common authentication routes', () => {
31-
let router: jest.Mocked<SecurityPluginRouter>;
31+
let router: jest.Mocked<SecurityRouter>;
3232
let authc: DeeplyMockedKeys<AuthenticationServiceStart>;
3333
let license: jest.Mocked<SecurityLicense>;
3434
let mockContext: SecurityRequestHandlerContext;

x-pack/plugins/security/server/routes/authentication/saml.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import type { DeeplyMockedKeys } from '@kbn/utility-types/jest';
99
import { AuthenticationResult, AuthenticationServiceStart, SAMLLogin } from '../../authentication';
1010
import { defineSAMLRoutes } from './saml';
1111
import type { RequestHandler, RouteConfig } from '../../../../../../src/core/server';
12-
import type { SecurityPluginRouter } from '../../types';
12+
import type { SecurityRouter } from '../../types';
1313

1414
import { httpServerMock } from '../../../../../../src/core/server/mocks';
1515
import { mockAuthenticatedUser } from '../../../common/model/authenticated_user.mock';
1616
import { routeDefinitionParamsMock } from '../index.mock';
1717
import { authenticationServiceMock } from '../../authentication/authentication_service.mock';
1818

1919
describe('SAML authentication routes', () => {
20-
let router: jest.Mocked<SecurityPluginRouter>;
20+
let router: jest.Mocked<SecurityRouter>;
2121
let authc: DeeplyMockedKeys<AuthenticationServiceStart>;
2222
beforeEach(() => {
2323
const routeParamsMock = routeDefinitionParamsMock.create();

x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ import { routeDefinitionParamsMock } from '../../index.mock';
1616
import { RouteDefinitionParams } from '../..';
1717
import { DeeplyMockedKeys } from '@kbn/utility-types/target/jest';
1818
import { CheckPrivileges } from '../../../authorization/types';
19-
import type { SecurityRequestHandlerContext, SecurityPluginRouter } from '../../../types';
19+
import type { SecurityRequestHandlerContext, SecurityRouter } from '../../../types';
2020

2121
describe('Share Saved Object Permissions', () => {
22-
let router: jest.Mocked<SecurityPluginRouter>;
22+
let router: jest.Mocked<SecurityRouter>;
2323
let routeParamsMock: DeeplyMockedKeys<RouteDefinitionParams>;
2424

2525
const mockContext = ({
@@ -30,7 +30,7 @@ describe('Share Saved Object Permissions', () => {
3030

3131
beforeEach(() => {
3232
routeParamsMock = routeDefinitionParamsMock.create();
33-
router = routeParamsMock.router as jest.Mocked<SecurityPluginRouter>;
33+
router = routeParamsMock.router as jest.Mocked<SecurityRouter>;
3434

3535
defineShareSavedObjectPermissionRoutes(routeParamsMock);
3636
});

x-pack/plugins/security/server/routes/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type { AuthorizationServiceSetup } from '../authorization';
1212
import type { ConfigType } from '../config';
1313
import type { SecurityFeatureUsageServiceStart } from '../feature_usage';
1414
import type { Session } from '../session_management';
15-
import type { SecurityPluginRouter } from '../types';
15+
import type { SecurityRouter } from '../types';
1616

1717
import { defineAuthenticationRoutes } from './authentication';
1818
import { defineAuthorizationRoutes } from './authorization';
@@ -27,7 +27,7 @@ import { defineViewRoutes } from './views';
2727
* Describes parameters used to define HTTP routes.
2828
*/
2929
export interface RouteDefinitionParams {
30-
router: SecurityPluginRouter;
30+
router: SecurityRouter;
3131
basePath: IBasePath;
3232
httpResources: HttpResources;
3333
logger: Logger;

x-pack/plugins/security/server/routes/session_management/extend.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import {
1212
import { defineSessionExtendRoutes } from './extend';
1313

1414
import { httpServerMock } from '../../../../../../src/core/server/mocks';
15-
import type { SecurityRequestHandlerContext, SecurityPluginRouter } from '../../types';
15+
import type { SecurityRequestHandlerContext, SecurityRouter } from '../../types';
1616
import { routeDefinitionParamsMock } from '../index.mock';
1717

1818
describe('Extend session routes', () => {
19-
let router: jest.Mocked<SecurityPluginRouter>;
19+
let router: jest.Mocked<SecurityRouter>;
2020
beforeEach(() => {
2121
const routeParamsMock = routeDefinitionParamsMock.create();
2222
router = routeParamsMock.router;

x-pack/plugins/security/server/routes/session_management/info.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import {
1212
import type { PublicMethodsOf } from '@kbn/utility-types';
1313
import { Session } from '../../session_management';
1414
import { defineSessionInfoRoutes } from './info';
15-
import type { SecurityRequestHandlerContext, SecurityPluginRouter } from '../../types';
15+
import type { SecurityRequestHandlerContext, SecurityRouter } from '../../types';
1616

1717
import { httpServerMock } from '../../../../../../src/core/server/mocks';
1818
import { sessionMock } from '../../session_management/session.mock';
1919
import { routeDefinitionParamsMock } from '../index.mock';
2020

2121
describe('Info session routes', () => {
22-
let router: jest.Mocked<SecurityPluginRouter>;
22+
let router: jest.Mocked<SecurityRouter>;
2323
let session: jest.Mocked<PublicMethodsOf<Session>>;
2424
beforeEach(() => {
2525
const routeParamsMock = routeDefinitionParamsMock.create();

0 commit comments

Comments
 (0)