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

[10/X] DXCDT-455: Fix auth0_trigger_action delete logic and add tests for import #639

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

sergiught
Copy link
Contributor

🔧 Changes

Fix auth0_trigger_action delete logic and add tests for import

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@sergiught sergiught requested a review from a team as a code owner June 14, 2023 14:38
@@ -204,7 +204,7 @@ func deleteTriggerAction(_ context.Context, d *schema.ResourceData, m interface{
return diag.FromErr(err)
}

var updatedBindings []*management.ActionBinding
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In case we are deleting a 1:1 trigger-action resource and there is no other action bounded to a trigger, this was failing because we were sending triggers: null as the default value for a slice is nil.

@sergiught sergiught merged commit a5db686 into main Jun 14, 2023
@sergiught sergiught deleted the patch/DXCDT-455-actions branch June 14, 2023 18:38
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.

2 participants