Skip to content

CLOUDP-234527 Remove mongocli 2nd followup #2706

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

Merged
merged 6 commits into from
Mar 5, 2024
Merged

Conversation

fmenezes
Copy link
Collaborator

@fmenezes fmenezes commented Mar 5, 2024

Proposed changes

Remove mongocli (followup from #2705), this is removing unused code and refactoring tool_name
Jira ticket: CLOUDP-234527

Closes #[issue number]

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works
  • I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • I have updated test/README.md (if an e2e test has been added)
  • I have run make fmt and formatted my code

Further comments

@fmenezes fmenezes changed the title CLOUDP-234527 Remove mongocli followup2 CLOUDP-234527 Remove mongocli 2nd followup Mar 5, 2024
@fmenezes fmenezes marked this pull request as ready for review March 5, 2024 15:12
@fmenezes fmenezes requested a review from a team March 5, 2024 15:12
@@ -109,18 +109,11 @@ func ExampleAtlasEntryPoint() string {
return exampleBin
}
exampleBin = config.BinName()
if exampleBin == config.MongoCLI {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe worth dropping the function altogether but that may be a bigger PR, ok for a followup

return exampleBin
}

// DescriptionServiceName returns the name of the service that uses a given IAM command.
func DescriptionServiceName() string {
exampleBin = config.BinName()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@@ -345,18 +344,18 @@ func (n *Notifier) notifyIfApplicable(isHb bool) error {

var upgradeInstructions string
if isHb {
upgradeInstructions = fmt.Sprintf(`To upgrade, run "brew update && brew upgrade %s".`, homebrew.FormulaName(config.ToolName))
upgradeInstructions = fmt.Sprintf(`To upgrade, run "brew update && brew upgrade %s".`, homebrew.FormulaName())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same above, maybe worth removing the function

gssbzn
gssbzn previously approved these changes Mar 5, 2024
gssbzn
gssbzn previously approved these changes Mar 5, 2024
@fmenezes fmenezes requested a review from gssbzn March 5, 2024 16:11
Copy link
Collaborator

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ciprian-tibulca ciprian-tibulca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fmenezes fmenezes merged commit 5855f6c into master Mar 5, 2024
@fmenezes fmenezes deleted the CLOUDP-234527_followup2 branch March 5, 2024 16:50
@fmenezes fmenezes mentioned this pull request Apr 5, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants