-
Notifications
You must be signed in to change notification settings - Fork 188
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
feat: Migrates some resources to new file structure #1700
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
@@ -14,7 +14,7 @@ import ( | |||
matlas "go.mongodb.org/atlas/mongodbatlas" | |||
) | |||
|
|||
func DataSourceAdvancedClusters() *schema.Resource { | |||
func PluralDataSource() *schema.Resource { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(not blocking) Interesting name 🤔 What do you think about DataSources
instead?
func PluralDataSource() *schema.Resource { | |
func DataSources() *schema.Resource { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm following what @AgustinBettati started, not a strong opinion to either
@@ -186,12 +192,12 @@ func getDataSourcesMap() map[string]*schema.Resource { | |||
|
|||
func getResourcesMap() map[string]*schema.Resource { | |||
resourcesMap := map[string]*schema.Resource{ | |||
"mongodbatlas_advanced_cluster": advancedcluster.ResourceAdvancedCluster(), | |||
"mongodbatlas_advanced_cluster": advancedcluster.Resource(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need to update the github actions with the new path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, you're right!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@@ -3,7 +3,7 @@ name: 'Test Suite' | |||
on: | |||
workflow_dispatch: | |||
schedule: | |||
- cron: "0 2 * * *" # workflow runs every day at 02:00 AM | |||
- cron: "0 0 * * *" # workflow runs every day at midnight UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to hav more time
@@ -18,7 +18,7 @@ jobs: | |||
max-parallel: 1 | |||
fail-fast: false | |||
matrix: | |||
terraform_version: ['', '1.1.6', '1.0.8'] # '' for latest version | |||
terraform_version: ['', '1.0.8'] # '' for latest version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we already have the data for 1.1.6, removed to decrease time
Description
Migrates some resources to new file structure:
Type of change:
Required Checklist:
Further comments