Skip to content

Commit a83ba08

Browse files
authored
Address design feedback (#1256)
1 parent 9b2510c commit a83ba08

File tree

6 files changed

+26
-11
lines changed

6 files changed

+26
-11
lines changed

build/ci/evergreen.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ tasks:
348348
- func: "install golangci-lint"
349349
- func: "lint"
350350
- name: snyk_scan
351-
tags: ["code_health"]
351+
tags: ["snyk"]
352352
commands:
353353
- func: "clone"
354354
- func: "install snyk"
@@ -1339,6 +1339,14 @@ buildvariants:
13391339
go_bin: "/opt/golang/go1.18/bin"
13401340
tasks:
13411341
- name: ".ops-manager-50"
1342-
1342+
- name: snyk
1343+
display_name: "Snyk"
1344+
run_on:
1345+
- rhel80-small
1346+
expansions:
1347+
go_root: "/opt/golang/go1.18"
1348+
go_bin: "/opt/golang/go1.18/bin"
1349+
tasks:
1350+
- name: .snyk
13431351
include:
13441352
- filename: build/ci/release.yml

internal/cli/atlas/quickstart/confirm_cluster_setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Cluster Disk Size (GiB): %.1f`, opts.Tier, diskSize)
5252
[Confirm cluster settings]
5353
Cluster Name: %s%s
5454
Cloud Provider and Region: %s
55-
Database Username: %s
55+
Database User Username: %s
5656
Allow connections from (IP Address): %s%s
5757
`,
5858
opts.ClusterName,

internal/cli/atlas/quickstart/confirm_default_setup.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ Load sample data: Yes`
4747
Cluster Tier: %s
4848
Cluster Disk Size (GiB): %.1f`, opts.Tier, diskSize)
4949
}
50-
fmt.Printf(`[Default Settings]
50+
fmt.Printf(`
51+
[Default Settings]
5152
Cluster Name: %s%s
5253
Cloud Provider and Region: %s
53-
Database Username: %s
54+
Database User Username: %s
5455
Allow connections from (IP Address): %s%s`,
5556
values.ClusterName,
5657
clusterTier+clusterDisk,

internal/cli/atlas/quickstart/quick_start.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Enter 'atlas cluster watch %s' to learn when your cluster is available.
5151

5252
const quickstartTemplateStoreWarning = `
5353
Please store your database authentication access details in a secure location:
54-
username: %s
55-
password: %s
54+
Database User Username: %s
55+
Database User Password: %s
5656
`
5757

5858
const quickstartTemplateIntro = `Press [Enter] to use the default values.
@@ -177,7 +177,8 @@ func (opts *Opts) Run() error {
177177
return err
178178
}
179179

180-
fmt.Printf(`We are deploying %s...`, opts.ClusterName)
180+
fmt.Printf(`We are deploying %s...
181+
`, opts.ClusterName)
181182

182183
fmt.Printf(quickstartTemplateStoreWarning, opts.DBUsername, opts.DBUserPassword)
183184
opts.setupCloseHandler()
@@ -189,8 +190,6 @@ func (opts *Opts) Run() error {
189190
return er
190191
}
191192

192-
fmt.Print(quickstartTemplateCluster)
193-
194193
fmt.Print("Cluster created.")
195194

196195
if err := opts.loadSampleData(); err != nil {
@@ -200,6 +199,11 @@ func (opts *Opts) Run() error {
200199
if err := opts.askMongoShellQuestion(); err != nil {
201200
return err
202201
}
202+
203+
// If user does not want to open MongoShell, skip everything below
204+
if !opts.runMongoShell {
205+
return nil
206+
}
203207
// Get cluster's connection string
204208
cluster, err := opts.store.AtlasCluster(opts.ConfigProjectID(), opts.ClusterName)
205209
if err != nil {

internal/cli/atlas/quickstart/quick_start_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ func TestQuickstartOpts_Run(t *testing.T) {
5656
Confirm: true,
5757
}
5858

59+
opts.runMongoShell = true
60+
5961
projectIPAccessList := opts.newProjectIPAccessList()
6062

6163
mockStore.

internal/cli/auth/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type LoginConfig interface {
4949

5050
const (
5151
AlreadyAuthenticatedMsg = "you are already authenticated with an API key (Public key: %s)"
52-
AlreadyAuthenticatedEmailMsg = "you are already authenticated with an email (%s)"
52+
AlreadyAuthenticatedEmailMsg = "you are already authenticated with an account (%s)"
5353
LoginWithProfileMsg = `run "atlas auth login --profile <profile_name>" to authenticate using your Atlas username and password on a new profile`
5454
LogoutToLoginAccountMsg = `run "atlas auth logout" first if you want to login with another Atlas account on the same Atlas CLI profile`
5555
)

0 commit comments

Comments
 (0)