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

chore: Move getRemindersFromRemovedTeams and deleteAllWorkflowReminders to workflow repo #16861

Merged
merged 2 commits into from
Sep 27, 2024

Conversation

sean-brydon
Copy link
Member

What does this PR do?

During team deletion we need to call these getRemindersFromRemovedTeams and deleteAllWorkflowReminders so i extracted these calls so can call them from within the new billing service (will be placed here https://github.com/calcom/cal.com/pull/15366/files#diff-c319b2099c29f1f776a5946c2a7befdbdfb96faef88fae90dd5df70b123b653cR355)

In a follow up PR i will extract more of the workflow Utils and create a workflow service.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

@graphite-app graphite-app bot requested a review from a team September 27, 2024 13:46
@keithwillcode keithwillcode added consumer core area: core, team members only labels Sep 27, 2024
@dosubot dosubot bot added the workflows area: workflows, automations label Sep 27, 2024
@@ -276,4 +285,114 @@ export class WorkflowRepository {
};
}
}
static async getRemindersFromRemovedTeams(
Copy link
Member Author

Choose a reason for hiding this comment

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

return remindersToDelete;
}

static async deleteAllWorkflowReminders(
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link

graphite-app bot commented Sep 27, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (09/27/24)

1 reviewer was added to this PR based on Keith Williams's automation.

Copy link
Contributor

E2E results are ready!

Copy link
Member

@CarinaWolli CarinaWolli left a comment

Choose a reason for hiding this comment

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

👏🏻

@CarinaWolli CarinaWolli merged commit 20729b3 into main Sep 27, 2024
59 of 79 checks passed
@CarinaWolli CarinaWolli deleted the chore/workflow-repository branch September 27, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consumer core area: core, team members only ready-for-e2e workflows area: workflows, automations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants