Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Sep 24, 2020
1 parent 7c16e1d commit 8fc22a4
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 128 deletions.
31 changes: 0 additions & 31 deletions x-pack/plugins/security_solution/public/graphql/introspection.json
Original file line number Diff line number Diff line change
Expand Up @@ -906,14 +906,6 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "whoAmI",
"description": "Just a simple example to get the app name",
"args": [],
"type": { "kind": "OBJECT", "name": "SayMyName", "ofType": null },
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
Expand Down Expand Up @@ -1922,29 +1914,6 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "SayMyName",
"description": "",
"fields": [
{
"name": "appName",
"description": "The id of the source",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": { "kind": "SCALAR", "name": "String", "ofType": null }
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "TimelineResult",
Expand Down
7 changes: 0 additions & 7 deletions x-pack/plugins/security_solution/public/graphql/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,6 @@ export interface Source {
HostOverview: HostItem;

HostFirstLastSeen: FirstLastSeenHost;
/** Just a simple example to get the app name */
whoAmI?: Maybe<SayMyName>;
}

/** A set of configuration options for a security data source */
Expand Down Expand Up @@ -587,11 +585,6 @@ export interface FirstLastSeenHost {
lastSeen?: Maybe<string>;
}

export interface SayMyName {
/** The id of the source */
appName: string;
}

export interface TimelineResult {
columns?: Maybe<ColumnHeaderResult[]>;

Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/security_solution/server/graphql/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { toNumberSchema } from './scalar_to_number_array';
import { sourceStatusSchema } from './source_status';
import { sourcesSchema } from './sources';
import { timelineSchema } from './timeline';
import { whoAmISchema } from './who_am_i';
export const schemas = [
ecsSchema,
dateSchema,
Expand All @@ -35,5 +34,4 @@ export const schemas = [
sourceStatusSchema,
sharedSchema,
timelineSchema,
whoAmISchema,
];
29 changes: 0 additions & 29 deletions x-pack/plugins/security_solution/server/graphql/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ export interface Source {
HostOverview: HostItem;

HostFirstLastSeen: FirstLastSeenHost;
/** Just a simple example to get the app name */
whoAmI?: Maybe<SayMyName>;
}

/** A set of configuration options for a security data source */
Expand Down Expand Up @@ -589,11 +587,6 @@ export interface FirstLastSeenHost {
lastSeen?: Maybe<string>;
}

export interface SayMyName {
/** The id of the source */
appName: string;
}

export interface TimelineResult {
columns?: Maybe<ColumnHeaderResult[]>;

Expand Down Expand Up @@ -2057,8 +2050,6 @@ export namespace SourceResolvers {
HostOverview?: HostOverviewResolver<HostItem, TypeParent, TContext>;

HostFirstLastSeen?: HostFirstLastSeenResolver<FirstLastSeenHost, TypeParent, TContext>;
/** Just a simple example to get the app name */
whoAmI?: WhoAmIResolver<Maybe<SayMyName>, TypeParent, TContext>;
}

export type IdResolver<R = string, Parent = Source, TContext = SiemContext> = Resolver<
Expand Down Expand Up @@ -2127,12 +2118,6 @@ export namespace SourceResolvers {

docValueFields: DocValueFieldsInput[];
}

export type WhoAmIResolver<
R = Maybe<SayMyName>,
Parent = Source,
TContext = SiemContext
> = Resolver<R, Parent, TContext>;
}
/** A set of configuration options for a security data source */
export namespace SourceConfigurationResolvers {
Expand Down Expand Up @@ -2600,19 +2585,6 @@ export namespace FirstLastSeenHostResolvers {
> = Resolver<R, Parent, TContext>;
}

export namespace SayMyNameResolvers {
export interface Resolvers<TContext = SiemContext, TypeParent = SayMyName> {
/** The id of the source */
appName?: AppNameResolver<string, TypeParent, TContext>;
}

export type AppNameResolver<R = string, Parent = SayMyName, TContext = SiemContext> = Resolver<
R,
Parent,
TContext
>;
}

export namespace TimelineResultResolvers {
export interface Resolvers<TContext = SiemContext, TypeParent = TimelineResult> {
columns?: ColumnsResolver<Maybe<ColumnHeaderResult[]>, TypeParent, TContext>;
Expand Down Expand Up @@ -6077,7 +6049,6 @@ export type IResolvers<TContext = SiemContext> = {
CursorType?: CursorTypeResolvers.Resolvers<TContext>;
PageInfoPaginated?: PageInfoPaginatedResolvers.Resolvers<TContext>;
FirstLastSeenHost?: FirstLastSeenHostResolvers.Resolvers<TContext>;
SayMyName?: SayMyNameResolvers.Resolvers<TContext>;
TimelineResult?: TimelineResultResolvers.Resolvers<TContext>;
ColumnHeaderResult?: ColumnHeaderResultResolvers.Resolvers<TContext>;
DataProviderResult?: DataProviderResultResolvers.Resolvers<TContext>;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions x-pack/plugins/security_solution/server/init_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { createScalarToNumberArrayValueResolvers } from './graphql/scalar_to_num
import { createSourceStatusResolvers } from './graphql/source_status';
import { createSourcesResolvers } from './graphql/sources';
import { createTimelineResolvers } from './graphql/timeline';
import { createWhoAmIResolvers } from './graphql/who_am_i';
import { AppBackendLibs } from './lib/types';

export const initServer = (libs: AppBackendLibs) => {
Expand All @@ -37,7 +36,6 @@ export const initServer = (libs: AppBackendLibs) => {
createSourcesResolvers(libs) as IResolvers,
createSourceStatusResolvers(libs) as IResolvers,
createTimelineResolvers(libs) as IResolvers,
createWhoAmIResolvers() as IResolvers,
],
typeDefs: schemas,
});
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/api_integration/apis/security_solution/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default function ({ loadTestFile }) {
loadTestFile(require.resolve('./saved_objects/timeline'));
loadTestFile(require.resolve('./sources'));
// loadTestFile(require.resolve('./overview_network'));
loadTestFile(require.resolve('./timeline'));
loadTestFile(require.resolve('./timeline_details'));
// loadTestFile(require.resolve('./timeline'));
// loadTestFile(require.resolve('./timeline_details'));
// loadTestFile(require.resolve('./uncommon_processes'));
// loadTestFile(require.resolve('./users'));
// loadTestFile(require.resolve('./tls'));
Expand Down

0 comments on commit 8fc22a4

Please sign in to comment.