PipelineDashboard icon indicating copy to clipboard operation
PipelineDashboard copied to clipboard

Admin to be able to delete and recreate all repository webhooks

Open eddiejaoude opened this issue 5 years ago • 0 comments

The code for deleting and creating webhook already exists.

Steps are probably:

  • Add to existing Admin only page with similar navigation as project dashboard (screenshot below)
  • Cloud functions
    • Get all repositories
    • For each repository
      1. UI button is clicked (single repo button or all repo button)
      2. UI calls cloud function with an array of UIDs (could be 1 UID in the array if single repo)
      3. New cloud function loops over UIDs and … a. calls existing delete repo webhook function b. on the previous step a completing successfully, call create repo webhook function
      4. Cloud function returns the total successful / failed webhook creations and display in UI
Screenshot 2020-01-10 17 30 19

eddiejaoude avatar Jan 10 '20 17:01 eddiejaoude