Skip to content

Commit 01ac321

Browse files
authored
Rename "Engine" to "Apollo Graph Manager" in ouput (#1705)
* rename all cli output to say graph manager * update language server messaging for AGM
1 parent 7e87489 commit 01ac321

15 files changed

Lines changed: 41 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
## Upcoming
44

55
- `apollo`
6-
- <First `apollo` related entry goes here>
6+
- Rename "Engine" to "Apollo Graph Manager" in ouput [#1705](https://github.com/apollographql/apollo-tooling/pull/1705)
77
- `apollo-codegen-flow`
88
- <First `apollo-codegen-flow` related entry goes here>
99
- `apollo-codegen-scala`
1010
- <First `apollo-codegen-scala` related entry goes here>
1111
- `apollo-codegen-swift`
12-
- Add additional type annotations to improve compile times. [1638](https://github.com/apollographql/apollo-tooling/pull/1638)
12+
- Add additional type annotations to improve compile times. [1638](https://github.com/apollographql/apollo-tooling/pull/1638)
1313
- `apollo-codegen-typescript`
1414
- <First `apollo-codegen-typescript` related entry goes here>
1515
- `apollo-env`
1616
- <First `apollo-env` related entry goes here>
1717
- `apollo-graphql`
1818
- [#1618] Fixes an issue when enums with a value of 0 fail to resolve when using a Federated Schema (https://github.com/apollographql/apollo-tooling/pull/1618)
1919
- `apollo-language-server`
20-
- <First `apollo-language-server` related entry goes here>
20+
- Rename "Engine" to "Apollo Graph Manager" in ouput [#1705](https://github.com/apollographql/apollo-tooling/pull/1705)
2121
- `apollo-tools`
2222
- <First `apollo-tools` related entry goes here>
2323
- `vscode-apollo`

packages/apollo-language-server/src/engine/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type FieldStats = Map<string, Map<string, number | null>>;
4646
export function noServiceError(service: string | undefined, endpoint?: string) {
4747
return `Could not find service ${
4848
service ? service : ""
49-
} from Engine at ${endpoint}. Please check your API key and service name`;
49+
} from Apollo Graph Manager at ${endpoint}. Please check your API key and service name`;
5050
}
5151

5252
export class ApolloEngineClient extends GraphQLDataSource {
@@ -98,7 +98,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
9898
}
9999

100100
if (!(data && data.service)) {
101-
throw new Error("Error in request from Engine");
101+
throw new Error("Error in request from Apollo Graph Manager");
102102
}
103103
return data.service;
104104
});
@@ -121,7 +121,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
121121
}
122122

123123
if (!(data && data.service)) {
124-
throw new Error("Error in request from Engine");
124+
throw new Error("Error in request from Apollo Graph Manager");
125125
}
126126
return data.service.checkSchema;
127127
});
@@ -144,7 +144,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
144144
}
145145

146146
if (!(data && data.service)) {
147-
throw new Error("Error in request from Engine");
147+
throw new Error("Error in request from Apollo Graph Manager");
148148
}
149149
return data.service.uploadSchema;
150150
});
@@ -169,7 +169,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
169169
}
170170

171171
if (!(data && data.service)) {
172-
throw new Error("Error in request from Engine");
172+
throw new Error("Error in request from Apollo Graph Manager");
173173
}
174174
return data.service.upsertImplementingServiceAndTriggerComposition;
175175
});
@@ -194,7 +194,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
194194
}
195195

196196
if (!(data && data.service)) {
197-
throw new Error("Error in request from Engine");
197+
throw new Error("Error in request from Apollo Graph Manager");
198198
}
199199
return data.service.checkPartialSchema;
200200
});
@@ -212,7 +212,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
212212
}
213213

214214
if (!data || !data.service) {
215-
throw new Error("Error in request from Engine");
215+
throw new Error("Error in request from Apollo Graph Manager");
216216
}
217217

218218
return data.service.removeImplementingServiceAndTriggerComposition;
@@ -236,7 +236,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
236236
}
237237

238238
if (!(data && data.service)) {
239-
throw new Error("Error in request from Engine");
239+
throw new Error("Error in request from Apollo Graph Manager");
240240
}
241241

242242
return data.service.validateOperations.validationResults;
@@ -262,7 +262,7 @@ export class ApolloEngineClient extends GraphQLDataSource {
262262
if (
263263
!(data && data.service && data.service.registerOperationsWithResponse)
264264
) {
265-
throw new Error("Error in request from Engine");
265+
throw new Error("Error in request from Apollo Graph Manager");
266266
}
267267
return data.service.registerOperationsWithResponse;
268268
});

packages/apollo-language-server/src/project/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ export class GraphQLClientProject extends GraphQLProject {
339339
if (!serviceID) return;
340340

341341
await this.loadingHandler.handle(
342-
`Loading Engine data for ${this.displayName}`,
342+
`Loading Apollo Graph Manager data for ${this.displayName}`,
343343
(async () => {
344344
try {
345345
const {

packages/apollo-language-server/src/providers/schema/engine.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ export class EngineSchemaProvider implements GraphQLSchemaProvider {
8484
onSchemaChange(
8585
_handler: NotificationHandler<GraphQLSchema>
8686
): SchemaChangeUnsubscribeHandler {
87-
throw new Error("Polling of Engine not implemented yet");
87+
throw new Error("Polling of Apollo Graph Manager not implemented yet");
8888
return () => {};
8989
}
9090

9191
async resolveFederatedServiceSDL() {
9292
Debug.error(
93-
"Cannot resolve a federated service's SDL from engine. Use an endpoint or a file instead"
93+
"Cannot resolve a federated service's SDL from Apollo Graph Manager. Use an endpoint or a file instead"
9494
);
9595
return;
9696
}

packages/apollo/src/commands/client/check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class ClientCheck extends ClientCommand {
4242
task: async ctx => {
4343
if (!config.name) {
4444
throw new Error(
45-
"No service found to link to Engine. Engine is required for this command."
45+
"No service found to link to Apollo Graph Manager. Graph Manager is required for this command."
4646
);
4747
}
4848
ctx.gitContext = await gitInfo(this.log);

packages/apollo/src/commands/client/codegen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const waitForKey = async () => {
2626
export default class Generate extends ClientCommand {
2727
static aliases = ["codegen:generate"];
2828
static description =
29-
"Generate static types for GraphQL queries. Can use the published schema in Apollo Engine or a downloaded schema.";
29+
"Generate static types for GraphQL queries. Can use the published schema in Apollo Graph Manager or a downloaded schema.";
3030

3131
static flags = {
3232
...ClientCommand.flags,

packages/apollo/src/commands/client/download-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ClientCommand } from "../../Command";
66

77
export default class SchemaDownload extends ClientCommand {
88
static description =
9-
"Download a schema from engine or a GraphQL endpoint in JSON or SDL format";
9+
"Download a schema from Apollo Graph Manager or a GraphQL endpoint in JSON or SDL format";
1010

1111
static flags = {
1212
...ClientCommand.flags

packages/apollo/src/commands/client/push.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default class ClientPush extends ClientCommand {
6161
task: async (_, task) => {
6262
if (!config.name) {
6363
throw new Error(
64-
"No service found to link to Engine. Engine is required for this command."
64+
"No service found to link to Apollo Graph Manager. Graph Manager is required for this command."
6565
);
6666
}
6767

packages/apollo/src/commands/service/__tests__/check.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const localURL = "http://localhost:4000";
1919
/**
2020
* Default API key. This is not an actual API key but a randomly generated string.
2121
*
22-
* If you need to use the `nock` recorder, then this will not work because we won't be able to access engine
22+
* If you need to use the `nock` recorder, then this will not work because we won't be able to access graph manager
2323
* with a fake API key.
2424
*/
2525
const fakeApiKey = "service:engine:9YC5AooMa2yO11eFlZat11";
2626

2727
/**
28-
* Engine API key we're using.
28+
* Graph Manager API key we're using.
2929
*
3030
* This is hard-coded to `fakeApiKey` because this is out day-to-day usage should be. If we're going to be
3131
* updating the mocked data; we'll need to use a real API key (see [README#Regenerating Mocked Network
@@ -35,7 +35,7 @@ const fakeApiKey = "service:engine:9YC5AooMa2yO11eFlZat11";
3535
const apiKey = fakeApiKey;
3636

3737
/**
38-
* An array that we'll spread into all CLI commands to pass the engine api key.
38+
* An array that we'll spread into all CLI commands to pass the graph manager api key.
3939
*/
4040
const cliKeyParameter = [`--key=${apiKey}`];
4141

packages/apollo/src/commands/service/__tests__/list.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const stagingAPI = "https://engine-staging-graphql.apollographql.com:443";
88
/**
99
* Default API key. This is not an actual API key but a randomly generated string.
1010
*
11-
* If you need to use the `nock` recorder, then this will not work because we won't be able to access engine
11+
* If you need to use the `nock` recorder, then this will not work because we won't be able to access graph manager
1212
* with a fake API key.
1313
*/
1414
const fakeApiKey = "service:engine:9YC5AooMa2yO11eFlZat11";
1515

1616
/**
17-
* Engine API key we're using.
17+
* Graph Manager API key we're using.
1818
*
1919
* This is hard-coded to `fakeApiKey` because this is out day-to-day usage should be. If we're going to be
2020
* updating the mocked data; we'll need to use a real API key (see [README#Regenerating Mocked Network
@@ -24,7 +24,7 @@ const fakeApiKey = "service:engine:9YC5AooMa2yO11eFlZat11";
2424
const apiKey = fakeApiKey;
2525

2626
/**
27-
* An array that we'll spread into all CLI commands to pass the engine api key.
27+
* An array that we'll spread into all CLI commands to pass the graph manager api key.
2828
*/
2929
const cliKeyParameter = [`--key=${apiKey}`];
3030

0 commit comments

Comments
 (0)