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

TeamsUpdate - fixing small bug, again missing update #417

Merged
merged 2 commits into from
Mar 1, 2021
Merged

Conversation

leofigy
Copy link
Contributor

@leofigy leofigy commented Feb 25, 2021

Description

Missing refreshing the state when the team is removed from the outside terraform, but still in the configuration file

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 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.

LGTM, just a question about long term plans.

Comment on lines +1 to +8
# Global rule
* @themantissa

# examples
/examples/** @nikhil-mongo

# resources & datasources, provider
/mongodbatlas/** @coderGo93 @leofigy
Copy link
Collaborator

Choose a reason for hiding this comment

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

useful!

Comment on lines +90 to +95
// new resource missing
reset := strings.Contains(err.Error(), "404") && !d.IsNewResource()
if reset {
d.SetId("")
return nil
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We've had a few of these. Should we perhaps do a ticket for an audit to check all resources or do as we've done, add as we find them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, agree with that :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Contributor

@coderGo93 coderGo93 left a comment

Choose a reason for hiding this comment

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

LGTM!, thank you

@leofigy leofigy merged commit 75ea01d into master Mar 1, 2021
@leofigy leofigy deleted the teams-update branch March 1, 2021 23:47
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