Skip to content

Commit d52c833

Browse files
author
Kamil Sobol
authored
Remove "Gen 2" wording from telemetry message (#1687)
1 parent 8968cf4 commit d52c833

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.changeset/curvy-lamps-swim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-amplify': patch
3+
---
4+
5+
Remove "Gen 2" wording from telemetry message

packages/create-amplify/src/amplify_project_creator.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ void describe('AmplifyProjectCreator', () => {
9292
assert.equal(
9393
logSpy.mock.calls[14].arguments[0],
9494
grey(
95-
`Amplify Gen 2 collects anonymous telemetry data about general usage of the CLI. Participation is optional, and you may opt-out by using ${cyan(
95+
`Amplify collects anonymous telemetry data about general usage of the CLI. Participation is optional, and you may opt-out by using ${cyan(
9696
'npx ampx configure telemetry disable'
9797
)}. To learn more about telemetry, visit ${underline(
98-
blue('https://docs.amplify.aws/gen2/reference/telemetry')
98+
blue('https://docs.amplify.aws/react/reference/telemetry')
9999
)}`
100100
)
101101
);
@@ -137,10 +137,10 @@ void describe('AmplifyProjectCreator', () => {
137137
assert.equal(
138138
logSpy.mock.calls[14].arguments[0],
139139
grey(
140-
`Amplify Gen 2 collects anonymous telemetry data about general usage of the CLI. Participation is optional, and you may opt-out by using ${cyan(
140+
`Amplify collects anonymous telemetry data about general usage of the CLI. Participation is optional, and you may opt-out by using ${cyan(
141141
'npx ampx configure telemetry disable'
142142
)}. To learn more about telemetry, visit ${underline(
143-
blue('https://docs.amplify.aws/gen2/reference/telemetry')
143+
blue('https://docs.amplify.aws/react/reference/telemetry')
144144
)}`
145145
)
146146
);

packages/create-amplify/src/amplify_project_creator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { GitIgnoreInitializer } from './gitignore_initializer.js';
66
import { InitialProjectFileGenerator } from './initial_project_file_generator.js';
77

88
const LEARN_MORE_USAGE_DATA_TRACKING_LINK =
9-
'https://docs.amplify.aws/gen2/reference/telemetry';
9+
'https://docs.amplify.aws/react/reference/telemetry';
1010

1111
/**
1212
* Orchestration class that sets up a new Amplify project
@@ -106,7 +106,7 @@ export class AmplifyProjectCreator {
106106

107107
printer.log(
108108
format.note(
109-
`Amplify Gen 2 collects anonymous telemetry data about general usage of the CLI. Participation is optional, and you may opt-out by using ${format.normalizeAmpxCommand(
109+
`Amplify collects anonymous telemetry data about general usage of the CLI. Participation is optional, and you may opt-out by using ${format.normalizeAmpxCommand(
110110
'configure telemetry disable'
111111
)}. To learn more about telemetry, visit ${format.link(
112112
LEARN_MORE_USAGE_DATA_TRACKING_LINK

0 commit comments

Comments
 (0)