Skip to content

fix destroy team membership when user is not the active on-call#914

Open
twix14 wants to merge 1 commit intoPagerDuty:masterfrom
twix14:hotfix/destroy-team-membership
Open

fix destroy team membership when user is not the active on-call#914
twix14 wants to merge 1 commit intoPagerDuty:masterfrom
twix14:hotfix/destroy-team-membership

Conversation

@twix14
Copy link
Copy Markdown

@twix14 twix14 commented Jul 24, 2024

Fixes #292

If a user was not active in the on-call rotation it wouldn't be temporarily dissociated from the associated EPs, because the on-call list call never returned non-active users.

Getting the EPs where the user is active from now to 90 days (On-call shifts are limited to 90 days in the future) in the future fixes the issue.

cjgajard

This comment was marked as outdated.

cjgajard added a commit to cjgajard/terraform-provider-pagerduty that referenced this pull request Apr 15, 2025
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.

pagerduty_team_membership can not be deleted when user is in use in pagerduty_schedule

2 participants