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

Update shortlinks to use go.apollo.dev #1790

Merged
merged 3 commits into from
Feb 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Upcoming

- `apollo`
- Update shortlinks to use go.apollo.dev instead of bitly [#1790](https://github.com/apollographql/apollo-tooling/pull/1790)
- Support disabling literal stripping when extracting queries. [1703](https://github.com/apollographql/apollo-tooling/pull/1703)
- `apollo-codegen-flow`
- <First `apollo-codegen-flow` related entry goes here>
Expand Down
9 changes: 4 additions & 5 deletions packages/apollo-language-server/src/config/loadConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,19 @@ export async function loadConfig({

if (configPath && !loadedConfig) {
return Debug.error(
`A config file failed to load at '${configPath}'. This is likely because this file is empty or malformed. For more information, please refer to: https://bit.ly/2ByILPj`
`A config file failed to load at '${configPath}'. This is likely because this file is empty or malformed. For more information, please refer to: https://go.apollo.dev/t/config`
);
}

if (loadedConfig && loadedConfig.filepath.endsWith("package.json")) {
Debug.warning(
'The "apollo" package.json configuration key will no longer be supported in Apollo v3. Please use the apollo.config.js file for Apollo project configuration. For more information, see: https://bit.ly/2ByILPj'
'The "apollo" package.json configuration key will no longer be supported in Apollo v3. Please use the apollo.config.js file for Apollo project configuration. For more information, see: https://go.apollo.dev/t/config'
);
}

if (requireConfig && !loadedConfig) {
return Debug.error(
`No Apollo config found for project. For more information, please refer to:
https://bit.ly/2ByILPj`
`No Apollo config found for project. For more information, please refer to: https://go.apollo.dev/t/config`
);
}

Expand Down Expand Up @@ -145,7 +144,7 @@ export async function loadConfig({
else if (loadedConfig && loadedConfig.config.service) projectType = "service";
else
return Debug.error(
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj"
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://go.apollo.dev/t/config"
);

// DETERMINE SERVICE NAME
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-language-server/src/project/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class GraphQLClientProject extends GraphQLProject {
"⚠️ It looks like there are 0 files associated with this Apollo Project. " +
"This may be because you don't have any files yet, or your includes/excludes " +
"fields are configured incorrectly, and Apollo can't find your files. " +
"For help configuring Apollo projects, see this guide: https://bit.ly/2ByILPj"
"For help configuring Apollo projects, see this guide: https://go.apollo.dev/t/config"
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider {
"\nIt expected a JSON schema introspection result, but got an HTML response instead." +
"\nYou may need to add headers to your request or adjust your endpoint url.\n" +
"-----------------------------\n" +
"For more information, please refer to: https://bit.ly/2ByILPj \n\n" +
"For more information, please refer to: https://go.apollo.dev/t/config \n\n" +
"The following error occurred:\n-----------------------------\n" +
e.message
);
Expand All @@ -68,7 +68,7 @@ export class EndpointSchemaProvider implements GraphQLSchemaProvider {
"By default, when an endpoint, Graph Manager API key, or localSchemaFile isn't provided, Apollo tries to fetch a schema from " +
DefaultServiceConfig.endpoint.url +
"\n-----------------------------\n" +
"\nFor more information, please refer to: https://bit.ly/2ByILPj \n\n" +
"\nFor more information, please refer to: https://go.apollo.dev/t/config \n\n" +
"The following error occurred: \n" +
"-----------------------------\n" +
e.message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ export function schemaProviderFromConfig(
}

throw new Error(
"No schema provider was created, because the project type was unable to be resolved from your config. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj"
"No schema provider was created, because the project type was unable to be resolved from your config. Please add either a client or service config. For more information, please refer to https://go.apollo.dev/t/config"
);
}
2 changes: 1 addition & 1 deletion packages/apollo/src/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export abstract class ProjectCommand extends Command {
});
} else {
throw new Error(
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://bit.ly/2ByILPj"
"Unable to resolve project type. Please add either a client or service config. For more information, please refer to https://go.apollo.dev/t/config"
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/apollo/src/utils/validateHistoricParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function validateHistoricParams({

if (from >= 0) {
throw new Error(
"Please provide a valid duration for the --validationPeriod flag. Valid durations are represented in ISO 8601, see: https://bit.ly/2DEJ3UN."
"Please provide a valid duration for the --validationPeriod flag. Valid durations are represented in ISO 8601, see: https://go.apollo.dev/t/iso-durations."
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-apollo/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const printStatsToClientOutputChannel = (
client.outputChannel.appendLine(
"❌ Service stats could not be loaded. This may be because you're missing an apollo.config.js file " +
"or it is misconfigured. For more information about configuring Apollo projects, " +
"see the guide here (https://bit.ly/2ByILPj)."
"see the guide here (https://go.apollo.dev/t/config)."
);
return;
}
Expand Down