-
Notifications
You must be signed in to change notification settings - Fork 430
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
chore: Fix docs and update the protected users list #3365
Changes from 2 commits
a68cbb1
2b95021
7f84e5d
88fa9da
07d4dcb
098eafe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -452,7 +452,7 @@ func CreateView(orReplace bool) schema.CreateContextFunc { | |
} | ||
err := client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithSetDataMetricSchedule(*req)) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error setting data matric schedule in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error setting data metric schedule in view %v err = %w", id.Name(), err)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. xDD There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice copy paste before :D |
||
} | ||
} | ||
|
||
|
@@ -470,7 +470,7 @@ func CreateView(orReplace bool) schema.CreateContextFunc { | |
} | ||
err = client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithAddDataMetricFunction(*sdk.NewViewAddDataMetricFunctionRequest(added))) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error adding data matric functions in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error adding data metric functions in view %v err = %w", id.Name(), err)) | ||
} | ||
changeSchedule := make([]sdk.ViewModifyDataMetricFunction, 0, len(addedRaw)) | ||
for i := range addedRaw { | ||
|
@@ -498,7 +498,7 @@ func CreateView(orReplace bool) schema.CreateContextFunc { | |
if len(changeSchedule) > 0 { | ||
err = client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithModifyDataMetricFunction(*sdk.NewViewModifyDataMetricFunctionsRequest(changeSchedule))) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error adding data matric functions in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error adding data metric functions in view %v err = %w", id.Name(), err)) | ||
} | ||
} | ||
} | ||
|
@@ -724,7 +724,7 @@ func handlePolicyReferences(policyRefs []sdk.PolicyReference, d *schema.Resource | |
} | ||
|
||
func handleDataMetricFunctions(ctx context.Context, client *sdk.Client, id sdk.SchemaObjectIdentifier, d *schema.ResourceData) error { | ||
dataMetricFunctionReferences, err := client.DataMetricFunctionReferences.GetForEntity(ctx, sdk.NewGetForEntityDataMetricFunctionReferenceRequest(id, sdk.DataMetricFuncionRefEntityDomainView)) | ||
dataMetricFunctionReferences, err := client.DataMetricFunctionReferences.GetForEntity(ctx, sdk.NewGetForEntityDataMetricFunctionReferenceRequest(id, sdk.DataMetricFunctionRefEntityDomainView)) | ||
if err != nil { | ||
return err | ||
} | ||
|
@@ -942,12 +942,12 @@ func UpdateView(ctx context.Context, d *schema.ResourceData, meta any) diag.Diag | |
} | ||
err := client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithSetDataMetricSchedule(*req)) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error setting data matric schedule in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error setting data metric schedule in view %v err = %w", id.Name(), err)) | ||
} | ||
} else { | ||
err := client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithUnsetDataMetricSchedule(*sdk.NewViewUnsetDataMetricScheduleRequest())) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error unsetting data matric schedule in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error unsetting data metric schedule in view %v err = %w", id.Name(), err)) | ||
} | ||
} | ||
} | ||
|
@@ -990,7 +990,7 @@ func UpdateView(ctx context.Context, d *schema.ResourceData, meta any) diag.Diag | |
} | ||
err := client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithDropDataMetricFunction(*sdk.NewViewDropDataMetricFunctionRequest(removed))) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error adding data matric functions in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error adding data metric functions in view %v err = %w", id.Name(), err)) | ||
} | ||
} | ||
|
||
|
@@ -1004,7 +1004,7 @@ func UpdateView(ctx context.Context, d *schema.ResourceData, meta any) diag.Diag | |
} | ||
err := client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithAddDataMetricFunction(*sdk.NewViewAddDataMetricFunctionRequest(added))) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error adding data matric functions in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error adding data metric functions in view %v err = %w", id.Name(), err)) | ||
} | ||
} | ||
|
||
|
@@ -1034,7 +1034,7 @@ func UpdateView(ctx context.Context, d *schema.ResourceData, meta any) diag.Diag | |
} | ||
err = client.Views.Alter(ctx, sdk.NewAlterViewRequest(id).WithModifyDataMetricFunction(*sdk.NewViewModifyDataMetricFunctionsRequest(changeSchedule))) | ||
if err != nil { | ||
return diag.FromErr(fmt.Errorf("error adding data matric functions in view %v err = %w", id.Name(), err)) | ||
return diag.FromErr(fmt.Errorf("error adding data metric functions in view %v err = %w", id.Name(), err)) | ||
} | ||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,8 +233,6 @@ func nukeUsers(client *Client) func() error { | |
"JAN_CIESLAK_LEGACY", | ||
"TERRAFORM_SVC_ACCOUNT", | ||
"TEST_CI_SERVICE_USER", | ||
"FILIP_BUDZYNSKI", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ;_; |
||
"FILIP_BUDZYNSKI_LEGACY", | ||
} | ||
|
||
return func() error { | ||
|
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.
Please link the issue and explain what was not working (was it incorrect type, 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.
Done.