Skip to content

INTMDB-270: Added 'with_default_alerts_settings' to project resource #595

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 2 commits into from
Nov 10, 2021

Conversation

abner-dou
Copy link
Contributor

Description

A new property (with_default_alerts_settings) was added to project resource in order to disable default alerts on project creation. this property is set to true by default

Link to any related issue(s):INTMDB-270

Type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Documentation fix/enhancement

Required Checklist:

  • I have signed the MongoDB CLA
  • I have read the Terraform contribution guidelines
  • I have added tests that prove my fix is effective or that my feature works per HashiCorp requirements
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

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

Question and change. Thanks!

@@ -91,15 +97,15 @@ func resourceMongoDBAtlasProjectCreate(ctx context.Context, d *schema.ResourceDa

project, _, err := conn.Projects.Create(ctx, projectReq, createProjectOptions)
if err != nil {
return diag.FromErr(fmt.Errorf(errorProjectCreate, err))
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not in the PR description, can you describe? Is this updates for the newer SDK that weren't made yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was working on this file and I noticed this, the correct use is diag.Errorf(.....) not diag.FromErr(fmt.Errorf(....)) (this way works but is not correct)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Glad to have it corrected but next time this kind of things come up please describe it and why in the PR description. That way it's not a surprise. Thank you.

@abner-dou abner-dou requested a review from themantissa November 4, 2021 15:42
Copy link
Collaborator

@themantissa themantissa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Collaborator

@andreaangiolillo andreaangiolillo 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

@thetonymaster thetonymaster left a comment

Choose a reason for hiding this comment

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

LGTM

@abner-dou abner-dou merged commit b26b1ca into master Nov 10, 2021
@abner-dou abner-dou deleted the INTMDB-270 branch November 10, 2021 16:58
abner-dou added a commit that referenced this pull request Nov 15, 2021
…595)

* added  'with_default_alerts_settings' to project resource

* change project documentation
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.

4 participants