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

INTMDB-144: Updated for scopes database users #368

Merged
merged 4 commits into from
Jan 7, 2021
Merged

Conversation

coderGo93
Copy link
Contributor

@coderGo93 coderGo93 commented Dec 18, 2020

Description

  • Changed schema scopes and send an array empty if not specified
  • Added acceptance test for scopes empty TestAccResourceMongoDBAtlasDatabaseUser_withScopesAndEmpty
    Link to any related issue(s):

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 requirments
  • I have added any necessary documentation (if appropriate)
  • I have run make fmt and formatted my code

Further comments

Waiting for PR to be merged then update the vendor from master and merge

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.

A quick check on a path change and a question (non blocking but may result in a 2nd ticket). Thanks!

go.mod Outdated
@@ -1,7 +1,7 @@
module github.com/mongodb/terraform-provider-mongodbatlas

go 1.14

replace go.mongodb.org/atlas => ../go-client-mongodb-atlas
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably shouldn't leave, looks like for testing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, so I can use the recent changes of client mongodb, since it's merged I will update from master mongodb client

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! Got ticket in for issue I saw too and noted that. Thanks!

@themantissa
Copy link
Collaborator

@marinsalinas or @leofigy can one of you review please?

v := val.(map[string]interface{})
res[i] = matlas.Scope{
scope := matlas.Scope{
Copy link
Contributor

Choose a reason for hiding this comment

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

looks better

Copy link
Contributor

@leofigy leofigy left a comment

Choose a reason for hiding this comment

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

LGTM

@coderGo93 coderGo93 added run-testacc To run acceptance tests and removed run-testacc To run acceptance tests labels Jan 7, 2021
@coderGo93 coderGo93 merged commit 1a4b011 into master Jan 7, 2021
@coderGo93 coderGo93 deleted the INTMDB-144 branch January 7, 2021 08:13
@themantissa themantissa linked an issue Jan 11, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-testacc To run acceptance tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Removal of user scopes is not detected by the provider
3 participants