Closed mdb closed 3 months ago
Full transparency: I don't have a reliable way to run the acceptance tests nor am I intimately familiar with the quirks of the PagerDuty API. So, there could be bugs or mistaken assumptions associated with this logic change, but -- at face value -- I believe this is an improvement over the original logic. Am I mistaken?
Are there any chance that this will be merged in the near future? We ran into this problem in the past weeks and it causes a lot of trouble when we would modify any detail of a team with EP.
This seeks to fix issue #913 by only diassociating/re-associating the team-specific escalation policies for which the user-whose-membership-is-to-be-deleted is a rule target (rather than attempting to diassociate/re-associate all the user-associated escalation policies to the team, as those escalation policies may be taken by other teams).
In other words...
Previously, team membership deletion attempted to diassociate all escalation policies associated to the user from the team, then re-associate those policies back to the team. This could run into the following error if/when that user was a member of multiple teams (see issue #913 for details) and associated to escalation policies associated to other teams:
This seeks to fix that :)
Result of new acceptance tests introduced...